* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f8f4;
    color: #102033;
}

.app {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #0b5c2b, #06451f);
    color: #fff;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 32px;
}

.logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.brand h2 {
    font-size: 15px;
    letter-spacing: 2px;
}

.brand h1 {
    font-size: 28px;
    line-height: 1;
}

.brand p {
    font-size: 13px;
    letter-spacing: 3px;
    opacity: .9;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar nav a {
    color: #eaffef;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: block;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: rgba(126, 205, 83, 0.36);
}

.sidebar-note {
    margin-top: auto;
    background: rgba(255,255,255,0.13);
    border-radius: 18px;
    padding: 22px;
    text-align: center;
}

.sidebar-note div {
    font-size: 44px;
    margin-bottom: 10px;
}

.sidebar-note p {
    font-size: 14px;
    line-height: 1.5;
}

/* MAIN */
.main {
    flex: 1;
    min-width: 0;
}

.topbar {
    height: 86px;
    background: #fff;
    border-bottom: 1px solid #e6eee6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px;
}

.topbar h2 {
    font-size: 26px;
    font-weight: 800;
}

.topbar p {
    margin-top: 6px;
    color: #667085;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-actions select,
.user {
    background: #fff;
    border: 1px solid #dce7dc;
    padding: 12px 14px;
    border-radius: 12px;
    color: #102033;
    font-weight: 600;
}

.content {
    padding: 24px;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.card {
    background: #fff;
    border: 1px solid #e4eee4;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(16, 32, 51, 0.055);
}

.card-header,
.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header span {
    color: #405064;
    font-size: 14px;
    font-weight: 700;
}

.card-value {
    font-size: 27px;
    font-weight: 900;
    color: #0b5b2b;
    margin-top: 10px;
}

.card-note {
    margin-top: 12px;
    color: #16a34a;
    font-size: 13px;
    font-weight: 700;
}

.icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.icon.green {
    background: #dcf7e3;
    color: #0d7a39;
}

.icon.red {
    background: #ffe2e2;
    color: #dc2626;
}

.icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.icon.yellow {
    background: #fef3c7;
    color: #d97706;
}

.icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

/* GRIDS */
.grid-2 {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.grid-2-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
}

.card-top a {
    color: #0d7a39;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.mini-select {
    border: 1px solid #dce7dc;
    background: #fff;
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 600;
}

.legend {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
    color: #405064;
    font-size: 13px;
    font-weight: 600;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.dot.green {
    background: #22c55e;
}

.dot.red {
    background: #ef4444;
}

.chart-box {
    height: 270px;
    background: linear-gradient(180deg, #f7fff7, #fff);
    border-radius: 16px;
    border: 1px dashed #cfe5cf;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b806b;
    font-weight: 700;
}

/* TRANSACTIONS */
.transactions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.transaction {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #edf2ed;
    padding-bottom: 13px;
}

.transaction strong {
    display: block;
    margin-bottom: 4px;
}

.transaction span {
    color: #667085;
    font-size: 13px;
}

.amount-green {
    color: #079348;
    font-weight: 800;
}

.amount-red {
    color: #dc2626;
    font-weight: 800;
}

/* TABLE */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.table th {
    text-align: left;
    color: #667085;
    font-size: 13px;
    padding: 13px 10px;
    border-bottom: 1px solid #e6eee6;
}

.table td {
    padding: 15px 10px;
    border-bottom: 1px solid #edf2ed;
    font-weight: 600;
}

/* QUICK ACTIONS */
.actions-row {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.quick-action {
    background: #fff;
    border: 1px solid #e4eee4;
    border-radius: 16px;
    padding: 18px;
    text-decoration: none;
    color: #102033;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 6px 18px rgba(16, 32, 51, 0.04);
}

.quick-action strong {
    display: block;
    font-size: 15px;
}

.quick-action div div {
    color: #667085;
    font-size: 13px;
    margin-top: 3px;
}

/* FORMS */
.form-box {
    background: #fff;
    border: 1px solid #e4eee4;
    border-radius: 18px;
    padding: 22px;
    max-width: 760px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #667085;
    margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #dce7dc;
    border-radius: 12px;
    outline: none;
}

.form-group textarea {
    min-height: 90px;
}

.btn {
    border: 0;
    background: #0d7a39;
    color: #fff;
    padding: 13px 22px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
}

.btn-light {
    background: #e8f7e8;
    color: #0d7a39;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .cards,
    .actions-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2,
    .grid-2-equal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .topbar {
        height: auto;
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .top-actions,
    .form-row {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .cards,
    .actions-row {
        grid-template-columns: 1fr;
    }
}