@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --topbar-h: 72px;
    --bg-dark: #1f2937;
    --side-bg: #334155;
    --side-text: #f1f5f9;
    --side-hover: #475569;
    /* pastel */
    --accent: #4f46e5; /* buton için morumsu pastel */
    --accent-ink: #ffffff;
    --muted: #e2e8f0;
    --ink: #0f172a;
}

html, body {
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

:root {
    --topbar-h: 72px; /* topbar yüksekliği */
    --bg-dark: #1f2937;
    --side-bg: #334155;
    --side-text: #f1f5f9;
    --side-hover: #475569;
    --accent-primary: #93c5fd; /* pastel mavi */
    --accent-secondary: #a5b4fc; /* pastel mor */
    --accent-info: #bae6fd; /* pastel açık mavi */
    --accent-success: #bbf7d0; /* pastel yeşil */
    --accent-warning: #fde68a; /* pastel sarı */
    --accent-danger: #fecaca; /* pastel kırmızı */
}

/* Topbar */
.topbar {
    min-height: var(--topbar-h);
    background: var(--bg-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1030;
    flex-wrap: nowrap; /* tek satırda kalsın */
    gap: 12px;
}


/* Sidebar */
.sidebar {
    width: 240px;
    background: var(--side-bg);
    color: var(--side-text);
    padding-top: 8px;
    transition: transform .2s ease;
    box-shadow: 1px 0 0 rgba(0,0,0,.08);
}

@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: var(--topbar-h);
        bottom: 0;
        transform: translateX(-100%);
    }

        .sidebar.acik {
            transform: none;
        }
}


    .sidebar .list-group-item {
        background: transparent;
        color: var(--side-text);
        border: 0;
        border-radius: 0;
        padding: 10px 16px;
    }

        .sidebar .list-group-item:hover {
            background: var(--side-hover);
            color: #fff;
        }

        .sidebar .list-group-item.disabled {
            opacity: 0.45;
            cursor: not-allowed;
        }

/* Kartlar */
.kart {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

    .kart:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.kart-baslik {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 8px;
}

.kart-deger {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

.kart-alt {
    font-size: 12px;
    color: #64748b;
}

/* Pastel badge */
.badge.bg-soft {
    background-color: #e2e8f0 !important;
    color: #1e293b !important;
    border-radius: 8px;
}
.app-wrap {
    display: flex;
    min-height: calc(100vh - var(--topbar-h)); /* 56px yerine değişken */
}
.content {
    flex: 1;
    padding: 12px 16px;
}
/* ---- Modern Giriş Sayfası (Login) ---- */
.giris-body {
    background: radial-gradient(1200px 600px at 10% 10%, #ecf0f6, transparent 70%), radial-gradient(1200px 600px at 90% 90%, #f7f8fb, transparent 70%), #f5f7fb;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 880px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
}

.login-left {
    padding: 28px 28px 20px 28px;
}

.brand {
    font-weight: 700;
    letter-spacing: .3px;
    color: #0f172a;
}

.lead {
    color: #475569;
}

.login-right {
    background: linear-gradient(160deg, #e9e7ff 0%, #e6f2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.illus {
    width: 85%;
    max-width: 320px;
    aspect-ratio: 1/1;
    border-radius: 16px;
    border: 1px dashed #c7d2fe;
    background: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-weight: 600;
}

.btn-accent {
    background: #4f46e5;
    color: #fff;
}

    .btn-accent:hover {
        filter: brightness(.95);
    }

.form-control, .form-select {
    border-radius: 10px;
}

.kucuk {
    font-size: .9rem;
    color: #64748b;
}

@media (max-width: 992px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-right {
        display: none;
    }
    /* mobilde illüstrasyon gizlenir */
}
/* ---- Modern Şirket/Şube Seçimi (Secim) ---- */
.secim-body {
    background: radial-gradient(1200px 600px at 10% 10%, #ecf0f6, transparent 70%), radial-gradient(1200px 600px at 90% 90%, #f7f8fb, transparent 70%), #f5f7fb;
}

.secim-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.secim-card {
    width: 100%;
    max-width: 980px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    display: grid;
    grid-template-columns: 1.2fr .8fr;
}

.secim-left {
    padding: 28px 28px 20px 28px;
}

.secim-right {
    background: linear-gradient(160deg, #e9e7ff 0%, #e6f2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

    .secim-right .illus {
        width: 85%;
        max-width: 320px;
        aspect-ratio: 1/1;
        border-radius: 16px;
        border: 1px dashed #c7d2fe;
        background: rgba(255,255,255,.6);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #475569;
        font-weight: 600;
    }

.form-select {
    border-radius: 12px;
}

.btn-accent {
    background: #4f46e5;
    color: #fff;
}

    .btn-accent:hover {
        filter: brightness(.95);
    }

.brand {
    font-weight: 700;
    letter-spacing: .3px;
    color: #0f172a;
}

.lead {
    color: #475569;
}

.kucuk {
    font-size: .9rem;
    color: #64748b;
}

@media (max-width: 992px) {
    .secim-card {
        grid-template-columns: 1fr;
    }

    .secim-right {
        display: none;
    }
    /* mobilde görseli gizle */
}
#yanMenu.kapali {
    transform: translateX(-250px); /* Menü soldan kayar */
    transition: transform 0.3s ease;
}

#yanMenu {
    transform: translateX(0);
    transition: transform 0.3s ease;
}
/* Koyu arka plan + yeterli kontrast */
.sidebar {
    background: #223043; /* koyu mavi-gri */
    color: #e6edf3; /* açık metin */
    width: 260px;
}

    /* Tüm linkler aynı görünümde */
    .sidebar .list-group-item {
        background: transparent;
        border: 0;
        color: #cfd7e3; /* varsayılan metin rengi */
        padding: .6rem 1rem;
        display: flex;
        align-items: center;
        gap: .6rem; /* ikon–metin arası boşluk */
        line-height: 1.2;
        font-weight: 500;
    }

        /* İkonları biraz büyüt, flu olmasın */
        .sidebar .list-group-item .icon {
            font-size: 1rem; /* 16px */
            opacity: .95;
        }

        /* Hover: metni belirginleştir, arka plana hafif vurgu */
        .sidebar .list-group-item:hover {
            color: #ffffff;
            background: rgba(255,255,255,.06);
        }

        /* Active (seçili sayfa) */
        .sidebar .list-group-item.active,
        .sidebar .list-group-item[aria-current="page"] {
            color: #ffffff;
            background: linear-gradient(90deg, rgba(99, 179, 237, .25), rgba(99, 179, 237, 0));
            border-left: 3px solid #63b3ed; /* vurgu çizgisi */
            padding-left: calc(1rem - 3px);
        }

    /* Başlık/section butonlarını (collapsible) link gibi gösterelim */
    .sidebar .toggle-btn {
        background: transparent;
        border: 0;
        color: #b9c6d8;
        width: 100%;
        text-align: left;
        padding: .6rem 1rem;
        font-weight: 600;
    }

        .sidebar .toggle-btn:hover {
            color: #fff;
        }

    /* Kapalı başlıkların altındaki linkler */
    .sidebar .submenu .list-group-item {
        padding-left: 2rem;
    }

    /* “disabled” görünen maddeler de okunaklı olsun ama pasif */
    .sidebar .list-group-item.disabled,
    .sidebar .list-group-item:disabled {
        color: #8f9db0 !important;
        opacity: .85; /* okunur, fakat pasif */
    }
