/* ---- Genel ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700&display=swap');

* { box-sizing: border-box; }

html {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    background-attachment: fixed;
    min-height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2937;
    max-width: 960px;
    margin: 32px auto;
    padding: 0 16px 24px;
    background: transparent;
    line-height: 1.5;
}

.ana-menu-kart {
    background: #ffffff;
    padding: 28px 32px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

/* Giriş ve kayıt gibi dar sayfalar */
body.dar { max-width: 460px; }

/* Giriş ekranı düzeni */
body.giris-sayfasi {
    background: #ffffff;
    box-shadow: none;
    border: none;
    border-radius: 0;
    max-width: none;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow-x: hidden;
}
.giris-sol-panel {
    width: 53.125%;
    min-height: 100vh;
    background: #004552;
    clip-path: polygon(0 0, 78.3% 0, 100% 100%, 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 5.7vw 4vh 0;
    flex-shrink: 0;
}
.giris-sol-icerik {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}
.giris-sol-amblem {
    width: clamp(110px, 11.9vw, 185px);
    height: auto;
    display: block;
    margin-bottom: 6vh;
    filter: brightness(0) invert(1);
}
.giris-sol-baslik-svg {
    width: clamp(260px, 36.2vw, 540px);
    max-width: 90%;
    height: auto;
    display: block;
    margin-bottom: 2.4vh;
    filter: brightness(0) invert(1);
}
.giris-sol-slogan {
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: #ffffff;
    font-size: clamp(15px, 2.05vw, 30px);
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.giris-sol-slogan b {
    font-weight: 700;
}
.giris-sag-panel {
    flex: 1;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4vh 2.9vw 4vh 0;
}
.giris-sag-slogan {
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: #004552;
    font-size: clamp(13px, 1.35vw, 20px);
    font-weight: 500;
    letter-spacing: 0.3px;
    text-align: center;
    margin-bottom: 13.5vh;
}
.giris-sag-slogan b {
    font-weight: 700;
}
.giris-kart {
    width: clamp(300px, 31.05vw, 460px);
    background: #004552;
    color: #ffffff;
    padding: clamp(24px, 4.7vh, 38px) clamp(24px, 2.55vw, 38px) clamp(20px, 3.7vh, 32px);
    border-radius: 16px;
    border: none;
    box-shadow: 0 14px 32px rgba(0, 69, 82, 0.16);
}
.giris-kart h1 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: #ffffff;
    font-size: clamp(22px, 2.3vw, 32px);
    font-weight: 700;
    margin: 0 0 clamp(16px, 3.6vh, 26px) 0;
    line-height: 1.15;
}
.giris-kart > form label,
.giris-kart label {
    display: block;
    color: #ffffff;
    font-size: clamp(11px, 0.95vw, 14px);
    font-weight: 500;
    margin: 0 0 clamp(5px, 1.2vh, 8px) 0;
}
.giris-kart > form input,
.giris-kart input {
    display: block;
    width: 100%;
    height: clamp(32px, 4.5vh, 42px);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 7px;
    color: #ffffff;
    padding: 6px 12px;
    margin-bottom: clamp(12px, 2.3vh, 18px);
    font-size: clamp(12px, 1vw, 15px);
}
.giris-kart > form input:focus,
.giris-kart input:focus {
    outline: none;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}
.giris-kart input:-webkit-autofill,
.giris-kart input:-webkit-autofill:hover,
.giris-kart input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px #004552 inset;
    transition: background-color 5000s ease-in-out 0s;
}
.giris-kart > form button[type="submit"],
.giris-kart button[type="submit"] {
    width: 100%;
    height: clamp(32px, 4.5vh, 42px);
    margin-top: clamp(8px, 1.6vh, 14px);
    padding: 0 16px;
    background: #ffffff;
    color: #004552;
    border: none;
    border-radius: 7px;
    font-size: clamp(11px, 0.95vw, 14px);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.giris-kart > form button[type="submit"]:hover,
.giris-kart button[type="submit"]:hover {
    background: #f1f5f9;
    color: #004552;
}
.giris-hata {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
}
.giris-alt-logolar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-bottom: 12px;
}
.giris-sag-panel .giris-alt-logolar {
    margin-top: 11.6vh;
    padding-bottom: 0;
    gap: clamp(18px, 2.4vw, 34px);
}
.giris-alt-logolar img {
    height: 54px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}
.giris-sag-panel .giris-alt-logolar img {
    height: clamp(34px, 6.1vh, 52px);
}
@media (max-width: 900px) {
    body.giris-sayfasi {
        flex-direction: column;
    }
    .giris-sol-panel {
        width: 100%;
        min-height: auto;
        clip-path: none;
        padding: 36px 20px;
    }
    .giris-sol-amblem {
        width: 110px;
        margin-bottom: 18px;
    }
    .giris-sol-baslik-svg {
        width: 280px;
    }
    .giris-sol-slogan {
        font-size: 17px;
    }
    .giris-sag-panel {
        min-height: auto;
        padding: 36px 20px;
        gap: 28px;
    }
}
.sayfa-alt-logolar {
    margin-top: 32px;
    padding-top: 20px;
    padding-bottom: 4px;
    border-top: 1px solid #e2e8f0;
}
.sayfa-alt-logolar img {
    height: 54px;
    filter: none;
}

h1 { margin-top: 0; font-size: 26px; color: #006273; }
.sayfa-en-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.marka {
    font-family: 'Montserrat', 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #006273;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    border-radius: 999px;
    padding: 6px 16px 6px 10px;
    margin-bottom: 0;
}
.marka img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}
.yks-sayac-bar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #004552 0%, #006273 100%);
    color: #ffffff;
    padding: 8px 18px 8px 14px;
    border-radius: 12px;
    border: 1px solid #004552;
    box-shadow: 0 4px 12px rgba(0, 98, 115, 0.2);
}
.yks-sayac-ikon {
    font-size: 22px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.14);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yks-sayac-ikon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}
.yks-sayac-metin {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.yks-sayac-etiket {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cffafe;
}
.yks-sayac-metin b {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fde68a;
    letter-spacing: 0.3px;
}
h2 { margin-top: 32px; font-size: 20px; color: #006273; border-bottom: 2px solid #cbe4e9; padding-bottom: 6px; }
h3 { margin-top: 24px; color: #006273; }

a { color: #006273; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Tablolar ---- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}
table, th, td { border: 1px solid #e5e7eb; }
th, td { padding: 10px 12px; text-align: left; vertical-align: middle; white-space: nowrap; }
th { background: #e6f2f5; color: #006273; }
tr:nth-child(even) td { background: #f9fafb; }

/* ---- Formlar ---- */
body > form br { display: none; }
body > form label { display: block; margin: 14px 0 4px; font-size: 14px; font-weight: 600; color: #374151; }
body > form input, body > form select, body > form textarea { display: block; width: 100%; }
input[type=hidden] { display: none; }

input, select, textarea {
    padding: 9px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #006273;
    box-shadow: 0 0 0 3px rgba(0, 98, 115, 0.2);
}

/* ---- Düğmeler ---- */
button {
    padding: 9px 16px;
    border: 0;
    border-radius: 6px;
    background: #006273;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
}
button:hover { background: #004552; }
body > form button, .giris-kart > form button { margin-top: 18px; }
body > form[action="/giris"] button,
.giris-kart > form[action="/giris"] button,
body > form[action="/kayit"] button { width: 100%; }

/* Silme düğmeleri kırmızı */
form[action="/sil"] button,
form[action="/odev-sil"] button,
form[action="/deneme-sil"] button { background: #dc2626; }
form[action="/sil"] button:hover,
form[action="/odev-sil"] button:hover,
form[action="/deneme-sil"] button:hover { background: #b91c1c; }

/* Tablo içindeki küçük formlar (atama, tamamlama, şifre sıfırlama) */
td form { margin: 0; }
td form[action="/ata"] { display: flex; gap: 6px; align-items: center; }
td select { padding: 6px 8px; }
td button { padding: 6px 12px; }
button.sifre-dugme { background: #ffffff; color: #006273; border: 1px solid #cbd5e1; font-size: 12px; font-weight: 600; }
button.sifre-dugme:hover { background: #f1f5f9; color: #004552; border-color: #006273; }

/* Çıkış düğmesi */
form[action="/cikis"] { margin-top: 28px; }
form[action="/cikis"] button { background: #dc2626; }
form[action="/cikis"] button:hover { background: #b91c1c; }


/* ---- Haftalık takvim ---- */
body.genis { max-width: 1280px; }

.takvim {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 16px;
}
.gun {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    min-height: 180px;
    min-width: 0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.gun-baslik {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding-bottom: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.gun h3 { margin: 0; font-size: 14px; font-weight: 700; text-align: center; color: #006273; }
.gun-tarih {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 1px 8px;
    border-radius: 999px;
}
.gun.bugun { background: linear-gradient(180deg, #e6f2f5 0%, #f8fafc 100%); border: 2px solid #006273; }
.gun.bugun .gun-tarih { background: #006273; color: #ffffff; font-weight: 600; }
.gun.secilebilir { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s; }
.gun.secilebilir:hover { border-color: #006273; transform: translateY(-1px); }
.gun.secili-gun { background: #ecfeff; border: 2px solid #006273; box-shadow: 0 0 0 3px rgba(0, 98, 115, 0.2); }
.bos { color: #94a3b8; font-size: 13px; text-align: center; margin-top: 24px; }

.odev {
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    border-left: 4px solid;
    overflow-wrap: anywhere;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}
.odev-ders-etiket {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.75);
    color: #1e293b;
    margin-bottom: 4px;
}
.odev-baslik {
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}
.odev small { display: block; max-height: 80px; overflow-y: auto; white-space: pre-wrap; margin-top: 4px; color: #4b5563; font-size: 12px; }
.odev.bekliyor { background: #fefce8; border-color: #eab308; }
.odev.tamam { background: #f0fdf4; border-color: #22c55e; }
.odev .durum { display: inline-block; margin-top: 6px; color: #166534; font-weight: 600; font-size: 12px; }
.odev .durum.bekliyor-durum { color: #854d0e; }
.odev .ogrenci-notu { margin-top: 5px; padding: 5px 7px; background: rgba(255, 255, 255, 0.8); border-radius: 6px; font-size: 12px; color: #1f2937; }
.odev form { margin-top: 8px; }
.odev input[name="ogrenciNotu"] { width: 100%; padding: 5px 7px; font-size: 12px; margin-bottom: 5px; border-radius: 6px; }
.odev button { width: 100%; padding: 5px 10px; font-size: 12px; font-weight: 600; background: #16a34a; border-radius: 6px; }
.odev button:hover { background: #15803d; }
.odev button.geri-al { background: #dc2626; }
.odev button.geri-al:hover { background: #b91c1c; }
.odev form[action="/odev-sil"] button { background: #dc2626; }
.odev form[action="/odev-sil"] button:hover { background: #b91c1c; }
.odev-buton-grubu { display: flex; gap: 5px; margin-top: 8px; }
.odev-buton-grubu > button { flex: 1.3; margin: 0; padding: 5px 6px; font-size: 11px; white-space: nowrap; }
.odev-buton-grubu > form { flex: 1; margin: 0; }
.odev-buton-grubu > form button { padding: 5px 6px; font-size: 11px; white-space: nowrap; }
.odev button.duzenle-dugme { background: #006273; }
.odev button.duzenle-dugme:hover { background: #004552; }
.odev-form-butonlar { display: flex; gap: 10px; align-items: center; }
.odev-form-butonlar button.geri-al { background: #64748b; }
.odev-form-butonlar button.geri-al:hover { background: #475569; }

.gecikmis-kutu {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 14px 0;
}
.gecikmis-kutu h2 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #be123c;
    border-bottom: none;
    padding-bottom: 0;
}
.gecikmis {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
}
.gecikmis-ogesi .odev { margin-bottom: 4px; }
.gecikmis .odev.bekliyor { background: #ffe4e6; border-color: #e11d48; }
.gecikmis-tarih { display: block; font-size: 12px; color: #9f1239; font-weight: 600; padding-left: 4px; }

@media (max-width: 900px) {
    .takvim { grid-template-columns: 1fr; }
    .gun { min-height: auto; }
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 640px) {
    body, body.dar, body.genis {
        margin: 10px;
        padding: 0 4px 20px;
    }
    .ana-menu-kart {
        padding: 16px 14px;
        border-radius: 10px;
    }
    body.giris-sayfasi {
        margin: 0;
        padding: 24px 16px 36px;
        border-radius: 0;
    }
    .giris-kart {
        padding: 24px 20px;
    }
    h1 { font-size: 21px; }
    h2 { font-size: 18px; margin-top: 22px; }
    table { font-size: 13px; }
    th, td { padding: 8px 10px; }
    .hafta-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 10px 12px;
    }
    .hafta-bar a.dugme { text-align: center; }
    .ozet-kartlar { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ozet-kart { padding: 10px 12px; }
    .ozet-kart b { font-size: 19px; }
    .sekmeler, .ders-sekmeler { gap: 6px; }
    .sekme, .ders-sekme { padding: 8px 10px; font-size: 12px; }
    body > form .deneme-tablo input { width: 68px; }
}

/* ---- Admin paneli sekmeleri ---- */
.sekmeler { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.sekme { background: #e6f2f5; color: #006273; padding: 10px 18px; border-radius: 8px 8px 0 0; font-weight: 600; }
.sekme:hover { background: #cbe4e9; }
.sekme.aktif { background: #006273; color: #fff; }
.sekme-icerik { display: none; overflow-x: auto; }

/* ---- Düğme görünümlü bağlantılar ---- */
:is(a, summary).dugme {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: #006273;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 98, 115, 0.25);
    transition: background 0.15s, transform 0.1s;
}
:is(a, summary).dugme:hover { background: #004552; text-decoration: none; transform: translateY(-1px); }
a.dugme.ikincil { background: #e6f2f5; color: #006273; box-shadow: none; border: 1px solid #b3d4db; }
a.dugme.ikincil:hover { background: #d5e9ee; }
:is(a, summary).dugme.rapor-dugme { background: #006273; color: #fff; border: 1px solid #004552; box-shadow: none; font-weight: 600; }
:is(a, summary).dugme.rapor-dugme:hover { background: #004552; color: #fff; }
:is(a, summary).dugme.kucuk { padding: 5px 10px; font-size: 12px; box-shadow: none; text-align: center; }
.pdf-menu { position: relative; }
.pdf-menu[open] { z-index: 3; }
.pdf-menu > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    white-space: nowrap;
}
.pdf-menu > summary::-webkit-details-marker { display: none; }
.pdf-menu > summary::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}
.pdf-menu[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.pdf-menu-liste {
    position: absolute;
    inset: calc(100% + 6px) 0 auto auto;
    min-width: max-content;
    padding: 5px;
    border: 1px solid #b3d4db;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
}
.pdf-menu-liste a, .pdf-menu-liste button {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: #004552;
    font-size: 14px;
    font-weight: 600;
}
.pdf-menu-liste button { width: 100%; text-align: left; background: #fff; }
.pdf-menu-liste :is(a, button):hover, .pdf-menu-liste :is(a, button):focus-visible { background: #e6f2f5; text-decoration: none; }
.pdf-donem-formu { padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid #dbe5e8; }
.pdf-donem-formu label { display: grid; gap: 4px; margin: 6px 8px; font-size: 13px; font-weight: 600; }
.pdf-donem-formu :is(select, input) { width: 100%; min-width: 0; }
.pdf-ozel-tarihler { display: none; }
.pdf-donem-formu:has(option[value="ozel"]:checked) .pdf-ozel-tarihler { display: block; }
@media (max-width: 640px) {
    .pdf-menu-liste { position: static; margin-top: 6px; box-shadow: none; }
    .koc-ust-sag > .pdf-menu[open] { flex-basis: 100%; }
}
@media (min-width: 641px) and (max-width: 820px) {
    .koc-ust-sag > .pdf-menu[open] .pdf-menu-liste { position: static; margin-top: 6px; }
}
.islem-grubu { display: flex; gap: 6px; align-items: center; }

/* ---- Hafta gezinme çubuğu ---- */
.hafta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f0f7f9, #ecfeff);
    border: 1px solid #b3d4db;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
}
.hafta-bilgi { text-align: center; flex: 1; min-width: 160px; }
.hafta-bilgi b { display: block; font-size: 18px; color: #006273; }
.hafta-bilgi span { color: #6b7280; font-size: 14px; }
.hafta-alt { text-align: center; margin: 0 0 8px; }
.ogrenci-haftasi { display: flex; flex-direction: column; }
.ogrenci-haftasi .takvim-kontrolleri { order: -1; }
.mobil-bugun, .mobil-hafta-basligi { display: none; }
@media (max-width: 640px) {
    .ogrenci-haftasi .takvim-kontrolleri { order: 0; }
    .mobil-bugun, .mobil-hafta-basligi { display: block; }
    .mobil-bugun { margin-bottom: 14px; }
    .mobil-bugun .gun-baslik h3 { font-size: 18px; }
    .mobil-hafta-atla { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; }
    .ogrenci-haftasi .takvim > .bugun { display: none; }
    .ogrenci-takvim-sayfasi .sayfa-en-ust { gap: 8px; }
    .ogrenci-takvim-sayfasi .marka { padding: 4px 7px; font-size: 11px; letter-spacing: 0; gap: 4px; }
    .ogrenci-takvim-sayfasi .marka img { width: 20px; height: 20px; }
    .ogrenci-takvim-sayfasi .yks-sayac-bar { gap: 5px; padding: 5px 7px; }
    .ogrenci-takvim-sayfasi .yks-sayac-ikon { width: 24px; height: 24px; }
    .ogrenci-takvim-sayfasi .yks-sayac-ikon img { width: 15px; height: 15px; }
    .ogrenci-takvim-sayfasi .yks-sayac-etiket { font-size: 9px; }
    .ogrenci-takvim-sayfasi .yks-sayac-metin b { font-size: 11px; letter-spacing: 0; }
    .ogrenci-takvim-sayfasi .ogrenci-detay-baslik { padding: 12px; gap: 10px; margin-bottom: 14px; }
    .ogrenci-takvim-sayfasi .ogrenci-detay-sol { flex-direction: row; gap: 9px; }
    .ogrenci-takvim-sayfasi .ogrenci-detay-sol h1 { font-size: 18px; }
    .ogrenci-takvim-sayfasi .ogrenci-avatar.buyuk { width: 38px; height: 38px; }
    .ogrenci-takvim-sayfasi .ogrenci-avatar.buyuk img { width: 23px; height: 23px; }
    .ogrenci-takvim-sayfasi .koc-karsilama { font-size: 13px; }
    .ogrenci-takvim-sayfasi .koc-ust-sag { gap: 6px; }
    .ogrenci-takvim-sayfasi .koc-ust-sag :is(a.dugme, form.ust-cikis button) { padding: 6px 9px; font-size: 12px; }
}

.hafta-kopyala {
    margin-top: 20px;
    padding: 14px 18px;
    border: 1px solid #b3d4db;
    border-radius: 12px;
    background: #f8fafc;
}
.hafta-kopyala summary { color: #006273; font-weight: 700; cursor: pointer; }
.hafta-kopyala p { font-size: 14px; }
.kopya-secimler { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 8px; margin-bottom: 14px; }
.kopya-secimler label { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; background: #fff; border: 1px solid #dbe5e8; border-radius: 8px; cursor: pointer; overflow-wrap: anywhere; }
.kopya-secimler small { display: block; color: #526575; }
.islem-bildirimi { padding: 10px 14px; border-radius: 8px; color: #166534; background: #f0fdf4; }
.ek-bilgi { color: #6b7280; margin: 4px 0 12px; }

/* ---- Bilgi mesajı kutusu ---- */
.mesaj {
    background: #e6f2f5;
    border-left: 4px solid #006273;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

/* ---- Özet kartları ve deneme takibi ---- */
.ozet-kartlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.ozet-kart { background: linear-gradient(135deg, #f0f7f9, #ecfeff); border: 1px solid #b3d4db; border-radius: 12px; padding: 14px 16px; }
.ozet-kart span { display: block; color: #6b7280; font-size: 13px; }
.ozet-kart b { display: block; font-size: 24px; color: #006273; margin: 2px 0; }
.ozet-kart small { display: block; color: #6b7280; font-size: 12px; margin-top: 2px; }
.ozet-kart small.uyari-metin { color: #b45309; font-weight: 600; }
.ilerleme-dis { height: 7px; background: #cbe4e9; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.ilerleme-ic { height: 100%; background: linear-gradient(90deg, #22c55e, #16a34a); border-radius: 999px; transition: width 0.25s; }

.grafik-izgara {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.grafik-karti {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
}
.grafik-karti h3 { margin: 0 0 10px; font-size: 16px; color: #006273; }
.grafik { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px; }

.deneme-ekle-kart {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 20px 24px;
    margin: 24px 0;
}
.deneme-ekle-kart h3 { margin: 0 0 4px; font-size: 18px; color: #006273; }
.deneme-ekle-form { display: flex; flex-direction: column; gap: 14px; }
.deneme-ekle-form label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.deneme-ekle-form > .form-satir-uclu input,
.deneme-ekle-form > .form-satir-uclu select { width: 100%; }
.form-satir-uclu {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
}
.deneme-tablo { max-width: 680px; background: #ffffff; border-radius: 10px; overflow: hidden; }
.deneme-tablo input { display: inline-block; width: 88px; padding: 6px 8px; text-align: center; font-weight: 600; }
.deneme-tablo .rozet { background: #f1f5f9; color: #475569; }
.canli-net { color: #006273; font-size: 15px; }
.toplam-satiri td, .toplam-satiri th { background: #e6f2f5 !important; font-size: 15px; }
.canli-toplam-net { color: #006273; font-size: 16px; }
.deneme-ekle-form button { align-self: flex-start; padding: 10px 22px; font-weight: 600; background: #16a34a; }
.deneme-ekle-form button:hover { background: #15803d; }

.deneme-gecmis-tablo td { white-space: normal; }
.deneme-gecmis-tablo td:nth-child(1),
.deneme-gecmis-tablo td:nth-child(3),
.deneme-gecmis-tablo td:nth-child(4),
.deneme-gecmis-tablo td:nth-child(6) { white-space: nowrap; }
.toplam-net-rozet {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    background: #e6f2f5;
    color: #006273;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid #b3d4db;
}
.ders-rozet-grubu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ders-net-rozet {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    color: #334155;
    white-space: nowrap;
}
.ders-net-rozet b { color: #0f172a; }
.ders-net-rozet em { font-style: normal; font-weight: 700; color: #006273; }

@media (max-width: 760px) {
    .form-satir-uclu { grid-template-columns: 1fr; }
    .grafik-izgara { grid-template-columns: 1fr; }
}

/* ---- Konu (müfredat) takibi ---- */
.ders-sekmeler { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 20px; }
.ders-sekme {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #e6f2f5;
    color: #006273;
    border: 1px solid #b3d4db;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}
.ders-sekme:hover { background: #d5e9ee; text-decoration: none; }
.ders-sekme.aktif { background: #006273; color: #fff; border-color: #006273; }
.ders-sekme.aktif small { color: #e2e8f0; }
.konu-rozet { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.konu-rozet.baslanmadi { background: #f3f4f6; color: #4b5563; }
.konu-rozet.calisiliyor { background: #fef9c3; color: #854d0e; }
.konu-rozet.tamam { background: #dcfce7; color: #166534; }

/* ---- Koç Paneli & Öğrenci Kartları ---- */
.koc-ust-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}
.koc-ust-sol h1 { margin: 0 0 4px; }
.koc-karsilama { margin: 0; color: #4b5563; font-size: 15px; }
.koc-karsilama b { color: #1f2937; }
.koc-ust-sag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.koc-ust-sag form.ust-cikis { margin: 0; }
.koc-ust-sag form.ust-cikis button { padding: 10px 16px; border-radius: 8px; font-weight: 600; }

.ogrenci-kartlar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 16px;
    margin-top: 16px;
}
.ogrenci-kart {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ogrenci-kart:hover {
    transform: translateY(-2px);
    border-color: #006273;
    box-shadow: 0 10px 22px rgba(0, 98, 115, 0.14);
}
.ogrenci-kart:has(.pdf-menu[open]) { z-index: 3; }
.ogrenci-kart-ust {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ogrenci-filtre, .ogrenci-kart-ozet { display: flex; flex-wrap: wrap; gap: 8px; }
.ogrenci-kart-ozet .rozet { background: #e6f2f5; color: #005463; }
.ogrenci-kart-ozet .ozet-uyari, .rozet.ozet-uyari { background: #fff1f2; color: #9f1239; }
.ogrenci-kart-ozet .ozet-bugun, .rozet.ozet-bugun { background: #fef3c7; color: #854d0e; }
.kart-takip-notu { position: relative; z-index: 2; flex-basis: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.ogrenci-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #006273;
    color: #ffffff;
    font-weight: 700;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 98, 115, 0.25);
}
.ogrenci-avatar.buyuk {
    width: 58px;
    height: 58px;
    font-size: 20px;
    border-radius: 14px;
}
.ogrenci-avatar img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}
.ogrenci-avatar.buyuk img {
    width: 32px;
    height: 32px;
}
.ogrenci-kart-bilgi h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #006273;
}
/* Kart bağlantısının tıklama alanını karta yay, ayrı düğmeleri üstte tut. */
.ogrenci-kart-baglanti::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 14px;
}
.ogrenci-kart-baglanti:focus-visible::after { outline: 2px solid #006273; outline-offset: 2px; }
.ogrenci-rozetler {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.rozet {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.sinif-rozet { background: #e6f2f5; color: #006273; border: 1px solid #b3d4db; }
.bolum-rozet { background: #ecfeff; color: #006273; border: 1px solid #a5f3fc; }
.koc-rozet { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.yks-rozet { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

.ogrenci-kart-aksiyonlar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.ogrenci-kart-aksiyonlar > :is(a.dugme, .pdf-menu) {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: max-content;
}
.ogrenci-kart-aksiyonlar > .pdf-menu[open] { z-index: 3; }
.ogrenci-kart-aksiyonlar > a.dugme, .ogrenci-kart-aksiyonlar .pdf-menu summary {
    padding: 8px 12px;
}

.bos-kutu {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    color: #64748b;
}

/* ---- Öğrenci Detay Üst Başlığı ve Ödev Ekleme Kartı ---- */
.ogrenci-detay-baslik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f8fafc, #e6f2f5);
    border: 1px solid #b3d4db;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.ogrenci-detay-sol {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ogrenci-detay-sol h1 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #006273;
}
.ogrenci-iletisim {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 13px;
    color: #4b5563;
}
.ogrenci-detay-sag {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---- Güncel Durum ---- */
.durum-paneli, .durum-ekle form {
    display: grid;
    gap: 16px;
}
.durum-ekle, .durum-bolumu {
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid #dbe5e8;
    border-radius: 14px;
    background: #f8fafc;
}
.durum-ekle h2, .durum-bolumu h2 { margin: 0 0 14px; font-size: 18px; }
.durum-form-alanlari, .durum-sutunlari {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.durum-form-alanlari { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.durum-form-islemleri { display: flex; align-items: center; gap: 10px; }
.durum-ekle label { display: grid; align-content: start; gap: 6px; font-size: 14px; font-weight: 600; }
.durum-ekle label small { color: #526575; font-size: 12px; font-weight: 400; }
.durum-ekle input, .durum-ekle select, .durum-ekle textarea { min-width: 0; width: 100%; }
.durum-ekle textarea { resize: vertical; }
.durum-ekle button { justify-self: start; font-weight: 600; }

.durum-iyi { border-top: 3px solid #2d8566; background: #f3faf6; }
.durum-kotu { border-top: 3px solid #b55e42; background: #fdf7f3; }
.durum-cozuldu { border-top: 3px solid #548798; }
.durum-iyi h2 { color: #1e654d; }
.durum-kotu h2 { color: #8b432d; }
.durum-bos { margin: 0; color: #526575; font-size: 14px; }
.durum-notu {
    padding: 14px;
    border: 1px solid #dbe5e8;
    border-radius: 10px;
    background: #fff;
    overflow-wrap: anywhere;
}
.durum-notu + .durum-notu { margin-top: 10px; }
.durum-notu:target { outline: 2px solid #006273; outline-offset: 2px; }
.durum-not-metni { margin: 0 0 10px; white-space: pre-wrap; }
.durum-not-etiketleri, .durum-not-alt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.durum-not-etiketleri { margin-bottom: 10px; }
.durum-etiket { background: #e6f2f5; color: #005463; }
.durum-konu { background: #edf2f7; color: #334155; }
.durum-not-alt { justify-content: space-between; color: #526575; font-size: 12px; }
.durum-not-alt form { margin: 0; }
.durum-not-alt button {
    padding: 6px 10px;
    border: 1px solid #b3d4db;
    background: #e6f2f5;
    color: #005463;
    font-size: 12px;
    font-weight: 600;
}
.durum-not-alt button:hover { background: #d5e9ee; }
.durum-not-alt .durum-sil button { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.durum-not-alt .durum-sil button:hover { background: #fee2e2; }

@media (max-width: 700px) {
    .durum-form-alanlari, .durum-sutunlari { grid-template-columns: minmax(0, 1fr); }
    .durum-ekle, .durum-bolumu { padding: 14px; }
}

.odev-ekle-kart {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    margin-top: 24px;
    max-width: 680px;
}
.odev-ekle-kart h3 { margin: 0 0 4px; font-size: 18px; }
.odev-ekle-ipucu { margin: 0 0 14px; font-size: 13px; color: #6b7280; }
.odev-ekle-form { display: flex; flex-direction: column; gap: 12px; }
.odev-ekle-form label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.odev-ekle-form input,
.odev-ekle-form select,
.odev-ekle-form textarea { width: 100%; }
.form-satir-ikili {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.odev-ekle-form button { align-self: flex-start; padding: 10px 20px; font-weight: 600; }

.konu-bolum-karti {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
}
.konu-bolum-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.konu-bolum-ust h3 { margin: 0; font-size: 18px; color: #006273; }
.konu-bolum-karti table { background: #ffffff; border-radius: 10px; overflow: hidden; margin-bottom: 0; }
.satir-ikon {
    width: 15px;
    height: 15px;
    object-fit: contain;
    vertical-align: -2px;
    margin-right: 4px;
}
.satir-ikon.buyuk-ikon {
    width: 22px;
    height: 22px;
    vertical-align: -3px;
    margin-right: 4px;
}

.profil-izgara {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 820px) {
    .profil-izgara { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .form-satir-ikili { grid-template-columns: 1fr; }
    .ogrenci-detay-sol { flex-direction: column; align-items: flex-start; }
}
