html {
    forced-color-adjust: none;
}

:root {
    color-scheme: light only;
    --ust-yukseklik: 3.75rem;
    --menu-genislik: 16rem;

    --ana-renk: #4338ca;
    --ana-koyu: #312e81;
    --ana-acik: #eef0ff;
    --lacivert: #171f4d;
    --lacivert-acik: #232c63;
    --vurgu: #f59e0b;
    --yazi: #1e293b;
    --yazi-soluk: #64748b;
    --cizgi: #e2e8f0;
    --zemin: #f4f6fb;
    --golge: 0 1px 2px rgba(23, 31, 77, .05), 0 6px 18px rgba(23, 31, 77, .06);
    --yaricap: .85rem;

    --bs-primary: #4338ca;
    --bs-primary-rgb: 67, 56, 202;
    --bs-body-color: #1e293b;
    --bs-body-bg: #f4f6fb;
    --bs-link-color: #4338ca;
    --bs-link-hover-color: #312e81;
    --bs-body-font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-border-radius: .6rem;
}

body {
    background: var(--zemin);
    color: var(--yazi);
    font-family: var(--bs-body-font-family);
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    color: var(--lacivert);
    font-weight: 650;
    letter-spacing: -.01em;
}

a { color: var(--ana-renk); }
a:hover { color: var(--ana-koyu); }

:focus-visible {
    outline: 3px solid rgba(67, 56, 202, .45);
    outline-offset: 2px;
}

.simge {
    width: 1.15rem;
    height: 1.15rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Üst çubuk */
.ust-cubuk {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: .5rem;
    height: var(--ust-yukseklik);
    padding: 0 1rem;
    background: #fff;
    border-bottom: 1px solid var(--cizgi);
}

.menu-dugmesi {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: var(--lacivert);
    font-size: 1.25rem;
    line-height: 1;
    border-radius: .6rem;
}

.menu-dugmesi:hover,
.menu-dugmesi:focus {
    color: var(--ana-renk);
    background: var(--ana-acik);
}

.marka {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--lacivert);
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -.02em;
    text-decoration: none;
}

.marka:hover { color: var(--ana-renk); }

.marka-simge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--ana-renk), #7c3aed);
    border-radius: .6rem;
}

.ust-bilgi {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: var(--yazi);
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.2;
}

.ust-bilgi small {
    color: var(--yazi-soluk);
    font-size: .75rem;
    font-weight: 400;
}

/* Sol menü */
.yan-menu {
    position: fixed;
    top: var(--ust-yukseklik);
    bottom: 0;
    left: 0;
    z-index: 1020;
    width: var(--menu-genislik);
    padding: .75rem .65rem 1.5rem;
    overflow-y: auto;
    background: linear-gradient(180deg, var(--lacivert) 0%, var(--lacivert-acik) 100%);
    scrollbar-color: rgba(255, 255, 255, .25) transparent;
    scrollbar-width: thin;
    transition: transform .2s ease;
}

.menu-baslik {
    margin: 1.1rem .75rem .35rem;
    color: #a9b4d8;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.menu-baglanti {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1px;
    padding: .48rem .75rem;
    color: #dfe5f8;
    font-size: .92rem;
    text-decoration: none;
    border-radius: .55rem;
    transition: background-color .12s ease, color .12s ease;
}

a.menu-baglanti:hover,
a.menu-baglanti:focus {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

a.menu-baglanti.aktif {
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, .15);
    box-shadow: inset 3px 0 0 var(--vurgu);
}

.menu-perdesi { display: none; }

/* İçerik */
.icerik-alani {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-left: var(--menu-genislik);
    padding-top: var(--ust-yukseklik);
    transition: margin-left .2s ease;
}

.body-content {
    flex: 1;
    width: 100%;
    max-width: 92rem;
    padding: 1.5rem;
}

.site-footer {
    padding: .85rem 1.5rem;
    border-top: 1px solid var(--cizgi);
    color: var(--yazi-soluk);
    font-size: .82rem;
}

.menu-kapali .yan-menu { transform: translateX(-100%); }
.menu-kapali .icerik-alani { margin-left: 0; }
.girissiz .icerik-alani { margin-left: 0; }

/* Kart görünümleri */
.bg-white.border,
.card,
.ozet-kart {
    border-color: var(--cizgi) !important;
    border-radius: var(--yaricap) !important;
    box-shadow: var(--golge);
}

.card { overflow: hidden; }

.card-header {
    color: var(--lacivert);
    background: #fff;
    border-bottom-color: var(--cizgi);
}

.card-footer {
    background: #fff;
    border-top-color: var(--cizgi);
}

.list-group-item { border-color: var(--cizgi); }

.list-group-item-action:hover,
.list-group-item-action:focus {
    color: var(--ana-renk);
    background: var(--ana-acik);
}

.dar-form { max-width: 30rem; }

.odev-durum { min-width: 8.5rem; }

.tablo-filtre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

.tablo-filtre .form-select { width: auto; max-width: 14rem; }

.tablo-filtre .form-control { width: 16rem; max-width: 100%; }

.foto-bos {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a94b3;
    background: #eef1f8;
}

.foto-bos .simge {
    width: 2.75rem;
    height: 2.75rem;
}

.kart-foto {
    width: 6rem;
    height: 7.5rem;
    object-fit: cover;
    border: 1px solid var(--cizgi);
    border-radius: .6rem;
}

.ozet-kart {
    height: 100%;
    padding: .85rem 1rem;
    background: #fff;
    border: 1px solid var(--cizgi);
    border-top: 3px solid var(--ana-renk) !important;
}

.row > :nth-child(5n+2) > .ozet-kart { border-top-color: #0d9488 !important; }
.row > :nth-child(5n+3) > .ozet-kart { border-top-color: #059669 !important; }
.row > :nth-child(5n+4) > .ozet-kart { border-top-color: var(--vurgu) !important; }
.row > :nth-child(5n) > .ozet-kart { border-top-color: #e11d48 !important; }

.ozet-kart .deger {
    color: var(--lacivert);
    font-size: 1.1rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Tablolar */
.table {
    --bs-table-hover-bg: #f7f8ff;
    border-color: var(--cizgi);
}

.table > thead th {
    color: #475569;
    font-size: .76rem;
    font-weight: 650;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
    background: #f8fafc;
    border-bottom: 1px solid var(--cizgi);
}

.table > tbody > tr:last-child > * { border-bottom-width: 0; }

.taksit-odendi td { background: #ecfdf5 !important; }
.taksit-gecikti td { background: #fff1f2 !important; }
.taksit-kismi td { background: #fffbeb !important; }
.taksit-esnek td { background: #eef2ff !important; }

/* Düğmeler */
.btn {
    font-weight: 550;
    border-radius: .6rem;
}

.btn-sm { border-radius: .5rem; }

.btn-primary {
    --bs-btn-bg: #4338ca;
    --bs-btn-border-color: #4338ca;
    --bs-btn-hover-bg: #3730a3;
    --bs-btn-hover-border-color: #3730a3;
    --bs-btn-active-bg: #312e81;
    --bs-btn-active-border-color: #312e81;
    --bs-btn-disabled-bg: #4338ca;
    --bs-btn-disabled-border-color: #4338ca;
    --bs-btn-focus-shadow-rgb: 67, 56, 202;
}

.btn-outline-primary {
    --bs-btn-color: #4338ca;
    --bs-btn-border-color: #c7c8f5;
    --bs-btn-bg: #fff;
    --bs-btn-hover-bg: #4338ca;
    --bs-btn-hover-border-color: #4338ca;
    --bs-btn-active-bg: #3730a3;
    --bs-btn-active-border-color: #3730a3;
    --bs-btn-focus-shadow-rgb: 67, 56, 202;
}

.btn-outline-secondary {
    --bs-btn-color: #475569;
    --bs-btn-border-color: #cbd5e1;
    --bs-btn-bg: #fff;
    --bs-btn-hover-color: #1e293b;
    --bs-btn-hover-bg: #f1f5f9;
    --bs-btn-hover-border-color: #94a3b8;
    --bs-btn-active-color: #1e293b;
    --bs-btn-active-bg: #e2e8f0;
    --bs-btn-active-border-color: #94a3b8;
}

.btn-secondary {
    --bs-btn-bg: #312e81;
    --bs-btn-border-color: #312e81;
    --bs-btn-hover-bg: #27256b;
    --bs-btn-hover-border-color: #27256b;
}

/* Formlar */
.form-label {
    color: #334155;
    font-size: .875rem;
    font-weight: 550;
}

.form-control,
.form-select { border-color: #cbd5e1; }

.form-control:focus,
.form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 .2rem rgba(67, 56, 202, .18);
}

.form-check-input:checked {
    background-color: var(--ana-renk);
    border-color: var(--ana-renk);
}

.form-check-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 .2rem rgba(67, 56, 202, .18);
}

/* Sekmeler ve açılır bölümler */
.nav-tabs {
    --bs-nav-tabs-border-color: var(--cizgi);
    --bs-nav-tabs-link-active-color: var(--ana-renk);
    --bs-nav-tabs-link-active-border-color: var(--cizgi) var(--cizgi) #fff;
}

.nav-tabs .nav-link {
    color: #475569;
    font-weight: 550;
}

.nav-tabs .nav-link.active { color: var(--ana-renk); }

.accordion {
    --bs-accordion-active-color: var(--ana-koyu);
    --bs-accordion-active-bg: var(--ana-acik);
    --bs-accordion-btn-focus-border-color: #6366f1;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(67, 56, 202, .18);
    --bs-accordion-border-color: var(--cizgi);
}

.progress-bar { background-color: var(--ana-renk); }
.progress-bar.bg-secondary { background-color: #94a3b8 !important; }

.dropdown-item:active {
    color: #fff;
    background: var(--ana-renk);
}

.modal-content {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(23, 31, 77, .25);
}

.alert { border-radius: var(--yaricap); }

.badge.text-bg-secondary {
    color: var(--ana-koyu) !important;
    background: var(--ana-acik) !important;
}

/* Ana sayfa */
.okul-cizimi {
    display: block;
    width: 100%;
    height: auto;
}

.giris-tanitim .okul-cizimi {
    max-width: 26rem;
    margin-top: 1.75rem;
}

.karsilama-gorsel {
    position: relative;
    flex: none;
    width: 22rem;
    height: 10.5rem;
}

.karsilama-gorsel img {
    position: absolute;
    top: 0;
    right: 0;
    width: 17.5rem;
    height: 100%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, .85);
    border-radius: 1rem;
}

.karsilama-gorsel .okul-cizimi {
    position: absolute;
    bottom: -.35rem;
    left: 0;
    width: 8.5rem;
    padding: .35rem;
    background: rgba(255, 255, 255, .92);
    border-radius: .85rem;
}

.foto-kolaj {
    position: relative;
    width: min(100%, 28rem);
    height: 15rem;
    margin-top: 1.75rem;
}

.foto-kolaj img {
    position: absolute;
    object-fit: cover;
    border: 4px solid #fff;
    border-radius: 1.1rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .35);
}

.foto-kolaj img:first-child {
    top: 0;
    left: 0;
    z-index: 1;
    width: 58%;
    height: 72%;
    object-position: 50% 25%;
}

.foto-kolaj img:last-child {
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 60%;
    height: 68%;
}

.karsilama {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding: 1.6rem 1.75rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, var(--lacivert) 0%, var(--ana-renk) 62%, #7c3aed 100%);
    border-radius: 1.1rem;
}

.karsilama::after {
    position: absolute;
    top: -3.5rem;
    right: -2rem;
    width: 13rem;
    height: 13rem;
    content: "";
    background: rgba(245, 158, 11, .22);
    border-radius: 50%;
}

.karsilama > * {
    position: relative;
    z-index: 1;
}

.karsilama h1 {
    margin-bottom: .25rem;
    color: #fff;
    font-size: 1.5rem;
}

.karsilama p {
    margin: 0;
    color: #e0e3ff;
}

.kisayollar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.kisayol {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: .9rem;
    color: var(--lacivert);
    font-size: .87rem;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--cizgi);
    border-radius: var(--yaricap);
    box-shadow: var(--golge);
    transition: transform .12s ease, border-color .12s ease;
}

.kisayol:hover,
.kisayol:focus {
    color: var(--ana-renk);
    border-color: #a5a8f0;
    transform: translateY(-2px);
}

.kisayol .simge-kutu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    color: var(--ana-renk);
    background: var(--ana-acik);
    border-radius: .6rem;
}

.kisayol:nth-child(5n+1) { background: #e0e7ff; border-color: #c7d2fe; }
.kisayol:nth-child(5n+2) { background: #ccfbf1; border-color: #99f6e4; }
.kisayol:nth-child(5n+3) { background: #fef3c7; border-color: #fde68a; }
.kisayol:nth-child(5n+4) { background: #ffe4e6; border-color: #fecdd3; }
.kisayol:nth-child(5n) { background: #e0f2fe; border-color: #bae6fd; }

.kisayol .simge-kutu { background: #fff; }
.kisayol:nth-child(5n+1) .simge-kutu { color: #4338ca; }
.kisayol:nth-child(5n+2) .simge-kutu { color: #0f766e; }
.kisayol:nth-child(5n+3) .simge-kutu { color: #b45309; }
.kisayol:nth-child(5n+4) .simge-kutu { color: #be123c; }
.kisayol:nth-child(5n) .simge-kutu { color: #0369a1; }

/* Giriş sayfası */
.tam-sayfa .ust-cubuk,
.tam-sayfa .site-footer { display: none; }

.tam-sayfa .icerik-alani { padding-top: 0; }

.tam-sayfa .body-content {
    display: flex;
    max-width: none;
    padding: 0;
}

.giris-sayfa {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    min-height: 100vh;
}

.giris-tanitim {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(140deg, var(--lacivert) 0%, var(--ana-renk) 70%, #7c3aed 100%);
}

.giris-tanitim::before,
.giris-tanitim::after {
    position: absolute;
    content: "";
    border-radius: 50%;
}

.giris-tanitim::before {
    top: -6rem;
    right: -6rem;
    width: 22rem;
    height: 22rem;
    background: rgba(245, 158, 11, .2);
}

.giris-tanitim::after {
    bottom: -7rem;
    left: -5rem;
    width: 20rem;
    height: 20rem;
    background: rgba(255, 255, 255, .07);
}

.giris-tanitim > * {
    position: relative;
    z-index: 1;
}

.giris-marka {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 2.25rem;
    font-size: 1.35rem;
    font-weight: 750;
}

.giris-marka span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--lacivert);
    background: var(--vurgu);
    border-radius: .8rem;
}

.giris-tanitim h1 {
    max-width: 30rem;
    margin-bottom: 1rem;
    color: #fff;
    font-size: clamp(1.8rem, 3.2vw, 2.75rem);
    font-weight: 750;
    line-height: 1.15;
}

.giris-tanitim p {
    max-width: 28rem;
    margin-bottom: 1.75rem;
    color: #e0e3ff;
    font-size: 1.05rem;
}

.giris-liste {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.giris-liste li {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.giris-liste .simge-kutu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    background: rgba(255, 255, 255, .14);
    border-radius: .6rem;
}

.giris-form-alani {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: #fff;
}

.giris-kutu {
    width: 100%;
    max-width: 24rem;
}

.giris-kutu h1,
.giris-kutu .giris-baslik {
    margin-bottom: .35rem;
    font-size: 1.6rem;
    font-weight: 750;
}

.giris-kutu .form-control { padding: .6rem .85rem; }
.giris-kutu .btn-primary { padding: .6rem; }

@media (max-height: 760px) and (min-width: 992px) {
    .giris-tanitim { padding-top: 2rem; padding-bottom: 2rem; }
    .foto-kolaj { height: 11rem; margin-top: 1rem; }
    .giris-marka { margin-bottom: 1rem; }
}

@media print {
    .ust-cubuk, .yan-menu, .site-footer, .yazdirma, .menu-perdesi { display: none !important; }
    .icerik-alani { margin-left: 0 !important; padding-top: 0 !important; }
    body { background: #fff; }
    .bg-white.border, .card, .ozet-kart { box-shadow: none; }
}

@media (max-width: 991.98px) {
    .karsilama-gorsel { display: none; }
    .foto-kolaj { display: none; }
    .giris-sayfa { grid-template-columns: minmax(0, 1fr); }
    .giris-tanitim { padding: 2rem 1.5rem; }
    .giris-tanitim .giris-liste { display: none; }
    .giris-tanitim { padding-bottom: 1.75rem; }
    .giris-marka { margin-bottom: 1.25rem; }
    .giris-tanitim p { margin-bottom: 0; }
    .giris-form-alani { align-items: flex-start; padding-top: 2rem; }
}

@media (max-width: 575.98px) {
    .ust-bilgi { display: none; }
    .body-content { padding: 1rem; }
    .karsilama { padding: 1.25rem; }
    .kisayollar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

/* Telefon ve küçük ekran: menü içeriğin üstüne açılır */
@media (max-width: 767.98px) {
    .yan-menu { transform: translateX(-100%); }
    .icerik-alani { margin-left: 0; }
    .menu-acik .yan-menu { transform: none; }

    .menu-acik .menu-perdesi {
        position: fixed;
        top: var(--ust-yukseklik);
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1010;
        display: block;
        background: rgba(15, 23, 42, .5);
    }
}
