* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue-dark: #0b2d4d;
    --blue: #145da0;
    --blue-light: #eaf4ff;
    --background: #f5f8fc;
    --white: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}

.app {
    min-height: 100vh;
    display: flex;
}

/* SOL MENÜ */

.sidebar {
    width: 250px;
    min-height: 100vh;
    background: var(--blue-dark);
    color: var(--white);
    padding: 28px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 42px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--blue-dark);
    font-weight: 800;
    font-size: 18px;
}

.brand h1 {
    font-size: 22px;
}

.brand span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    opacity: .7;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu a {
    color: rgba(255,255,255,.76);
    text-decoration: none;
    padding: 13px 15px;
    border-radius: 9px;
    font-size: 14px;
    transition: .2s;
}

.menu a:hover,
.menu a.active {
    color: var(--white);
    background: rgba(255,255,255,.12);
}

/* ANA ALAN */

.content {
    flex: 1;
    padding: 38px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.eyebrow {
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    margin-bottom: 6px;
}

.topbar h2 {
    font-size: 30px;
    color: var(--blue-dark);
    margin-bottom: 5px;
}

#organizasyonAdi {
    color: var(--muted);
}

.period {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    min-width: 210px;
}

.period span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
}

.period strong {
    font-size: 14px;
    color: var(--blue-dark);
}

/* FİNANS KARTLARI */

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    min-height: 145px;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .04);
}

.card span {
    color: var(--muted);
    font-size: 13px;
}

.card strong {
    display: block;
    margin: 18px 0 8px;
    color: var(--blue-dark);
    font-size: 27px;
}

.card small {
    color: var(--muted);
    font-size: 11px;
}

.card.highlight {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.card.highlight span,
.card.highlight small {
    color: rgba(255,255,255,.68);
}

.card.highlight strong {
    color: var(--white);
}

/* ALT PANEL */

.panel {
    margin-top: 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel h3 {
    color: var(--blue-dark);
    font-size: 18px;
}

.status {
    padding: 9px 14px;
    border-radius: 20px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

/* MOBİL */

@media (max-width: 900px) {
    .sidebar {
        width: 82px;
        padding: 25px 12px;
    }

    .brand {
        justify-content: center;
    }

    .brand > div:not(.brand-mark),
    .menu a {
        font-size: 0;
    }

    .menu a {
        text-align: center;
    }

    .menu a::first-letter {
        font-size: 20px;
    }

    .content {
        padding: 22px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sidebar {
        display: none;
    }

    .content {
        padding: 18px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .period {
        width: 100%;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .panel {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
}
