/*
 * Resona Sanat - kurumsal marka ve arayuz katmani.
 * Metronic style.bundle.css sonrasinda yuklenir; temayi degistirmez, uzerine yazar.
 */

/* ============================================================
   1. Marka jetonlari
   ============================================================ */
:root {
    --rs-ink: #1b2430;          /* tabeladaki koyu antrasit */
    --rs-ink-soft: #2c3949;
    --rs-accent: #2f6f8f;       /* yonetim odasinin petrol mavisi */
    --rs-accent-soft: #eaf1f5;
    --rs-line: rgba(27, 36, 48, 0.10);
    --rs-serif: Georgia, "Times New Roman", "Times", serif;

    /* Metronic aside/header olculeri (layout duzeltmeleri bunlara dayanir) */
    --rs-aside-width: 265px;
    --rs-header-height: 74px;
}

/* ============================================================
   2. Logo kullanimi
   Iki seffaf zeminli surum var: koyu yuzeyler icin resona-logo-beyaz.png,
   acik yuzeyler icin resona-logo-siyah.png. Hangisinin kullanilacagini
   marka fragment'i (fragments/common :: brand) markTone'a gore secer.

   Daha once tek bir beyaz zeminli PNG blend mode ile kullaniliyordu; araya
   yigin baglami (stacking context) giren her yerde -orn. giris ekraninin
   fotograf uzerindeki paneli- logo siyah bir kare olarak gorunuyordu.
   ============================================================ */
.rs-mark {
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
}

/* Marka kilidi: isaret + kelime markasi */
.rs-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.rs-brand:hover {
    text-decoration: none;
}

.rs-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

.rs-brand-name {
    font-family: var(--rs-serif);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.rs-brand-sub {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.72;
}

/* Boyut varyantlari */
.rs-brand--sm .rs-mark { width: 34px; height: 34px; }
.rs-brand--sm .rs-brand-name { font-size: 0.94rem; }

.rs-brand--md .rs-mark { width: 42px; height: 42px; }
.rs-brand--md .rs-brand-name { font-size: 1.05rem; }

.rs-brand--lg .rs-mark { width: 56px; height: 56px; }
.rs-brand--lg .rs-brand-name { font-size: 1.35rem; letter-spacing: 0.18em; }

.rs-brand--hero .rs-mark { width: 92px; height: 92px; }
.rs-brand--hero .rs-brand-name { font-size: 2rem; letter-spacing: 0.2em; }
.rs-brand--hero .rs-brand-sub { font-size: 0.72rem; }

/* Renk varyantlari */
.rs-brand--light .rs-brand-name,
.rs-brand--light .rs-brand-sub { color: #ffffff; }

.rs-brand--dark .rs-brand-name { color: var(--rs-ink); }
.rs-brand--dark .rs-brand-sub { color: var(--rs-ink-soft); }

/*
 * Dikey kilit (giris ekrani / hero).
 * th:replace host etiketin siniflarini korumadigi icin sarmalayici uzerinden uygulanir.
 */
.rs-brand-stack > .rs-brand {
    flex-direction: column;
    gap: 1.1rem;
    text-align: center;
}

.rs-brand-stack > .rs-brand .rs-brand-text { align-items: center; }

/* ============================================================
   3. Yonetim paneli yerlesim duzeltmeleri
   Metronic bundle'inda .aside top:74px / .header left:0 tanimli.
   Bu yuzden ust bar icerikle hizasiz kaliyordu; asagida hizalaniyor.
   ============================================================ */
@media (min-width: 992px) {
    .aside {
        top: 0;
        width: var(--rs-aside-width);
    }

    .header {
        left: var(--rs-aside-width);
    }

    [data-kt-aside-minimize="on"] .header {
        left: 0;
    }

    .aside-logo {
        height: var(--rs-header-height);
        min-height: var(--rs-header-height);
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .header .container-fluid {
        padding-left: 30px;
        padding-right: 30px;
    }
}

body.aside-enabled { background: #f5f7fa; }

.header {
    border-bottom: 1px solid var(--rs-line);
    box-shadow: none;
}

.rs-header-title {
    font-family: var(--rs-serif);
    letter-spacing: 0.02em;
}

/* Ust bardaki kullanici bloku profil sayfasina baglantidir */
.rs-header-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-right: 1rem;
    margin-right: 0.25rem;
    border-right: 1px solid var(--rs-line);
    text-decoration: none;
    border-radius: 0.475rem;
    transition: background-color .18s ease;
}

.rs-header-user:hover { background: rgba(27, 36, 48, 0.04); }

/* Profil sayfasi */
.rs-profil-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--rs-ink);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--rs-serif);
    font-size: 1.5rem;
    flex: 0 0 auto;
    text-transform: uppercase;
}

.rs-profil-satir {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px dashed var(--rs-line);
}

.rs-profil-satir:last-of-type { border-bottom: 0; }

.rs-profil-etiket {
    color: #7e8299;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}

.rs-profil-deger {
    color: var(--rs-ink);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.rs-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rs-ink);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Sidebar menu */
.aside .menu-link .menu-title { color: #c9cbd1; }
.aside .menu-link.active .menu-title,
.aside .menu-link:hover .menu-title { color: #fff; }
.aside .menu-heading { color: #6d6d80 !important; letter-spacing: 0.12em; }

.rs-menu-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.menu-link.active .rs-menu-dot,
.menu-link:hover .rs-menu-dot { opacity: 1; }

/*
 * Toolbar. Metronic .content'e 30px ust bosluk verdigi icin baslik cubugu
 * header'dan kopuk duruyordu; bosluk icerige tasiniyor, cubuk header'a yaslaniyor.
 */
.content { padding-top: 0; }
.content > .post { padding-top: 30px; }

.toolbar {
    background: #fff;
    border-bottom: 1px solid var(--rs-line);
}

.rs-toolbar-title {
    font-family: var(--rs-serif);
    letter-spacing: 0.01em;
}

/* Karsilama karti */
.rs-welcome-card {
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 12%, rgba(47, 111, 143, 0.35), transparent 42%),
        linear-gradient(135deg, var(--rs-ink), #2b3a4a);
    border: 0;
}

/* ============================================================
   4. Tablolar / DataTables
   ============================================================ */
.card { border: 1px solid rgba(27, 36, 48, 0.05); }
.form-label.required::after { content: " *"; color: #f1416c; }

.rs-table { width: 100%; margin-bottom: 0; }
.rs-table thead th { padding: .95rem 1rem; white-space: nowrap; }
.rs-table tbody td { padding: .9rem 1rem; vertical-align: middle; }
.rs-empty-state { padding: 2.5rem 1rem; text-align: center; color: #7e8299; font-weight: 600; }

/* Cok sutunlu tablolar sikismasin; .rs-dt-scroll icinde yatay kayarlar. */
.rs-table-wide { min-width: 1180px; }

/*
 * Resona tablo motoru (fragments/common :: datatables).
 * Tablo kendi yatay kaydirma kutusunda durur; genis tablolar sayfayi kaydirmaz.
 */
.rs-dt-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
}

.rs-dt-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
}

.rs-dt-bar-ust { margin-bottom: 1.1rem; }
.rs-dt-bar-alt { margin-top: 1.1rem; }

.rs-dt-boyut { display: flex; align-items: center; gap: .5rem; }
.rs-dt-etiket { color: #7e8299; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.rs-dt-select { width: auto; min-width: 82px; }

.rs-dt-arama { flex: 0 1 280px; min-width: 200px; }
.rs-dt-bilgi { color: #7e8299; font-size: .85rem; font-weight: 500; }
.rs-dt-sayfalar { margin-bottom: 0; }

/* Siralanabilir baslik gostergeleri */
.rs-dt-sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.9rem !important;
}

.rs-dt-sortable::after {
    content: "";
    position: absolute;
    right: .7rem;
    top: 50%;
    margin-top: -3px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: .22;
}

.rs-dt-sortable:hover::after { opacity: .5; }
.rs-dt-sortable.rs-dt-desc::after { opacity: .9; }

.rs-dt-sortable.rs-dt-asc::after {
    border-top: 0;
    border-bottom: 5px solid currentColor;
    opacity: .9;
}

/* Islem sutunu daralmasin */
.rs-col-actions { width: 1%; white-space: nowrap; }

/* ============================================================
   4b. Ogrenci avatari (profil fotografi / bas harf)
   ============================================================ */
.rs-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    background: var(--rs-accent-soft);
    color: var(--rs-ink);
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    user-select: none;
}

.rs-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Duzenleme ekranindaki buyuk onizleme */
.rs-avatar--onizleme { border: 3px solid var(--rs-line); }

/* Ana sayfadaki giris acma/kapama satiri */
.rs-giris-satiri {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px dashed var(--rs-line);
    border-radius: .625rem;
}

/* Ders durumu rozeti: temanin sarisi yerine gercek turuncu */
.badge.rs-badge-orange { color: #e8590c; background-color: #fff1e6; }

/* ============================================================
   5. Modal icindeki ekleme formlari
   ============================================================ */
.rs-modal-form .form-label { font-weight: 600; font-size: .9rem; }
.modal-header { border-bottom: 1px solid var(--rs-line); }
.modal-title { font-family: var(--rs-serif); letter-spacing: .02em; }

/* ------------------------------------------------------------
   5.1 Ogrenci secici (fragments/ogrenci-secici)
   Ders formunda ogrenciler onay kutusuyla secilir; grup dersinde
   birden fazlasi ayni derse yazilir.
   ------------------------------------------------------------ */
.rs-os {
    border: 1px solid var(--rs-line);
    border-radius: .625rem;
    background: #fff;
    padding: .85rem;
}

.rs-os-ust {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: .65rem;
}

.rs-os-arama { flex: 1 1 220px; min-width: 180px; }
.rs-os-sayac { font-size: .85rem; font-weight: 600; color: var(--rs-ink-soft); }

/* Secili ogrenci jetonlari: arama listeyi suzse bile secim gorunur kalir. */
.rs-os-secilenler { display: flex; flex-wrap: wrap; gap: .4rem; }
.rs-os-secilenler:not(:empty) { margin-bottom: .65rem; }

.rs-os-jeton {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .3rem .25rem .6rem;
    border-radius: 999px;
    background: var(--rs-accent-soft);
    color: var(--rs-ink);
    font-size: .82rem;
    font-weight: 600;
}

.rs-os-jeton-x {
    border: 0;
    background: transparent;
    color: var(--rs-ink-soft);
    line-height: 1;
    font-size: 1.05rem;
    padding: 0 .25rem;
    cursor: pointer;
}

.rs-os-jeton-x:hover { color: #f1416c; }

.rs-os-liste {
    max-height: 230px;
    overflow-y: auto;
    border: 1px solid var(--rs-line);
    border-radius: .475rem;
}

.rs-os-satir {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .75rem;
    margin: 0;
    cursor: pointer;
    border-bottom: 1px dashed var(--rs-line);
}

.rs-os-satir:last-child { border-bottom: 0; }
.rs-os-satir:hover { background: var(--rs-accent-soft); }
.rs-os-satir[hidden] { display: none; }

.rs-os-ad { font-weight: 600; color: var(--rs-ink); }
.rs-os-alt { font-size: .78rem; color: #7e8299; margin-left: auto; }

/* Bireysel modda liste tek secimlidir; onay kutulari radyo gibi yuvarlak gorunur. */
.rs-os--tekli .rs-os-satir .form-check-input { border-radius: 50%; }

.rs-os-bos { padding: 1.25rem .75rem; text-align: center; color: #7e8299; font-weight: 600; }
.rs-os-ipucu { margin-top: .5rem; }

/* ------------------------------------------------------------
   5.2 Odeme plani karti (ogrenci detayi)
   Taksitler plan basligi altinda toplanir; plan bir butun olarak
   gorunur ve yonetilir.
   ------------------------------------------------------------ */
.rs-plan {
    border: 1px solid var(--rs-line);
    border-radius: .625rem;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.rs-plan:last-child { margin-bottom: 0; }
.rs-plan--iptal { background: #fafbfc; opacity: .8; }

.rs-plan-ust {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: .9rem;
}

.rs-plan-ad {
    font-family: var(--rs-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rs-ink);
}

.rs-plan-tutarlar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    text-align: right;
}

.rs-plan-etiket {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    color: #7e8299;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.rs-plan-deger { display: block; font-weight: 700; color: var(--rs-ink); }

.rs-plan-islemler {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px dashed var(--rs-line);
}

/* Iptal edilen taksitler bakiyeye girmez ama iz olarak gorunur. */
.rs-plan-iptalli { margin-top: .9rem; }

.rs-plan-iptalli-satir {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .35rem 0;
    font-size: .85rem;
}

/* ============================================================
   6. Kurumsal tanitim sitesi
   ============================================================ */
.rs-public-header {
    position: fixed;
    top: 0; right: 0; left: 0;
    z-index: 100;
    height: 78px;
    display: flex;
    align-items: center;
    transition: background-color .25s ease, box-shadow .25s ease;
}

.rs-public-header.rs-scrolled {
    background: rgba(27, 36, 48, 0.96);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}

.rs-public-nav .rs-nav-link {
    color: rgba(255, 255, 255, .78);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .02em;
    padding: .55rem .9rem;
    text-decoration: none;
    transition: color .2s ease;
}

.rs-public-nav .rs-nav-link:hover,
.rs-public-nav .rs-nav-link.active { color: #fff; }

.rs-btn-outline-light {
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
    background: transparent;
    font-weight: 600;
    padding: .6rem 1.4rem;
    border-radius: .475rem;
    text-decoration: none;
    display: inline-block;
    transition: background-color .2s ease, border-color .2s ease;
}

.rs-btn-outline-light:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
    color: #fff;
}

/* Tanitim sitesinde oturum acik oldugunda gosterilen kullanici adi ve cikis */
.rs-public-user {
    color: rgba(255, 255, 255, .75);
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
}

.rs-btn-cikis {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .65);
    font-weight: 600;
    font-size: .9rem;
    padding: .6rem .4rem;
    cursor: pointer;
    transition: color .2s ease;
}

.rs-btn-cikis:hover { color: #fff; }

/* Hero */
.rs-hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center 62%;
    background-repeat: no-repeat;
}

.rs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 36, 48, .82) 0%, rgba(27, 36, 48, .68) 45%, rgba(27, 36, 48, .90) 100%);
}

.rs-hero > .container { position: relative; z-index: 2; }

.rs-hero-title {
    font-family: var(--rs-serif);
    color: #fff;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1.18;
    letter-spacing: .01em;
    margin-bottom: 1.25rem;
}

.rs-hero-lead {
    color: rgba(255, 255, 255, .78);
    font-size: 1.12rem;
    max-width: 620px;
    line-height: 1.75;
}

.rs-eyebrow {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--rs-accent);
    margin-bottom: 1rem;
}

.rs-eyebrow--light { color: rgba(255, 255, 255, .65); }

.rs-section-title {
    font-family: var(--rs-serif);
    color: var(--rs-ink);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.rs-rule {
    width: 54px;
    height: 2px;
    background: var(--rs-accent);
    border: 0;
    opacity: 1;
    margin: 0 0 1.5rem 0;
}

.rs-rule--center { margin-left: auto; margin-right: auto; }

/* Sayilar seridi */
.rs-stat-strip {
    background: var(--rs-ink);
    color: #fff;
}

.rs-stat {
    text-align: center;
    padding: 2rem 1rem;
}

.rs-stat-value {
    font-family: var(--rs-serif);
    font-size: 2.4rem;
    line-height: 1;
    display: block;
    margin-bottom: .5rem;
}

.rs-stat-label {
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    font-weight: 600;
}

/* Brans kartlari */
.rs-branch {
    border: 1px solid var(--rs-line);
    border-radius: .6rem;
    padding: 2rem 1.5rem;
    height: 100%;
    background: #fff;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.rs-branch:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 111, 143, .35);
    box-shadow: 0 16px 40px rgba(27, 36, 48, .09);
}

.rs-branch-index {
    font-family: var(--rs-serif);
    font-size: .9rem;
    letter-spacing: .16em;
    color: var(--rs-accent);
    display: block;
    margin-bottom: .9rem;
}

.rs-branch-name {
    font-family: var(--rs-serif);
    font-size: 1.25rem;
    color: var(--rs-ink);
    margin-bottom: .6rem;
}

.rs-branch-desc {
    color: #6f7683;
    font-size: .95rem;
    line-height: 1.7;
    margin: 0;
}

/* Mekan galerisi */
.rs-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 210px;
    gap: 14px;
}

.rs-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: .5rem;
    background: #e9ecf0;
}

.rs-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.rs-gallery-item:hover img { transform: scale(1.05); }

.rs-gallery-item figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.5rem 1.1rem .9rem;
    background: linear-gradient(180deg, transparent, rgba(27, 36, 48, .88));
    color: #fff;
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: .02em;
}

.rs-gallery-item--tall { grid-row: span 2; }
.rs-gallery-item--wide { grid-column: span 2; }

/* Hakkimizda gorseli */
.rs-figure {
    border-radius: .6rem;
    overflow: hidden;
    line-height: 0;
}

.rs-figure img { width: 100%; height: 100%; object-fit: cover; }

.rs-check-list { list-style: none; padding: 0; margin: 0; }

.rs-check-list li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 1rem;
    color: #4b5563;
    font-size: 1.02rem;
    line-height: 1.6;
}

.rs-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .48em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rs-accent);
}

/* Iletisim */
.rs-contact-card {
    border: 1px solid var(--rs-line);
    border-radius: .6rem;
    padding: 2rem;
    height: 100%;
    background: #fff;
}

.rs-contact-label {
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--rs-accent);
    font-weight: 700;
    display: block;
    margin-bottom: .6rem;
}

.rs-contact-value { color: var(--rs-ink); font-size: 1.02rem; line-height: 1.7; }
.rs-contact-value a { color: var(--rs-ink); text-decoration: none; }
.rs-contact-value a:hover { color: var(--rs-accent); }

/* CTA seridi */
.rs-cta {
    background: linear-gradient(135deg, var(--rs-ink), #2b3a4a);
    color: #fff;
}

/* Footer */
.rs-footer { background: var(--rs-ink); color: rgba(255, 255, 255, .62); }
.rs-footer a { color: rgba(255, 255, 255, .62); text-decoration: none; }
.rs-footer a:hover { color: #fff; }
.rs-footer-divider { border-top: 1px solid rgba(255, 255, 255, .10); }

/* ============================================================
   Hata sayfalari (404 / 403 / 500)
   ============================================================ */
.rs-error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #fff;
}

.rs-error-box {
    max-width: 560px;
    width: 100%;
    text-align: center;
}

.rs-error-code {
    font-family: var(--rs-serif);
    font-size: clamp(4rem, 12vw, 7rem);
    line-height: 1;
    color: var(--rs-accent);
    opacity: .22;
    letter-spacing: .04em;
}

.rs-error-title {
    font-family: var(--rs-serif);
    font-size: clamp(1.4rem, 3.4vw, 2rem);
    color: var(--rs-ink);
    margin: -.5rem 0 1rem;
}

.rs-error-text {
    color: #6f7683;
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
}

/* Giris ekrani sol panel */
.rs-login-aside {
    position: relative;
    background-size: cover;
    background-position: center;
}

.rs-login-aside::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 36, 48, .90), rgba(27, 36, 48, .96));
}

.rs-login-aside > * { position: relative; z-index: 2; }

/* ============================================================
   7. Takvim ekrani
   ============================================================ */
#takvim, #obg-fc-takvim { min-height: 620px; }

.fc {
    --fc-border-color: #eceef2;
    --fc-today-bg-color: var(--rs-accent-soft);
    --fc-neutral-bg-color: var(--rs-accent-soft);
    --fc-page-bg-color: #fff;
    font-family: inherit;
}

.fc .fc-toolbar-title { color: var(--rs-ink); font-size: 20px; font-weight: 700; }
.fc .fc-button { background: var(--rs-ink); border: none; text-transform: capitalize; box-shadow: none !important; }
.fc .fc-button:hover { background: var(--rs-ink); opacity: .85; }
.fc .fc-button-primary:not(:disabled).fc-button-active { background: var(--rs-accent); }
.fc .fc-col-header-cell { background: var(--rs-accent-soft); }
.fc-event { border: none; border-radius: 6px; padding: 1px 4px; cursor: pointer; font-size: 12px; }
.fc-event:hover { filter: brightness(1.08); }

/*
 * Hafta gorunumu dar alanda sikisip ders yazilarini kirpiyordu. Takvimi kendi
 * yatay kaydirma kutusuna alip her gune okunabilir bir genislik veriyoruz.
 */
.rs-takvim-kaydir { overflow-x: auto; padding-bottom: 4px; }

/*
 * 2400px, ayni saatte ucer dersin yan yana dustugu en yogun sutunda bile
 * blok yazilarinin kisaltilmadan sigdigi genislik (olculerek belirlendi).
 * Sadece hafta gorunumune uygulanir; gun ve ay gorunumleri ekrana sigar.
 */
.rs-takvim-kaydir .fc-timeGridWeek-view { min-width: 2400px; }

/*
 * Yatay kaydirmada saat sutunu solda sabit kalsin. FullCalendar'in kendi
 * sarmalayicisi overflow:hidden oldugu icin sticky calismiyordu; yukseklik
 * "auto" oldugundan bu kutunun kirpmaya ihtiyaci yok, gorunur birakiyoruz.
 */
.rs-takvim-kaydir .fc-scroller-harness { overflow: visible; }

.rs-takvim-kaydir .fc-timegrid-axis,
.rs-takvim-kaydir .fc-timegrid-slot-label {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #fff;
}

.rs-takvim-kaydir .fc-timegrid-axis { background: var(--rs-accent-soft); }

/* Satirlar daha yuksek: 45 dakikalik bir derste iki satir yazi rahat sigsin */
.fc .fc-timegrid-slot { height: 2.8em; }

/* Ders blogu: iki sabit satir, her biri tek satirda kalir ve tasarsa "..." ile kisalir */
.rs-fc-icerik { overflow: hidden; height: 100%; }
.rs-fc-ust, .rs-fc-alt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-fc-ust { font-weight: 700; font-size: 11px; line-height: 1.35; }
.rs-fc-alt { font-size: 10.5px; line-height: 1.3; opacity: .92; }

/* Ay gorunumunde tek satir yeterli */
.fc-daygrid-event { padding: 1px 5px; }
.fc-daygrid-event .rs-fc-alt { display: none; }
.fc-daygrid-event .fc-event-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.takvim-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 13px; color: #666; }
.takvim-legend .ogesi { display: flex; align-items: center; gap: 6px; }
.takvim-legend .renk { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }

/* Gorunum sekmeleri */
.gorunum-sekmeleri {
    display: flex;
    gap: 6px;
    margin: 0 0 20px 0;
    background: var(--rs-accent-soft);
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
}

.sekme-btn {
    border: none; background: transparent; color: var(--rs-ink); font-weight: 600;
    padding: 8px 18px; border-radius: 6px; cursor: pointer; font-size: 14px;
}

.sekme-btn.aktif { background: var(--rs-ink); color: #fff; }

/* Ogretmen bazli gorunum */
.obg-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }

.obg-filtre { position: relative; }

.obg-filtre-btn {
    background: #fff; border: 1px solid #dfe2e8; border-radius: 8px; padding: 9px 14px;
    font-size: 14px; color: var(--rs-ink); cursor: pointer; display: flex; align-items: center; gap: 8px;
}

.obg-filtre-btn .ok { color: #999; font-size: 11px; }

.obg-filtre-panel {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 50;
    background: #fff; border: 1px solid #dfe2e8; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    padding: 10px; min-width: 240px; max-height: 320px; overflow-y: auto;
}

.obg-filtre-panel.acik { display: block; }

.obg-filtre-tumu {
    display: block; width: 100%; text-align: left; background: none; border: none; color: var(--rs-ink);
    font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 6px 8px 6px;
    border-bottom: 1px solid #eee; margin-bottom: 6px;
}

.obg-filtre-item { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 5px; cursor: pointer; }
.obg-filtre-item:hover { background: var(--rs-accent-soft); }
.obg-filtre-item .renk { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.obg-filtre-item span.ad { font-size: 13px; }

.obg-alt-sekmeler { display: flex; gap: 4px; background: var(--rs-accent-soft); padding: 4px; border-radius: 8px; width: fit-content; margin-bottom: 16px; }

.obg-alt-btn {
    border: none; background: transparent; color: var(--rs-ink); font-weight: 600;
    padding: 7px 16px; border-radius: 6px; cursor: pointer; font-size: 13px;
}

.obg-alt-btn.aktif { background: var(--rs-ink); color: #fff; }

.obg-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.obg-nav-sol { display: flex; align-items: center; gap: 8px; }

.obg-nav-btn, .obg-bugun-btn {
    background: #fff; border: 1px solid #dfe2e8; border-radius: 7px; color: var(--rs-ink);
    font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px 12px;
}

.obg-nav-btn:hover, .obg-bugun-btn:hover { background: var(--rs-accent-soft); }
.obg-tarih-input { border: 1px solid #dfe2e8; border-radius: 7px; padding: 8px 10px; font-size: 13px; }
.obg-baslik { font-size: 18px; font-weight: 700; color: var(--rs-ink); }

.obg-grid-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 70vh;
    border: 1px solid #eceef2;
    border-radius: 10px;
    background: #fff;
}

.obg-grid { display: flex; min-width: 100%; width: max-content; }
.obg-saat-sutunu { flex: none; width: 64px; position: sticky; left: 0; z-index: 6; background: #fff; }
.obg-ogretmen-sutunu { flex: 1 0 210px; border-left: 1px solid #eceef2; }

/*
 * Sutun basliklari: kaydirma kutusunun kendi ustune yapisir (viewport'a degil),
 * boylece ogretmen isimleri sabit ust bara girmez ve kaymaz.
 */
.obg-sutun-baslik {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1.25;
    padding: 4px 8px;
    position: sticky;
    top: 0;
    z-index: 5;
    overflow: hidden;
}

/* Uzun isimler tasmasin: en fazla iki satir, sonrasi kisaltilir */
.obg-sutun-baslik > span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.obg-saat-sutunu .obg-sutun-baslik { background: #fff; z-index: 7; }

.obg-govde { position: relative; }

.obg-saat-etiket {
    position: absolute; right: 8px; transform: translateY(-50%);
    font-size: 11px; color: #9aa1ad; font-weight: 600; background: #fff; padding-left: 2px;
}

.obg-yatay-cizgi { position: absolute; left: 0; right: 0; border-top: 1px solid #f4f5f7; }
.obg-yatay-cizgi.saat-basi { border-top: 1px solid #e6e8ec; }

.obg-blok {
    position: absolute; left: 3px; right: 3px; border-radius: 6px; color: #fff; overflow: hidden;
    padding: 5px 8px; font-size: 12px; line-height: 1.35; cursor: pointer; box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

.obg-blok:hover { filter: brightness(1.08); }
.obg-blok .saat { font-weight: 700; opacity: .95; }
.obg-blok .isim { font-weight: 700; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.obg-blok .tur { opacity: .9; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.obg-bos { text-align: center; color: #9aa1ad; font-size: 13px; padding: 40px 0; width: 100%; }

/* Izgara saat araliginin disinda kalan dersler icin bilgi seridi */
.obg-aralik-uyari {
    background: #fff8f2; border: 1px solid #ffd9bd; color: #b4530f;
    border-radius: 8px; padding: 9px 13px; font-size: 12.5px; margin-bottom: 12px;
}

/* Hafta alt gorunumu */
.obg-hafta-baslik-satiri { margin-bottom: 14px; }
.obg-ogretmen-sutunu-genis { flex: 1 0 434px; border-left: 1px solid #eceef2; }
.obg-hafta-gun-satiri { display: flex; }
.obg-hafta-gun-mini { flex: 1 0 62px; border-left: 1px solid #f5f6f8; }
.obg-hafta-gun-mini:first-child { border-left: none; }

.obg-hafta-gun-baslik {
    text-align: center; font-size: 11.5px; font-weight: 700; color: #8a919e;
    background: #fafbfc; padding: 5px 0; position: sticky; top: 46px; z-index: 4;
}

.obg-blok-mini {
    position: absolute; left: 2px; right: 2px; border-radius: 4px; color: #fff; overflow: hidden;
    padding: 3px 4px; font-size: 11px; line-height: 1.25; cursor: pointer; font-weight: 700; text-align: center;
}

.obg-blok-mini:hover { filter: brightness(1.08); }

/* Ders Ekle/Duzenle formundaki mini musaitlik izgarasi (bkz. schedule.html) */
.ds-secili-gun { background: rgba(75, 63, 114, .06); }

.ds-onizleme {
    background: transparent !important;
    border: 2px dashed #2f9e44;
    color: #2f9e44 !important;
}

.ds-lejant-nokta {
    display: inline-block; width: 10px; height: 10px; border-radius: 3px;
    margin-right: 4px; vertical-align: middle;
}

/*
 * Secim ozeti kutusu: hangi gun/saatin secili oldugunu (ya da henuz secilmedigini)
 * gosterir. Kucuk bir Bootstrap alert yerine kendi stilini kullaniyor cunku bu
 * kutu az sonra kaydedilecek asil deger -- goze carpmasi gerekiyor.
 */
.ds-ozet {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-left-width: 4px;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.ds-ozet-ikon {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

.ds-ozet-metin { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.ds-ozet-etiket {
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; opacity: .75;
}

.ds-ozet-deger { font-size: 17px; font-weight: 700; line-height: 1.3; }

.ds-ozet-bos { background: #f8f9fb; border-color: #e5e7eb; border-left-color: #c7cad1; color: #6b7280; }
.ds-ozet-bos .ds-ozet-ikon { background: #e5e7eb; color: #9aa1ad; }
.ds-ozet-bos .ds-ozet-deger { font-size: 14px; font-weight: 600; }

.ds-ozet-secili { background: #eafaf1; border-color: #b7ecc8; border-left-color: #2f9e44; color: #14532d; }
.ds-ozet-secili .ds-ozet-ikon { background: #2f9e44; color: #fff; }

.ds-ozet-hata { background: #fdecec; border-color: #f7c8c8; border-left-color: #c0392b; color: #7a1f1f; }
.ds-ozet-hata .ds-ozet-ikon { background: #c0392b; color: #fff; }

/*
 * Sure (ders suresi) kutusu: secim ozetiyle (.ds-ozet) ayni kart dili -- ikon +
 * etiket/deger -- ama bir kademe kucuk fontla, cunku ikincil bir kontrol.
 */
.ds-sure-kutu {
    display: flex; align-items: center; gap: 10px;
    border-radius: 10px; padding: 9px 14px;
    border: 1px solid #e5e7eb; border-left-width: 4px; border-left-color: #c7cad1;
    background: #f8f9fb; color: #4b5563;
}

.ds-sure-ikon {
    flex: none; width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; background: #e5e7eb; color: #6b7280;
}

.ds-sure-metin { display: flex; flex-direction: column; gap: 1px; }

.ds-sure-etiket {
    font-size: 10px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; opacity: .75;
}

.ds-sure-deger { font-size: 15px; font-weight: 700; }

.ds-sure-butonlar { display: flex; gap: 4px; margin-left: 4px; }

/* Ders detay modali (takvim) */
#ders-detay-modal {
    position: fixed; inset: 0; background: rgba(27, 36, 48, .55);
    display: none; align-items: center; justify-content: center; z-index: 1100;
}

#ders-detay-modal .kutu {
    background: #fff; padding: 24px; border-radius: 10px; max-width: 400px; width: 90%;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28); border: 1px solid var(--rs-line);
}

#ders-detay-modal h3 { margin-top: 0; color: var(--rs-ink); font-family: var(--rs-serif); }
#ders-detay-modal dt { font-weight: 600; color: #8a919e; font-size: 12px; margin-top: 10px; }
#ders-detay-modal dd { margin: 2px 0 0 0; color: var(--rs-ink); }

#ders-detay-modal .kutu a {
    display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1rem;
    border-radius: .475rem; background: var(--rs-ink); color: #fff; text-decoration: none; font-weight: 600;
}

#ders-detay-modal .kutu button {
    border: 0; padding: .65rem 1rem; border-radius: .475rem; background: #eef0f4; font-weight: 600;
}

/* ============================================================
   8. Duyarli davranis
   ============================================================ */
@media (max-width: 1199.98px) {
    .rs-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .rs-gallery-item--wide { grid-column: span 2; }
}

@media (max-width: 991.98px) {
    .rs-hero { min-height: 520px; }
    .rs-brand--hero .rs-mark { width: 74px; height: 74px; }
    .rs-brand--hero .rs-brand-name { font-size: 1.55rem; }
    .dataTables_wrapper .dataTables_filter { text-align: left; margin-top: .75rem; }
    .dataTables_wrapper .dataTables_filter input { min-width: 0; width: 100%; }
}

@media (max-width: 767.98px) {
    .rs-table thead th, .rs-table tbody td { padding: .75rem; }
    .card-header { min-height: auto; padding-top: 1rem; padding-bottom: 1rem; }
    .fc .fc-toolbar { align-items: flex-start; gap: .75rem; }
    .fc .fc-toolbar-chunk { display: flex; flex-wrap: wrap; gap: .35rem; }
    .rs-gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .rs-gallery-item--tall, .rs-gallery-item--wide { grid-row: span 1; grid-column: span 1; }
    .rs-stat { padding: 1.4rem .5rem; }
    .rs-stat-value { font-size: 1.9rem; }
}
