/* Genel Ayarlar ve SÄ±fÄ±rlama */
:root {
    /* Renk Paleti */
    --renk-mavi-koyu: #003366;
    --renk-mavi-acik: #0056b3;
    --renk-yesil: #28a745;
    --renk-yesil-koyu: #218838;
    --renk-kirmizi: #dc3545;
    --renk-sari: #ffc107;
    --renk-gri-zemin: #f4f6f9;
    --renk-gri-yazi: #555555;
    --renk-beyaz: #ffffff;
    --font-ana: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ana);
    color: #333;
    background-color: var(--renk-gri-zemin);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ---------------------------------------------------------
   LAYOUT (SÄ°DEBAR & ANA Ä°Ã‡ERÄ°K)
   --------------------------------------------------------- */
.dashboard-govde {
    display: flex;
    min-height: 100vh;
}

.yan-menu {
    width: 260px;
    background-color: var(--renk-mavi-koyu);
    color: #fff;
    position: fixed;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-kidoor {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
    font-size: 14px;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.aktif {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left: 4px solid var(--renk-sari);
}

.sidebar-nav ul li a i {
    width: 25px;
    margin-right: 10px;
}

.kurum-bilgi {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    margin: 10px;
    border-radius: 8px;
}

.kurum-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.kurum-detay {
    display: flex;
    flex-direction: column;
}

.kurum-detay strong {
    font-size: 13px;
}

.kurum-detay span {
    font-size: 11px;
    opacity: 0.7;
}

.ana-icerik {
    margin-left: 260px;
    flex: 1;
    padding: 30px;
    width: calc(100% - 260px);
}

/* ---------------------------------------------------------
   COMPONENTLER (HEADER, KARTLAR, PANEL)
   --------------------------------------------------------- */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.panel-header h2 {
    font-size: 24px;
    color: var(--renk-mavi-koyu);
}

.panel-bolum {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.bolum-baslik-satir {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.bolum-baslik-satir h3 {
    font-size: 18px;
    color: #444;
}

/* Ã–zet Kartlar */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.summary-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid transparent;
}

.summary-card h4 {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.summary-card .value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-top: 10px;
}

.summary-card.total {
    border-color: #2196F3;
}

.summary-card.paid {
    border-color: #4CAF50;
}

.summary-card.pending {
    border-color: #FFC107;
}

.summary-card.overdue {
    border-color: #F44336;
}

/* ---------------------------------------------------------
   TABLOLAR
   --------------------------------------------------------- */
.tablo-kapsayici {
    overflow-x: auto;
}

.veri-tablosu {
    width: 100%;
    border-collapse: collapse;
}

.veri-tablosu th,
.veri-tablosu td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.veri-tablosu th {
    font-weight: 600;
    color: #555;
    background-color: #f8f9fa;
}

.durum-etiket {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.durum-etiket.bekliyor {
    background-color: #fff3cd;
    color: #856404;
}

.durum-etiket.tamam {
    background-color: #d4edda;
    color: #155724;
}

.durum-etiket.ret {
    background-color: #f8d7da;
    color: #721c24;
}

.durum-etiket.active {
    background-color: #d4edda;
    color: #155724;
}

.durum-etiket.passive {
    background-color: #e2e3e5;
    color: #383d41;
}

.durum-mavi {
    background-color: #e7f3ff;
    color: #0056b3;
    border: 1px solid #b8daff;
}

.durum-yesil {
    background-color: #e6fced;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}

.durum-kirmizi {
    background-color: #fdeaea;
    color: #dc3545;
    border: 1px solid #f5c6cb;
}

/* ---------------------------------------------------------
   FORMLAR VE BUTONLAR
   --------------------------------------------------------- */
.form-kontrol {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.form-kontrol:focus {
    border-color: var(--renk-mavi-acik);
}

.form-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.form-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.btn-ekle,
.btn-kaydet {
    background-color: var(--renk-mavi-koyu);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ekle:hover,
.btn-kaydet:hover {
    background-color: #002244;
}

.btn-iptal {
    background-color: #6c757d;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-right: 10px;
}

.btn-duzenle,
.btn-duzenle-sm {
    background-color: #ffc107;
    color: #333;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.btn-sil {
    background-color: transparent;
    color: var(--renk-kirmizi);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-goruntule {
    background-color: #17a2b8;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 5px;
}

.filter-bar {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

/* ---------------------------------------------------------
   OKUL KARTLARI (GRID)
   --------------------------------------------------------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.school-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    position: relative;
    border: 1px solid #eee;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.school-card:hover {
    transform: translateY(-5px);
}

.card-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.card-status.active {
    background: #e6fced;
    color: #1e7e34;
}

.card-status.passive {
    background: #e2e3e5;
    color: #383d41;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.school-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.school-logo.purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.school-info h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.school-info span {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 3px;
}

.card-body {
    margin-bottom: 20px;
    flex: 1;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.info-row .label {
    color: #888;
}

.info-row .value {
    font-weight: 500;
    color: #444;
}

.card-footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.btn-icon:hover {
    background: #f8f9fa;
    color: var(--renk-mavi-koyu);
}

.btn-outline {
    flex: 1;
    border: 1px solid var(--renk-mavi-koyu);
    color: var(--renk-mavi-koyu);
    background: transparent;
    padding: 6px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--renk-mavi-koyu);
    color: #fff;
}

.btn-icon-sm {
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    margin: 0 5px;
}

.btn-icon-sm:hover {
    color: var(--renk-mavi-koyu);
}

/* ---------------------------------------------------------
   MEB TAKVÄ°MÄ°
   --------------------------------------------------------- */
.takvim-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.takvim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.duyuru-kart {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
}

.duyuru-ikon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.duyuru-ikon.meb {
    background: #2196F3;
}

.duyuru-ikon.tatil {
    background: #ff9800;
}

.duyuru-icerik h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
}

.duyuru-icerik p {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #666;
}

.tarih-etiket {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

/* ---------------------------------------------------------
   PREMIUM MODAL STYLES (HatÄ±rlatÄ±cÄ± Stili)
   --------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-icerik {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalAcil 0.3s ease-out;
}

@keyframes modalAcil {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-baslik h2 {
    color: var(--renk-mavi-koyu);
    margin: 0;
    font-size: 20px;
}

.kapat-btn {
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}

.kapat-btn:hover {
    color: var(--renk-mavi-koyu);
}

/* Form SatÄ±r DÃ¼zeni (Modal iÃ§i) */
.form-satir {
    margin-bottom: 15px;
}

.form-satir label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 13px;
    color: #555;
}

/* ---------------------------------------------------------
   DASHBOARD İSTATİSTİK KARTLARI (Regresyon Düzeltmesi)
   --------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    background-color: #eee;
}

.stat-icon.mavi-bg {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
}

.stat-icon.yesil-bg {
    background: linear-gradient(135deg, #43a047, #66bb6a);
}

.stat-icon.sari-bg {
    background: linear-gradient(135deg, #fdd835, #ffee58);
    color: #333;
}

.stat-icon.mor-bg {
    background: linear-gradient(135deg, #8e24aa, #ab47bc);
}

.stat-info {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.stat-desc {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

/* ---------------------------------------------------------
   LOGIN SAYFASI STİLLERİ (Regresyon Düzeltmesi)
   --------------------------------------------------------- */
.login-bg {
    background: linear-gradient(135deg, #003366 0%, #0056b3 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--renk-mavi-koyu);
    text-decoration: none;
}

.login-header p {
    color: #666;
    margin-top: 5px;
    font-size: 14px;
}

.form-grup {
    margin-bottom: 20px;
}

.form-grup label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.form-input.with-icon {
    padding-left: 45px;
}

.btn-toggle-pass {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
}

.form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--renk-mavi-koyu);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-login:hover {
    background: #002244;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.login-footer a {
    color: var(--renk-mavi-acik);
    font-weight: 600;
}

.back-home {
    display: block;
    margin-top: 15px;
    color: #888;
    font-size: 13px;
}

/* ---------------------------------------------------------
   EVRAK YÖNETİMİ VE FORM LAYOUT (Regresyon Düzeltmesi)
   --------------------------------------------------------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

/* ---------------------------------------------------------
   MEB TAKVİMİ KUTULARI (Regresyon Düzeltmesi)
   --------------------------------------------------------- */
/* Takvim stilleri zaten style.css içinde 'duyuru-kart' olarak var ama grid düzeni eksik olabilir */
.takvim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}


/* ---------------------------------------------------------
   MEB TAKVİMİ GRID STİLLERİ (Eksik Olanlar)
   --------------------------------------------------------- */
.takvim-govde {
    margin-top: 20px;
}

.gun-basliklari {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
    color: #666;
}

.gunler {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.gun {
    height: 80px;
    border: 1px solid #eee;
    padding: 5px;
    position: relative;
    background: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.gun:hover {
    background: #f9f9f9;
}

.gun.bos {
    background: transparent;
    border: none;
}

.gun-sayi {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.takvim-etiket {
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 3px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.takvim-etiket.bilgi {
    background-color: #17a2b8;
}

.takvim-etiket.baslangic {
    background-color: #28a745;
}

.takvim-etiket.tatil {
    background-color: #ffc107;
    color: #333;
}

.takvim-etiket.anma {
    background-color: #343a40;
}

.takvim-sidebar {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.etkinlik-listesi {
    margin-top: 15px;
}

.etkinlik-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.etkinlik-tarih {
    font-weight: 700;
    color: var(--renk-mavi-acik);
    min-width: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    padding: 5px;
    border-radius: 6px;
    border: 1px solid #ddd;
    height: fit-content;
}

.etkinlik-detay {
    flex: 1;
}

.etkinlik-detay strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.etiket {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e9ecef;
    display: inline-block;
}


/* ---------------------------------------------------------
   MODERN & PREMIUM UI STYLES (Açılır Paneller ve Formlar)
   --------------------------------------------------------- */

/* Animasyonlar */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modern Açılır Panel (Yeni Ekleme Alanları İçin) */
.modern-collapse-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Yumuşak gölge */
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
    animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Premium ease */
    display: none;
    /* JS ile açılacak */
    position: relative;
    overflow: hidden;
}

/* Panel Başlığı */
.modern-collapse-panel h4 {
    color: var(--renk-mavi-koyu);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f4f8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modern-collapse-panel h4 i {
    color: var(--renk-mavi-acik);
    background: rgba(33, 150, 243, 0.1);
    padding: 8px;
    border-radius: 8px;
}

/* Modern Input Alanları */
.form-kontrol,
.form-input,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    /* Daha yuvarlak */
    font-size: 14px;
    color: #333;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
}

.form-kontrol:focus,
.form-input:focus,
.form-select:focus {
    border-color: var(--renk-mavi-acik);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
    /* Focus ring */
    outline: none;
}

.form-kontrol::placeholder {
    color: #adb5bd;
}

/* Modern Butonlar */
.btn-kaydet {
    background: linear-gradient(135deg, var(--renk-mavi-koyu) 0%, var(--renk-mavi-acik) 100%);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn-kaydet:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.btn-iptal {
    background: #f1f3f5;
    color: #495057;
    padding: 12px 25px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 10px;
}

.btn-iptal:hover {
    background: #e9ecef;
    color: #212529;
}

/* Premium Modal (Hatırlatıcı Modalı Tarzı) */
.modal-premium {
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.4);
    /* Yarı saydam koyu arka plan */
}

.modal-premium .modal-icerik {
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideDown 0.3s ease-out;
    padding: 30px;
}

.modal-premium .modal-baslik {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.modal-premium h2 {
    font-size: 20px;
    color: #1a1a1a;
}


/* Form Grup Aralığı */
.form-grup {
    margin-bottom: 15px;
}

.form-grup label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: #444;
}


/* ---------------------------------------------------------
   OKUL LİSTESİ FİLTRE ALANI (Özelleştirilmiş)
   --------------------------------------------------------- */
.filter-section {
    background-color: #f1f8e9;
    /* Hafif yeşilimsi/gri bir ton veya #e3f2fd (mavi) */
    background: linear-gradient(to right, #ffffff, #f0f4f8);
    border-left: 4px solid var(--renk-mavi-koyu);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    flex-wrap: wrap;
    /* Mobil uyum için */
}

/* Arama Alanı */
.search-wrapper {
    flex: 2;
    /* Daha geniş alan */
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrapper i {
    position: absolute;
    left: 15px;
    color: #999;
}

.search-input-lg {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 50px;
    /* Yuvarlak arama çubuğu */
    font-size: 14px;
    transition: all 0.3s;
}

.search-input-lg:focus {
    border-color: var(--renk-mavi-acik);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    outline: none;
}

/* Filtre Kontrolleri */
.filter-controls {
    flex: 3;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    min-width: 150px;
}

.filter-select:hover {
    border-color: #bbb;
}

/* Mobilde alt alta */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }
}


/* Arama ve Filtre Arasına Çizgi (Ara Bölme) */
.search-wrapper::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background-color: #e0e0e0;
    margin-left: 20px;
    margin-right: -10px;
    /* Gap'i dengelemek için */
}

/* Mobilde çizgiyi kaldır */
@media (max-width: 768px) {
    .search-wrapper::after {
        display: none;
    }
}


/* ---------------------------------------------------------
   EŞİT GENİŞLİKLİ FİLTRE IZGARASI (GRID)
   --------------------------------------------------------- */
.filter-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* 3 Eşit Kolon */
    gap: 20px;
    background-color: #f1f8e9;
    /* Arka plan */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid var(--renk-mavi-koyu);
    align-items: center;
}

.search-wrapper-flat {
    position: relative;
    width: 100%;
}

.search-wrapper-flat i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-input-flat,
.filter-select-flat {
    width: 100%;
    padding: 12px 15px 12px 40px;
    /* İkon payı */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    height: 45px;
    /* Eşit yükseklik */
}

.filter-select-flat {
    padding-left: 15px;
    /* Select için ikon yok */
    cursor: pointer;
}

@media (max-width: 768px) {
    .filter-section-grid {
        grid-template-columns: 1fr;
        /* Mobilde alt alta */
    }
}

/* ---------------------------------------------------------
   RENKLİ KUTUCUKLU BAŞLIKLAR (Section Headers)
   --------------------------------------------------------- */
.section-header-box {
    background-color: #e3f2fd;
    /* Açık mavi arka plan */
    color: #0d47a1;
    /* Koyu mavi yazı */
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-left: 5px solid #1565c0;
    /* Sol şerit */
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header-box i {
    font-size: 1.2rem;
    opacity: 0.8;
}


/* PREMIUM BUTTON STYLES (Added centrally) */
.btn-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 6px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    margin: 0 2px;
}

.btn-icon i {
    color: #ffffff !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
}

.btn-icon.view-btn {
    background-color: #3b82f6 !important;
    /* Blue */
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.btn-icon.view-btn:hover {
    background-color: #2563eb !important;
    transform: translateY(-1px);
}

.btn-icon.edit-btn {
    background-color: #f59e0b !important;
    /* Amber/Orange */
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.btn-icon.edit-btn:hover {
    background-color: #d97706 !important;
    transform: translateY(-1px);
}

.btn-icon.delete {
    background-color: #ef4444 !important;
    /* Red */
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.btn-icon.delete:hover {
    background-color: #dc2626 !important;
    transform: translateY(-1px);
}

/* SIDEBAR STATS (New Global Feature) */
.sidebar-stats {
    padding: 15px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.stats-header {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.sidebar-stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.sidebar-stat-card.finance {
    border-left: 3px solid #ffeb3b;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.stat-sub {
    font-size: 11px;
    margin-top: 5px;
    opacity: 0.7;
}

.sidebar-stat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item .label {
    opacity: 0.8;
}

.stat-item .value {
    font-weight: 600;
}

.text-warning {
    color: #ffeb3b !important;
}

.text-danger {
    color: #ff5252 !important;
}

.text-success {
    color: #69f0ae !important;
}


/* FIX: Make sidebar icons and text fully opaque/bright */
.sidebar-nav ul li a {
    color: #ffffff !important;
    opacity: 1 !important;
}

.sidebar-nav ul li a i {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for better pop */
}

.sidebar-nav ul li a:hover i,
.sidebar-nav ul li a.aktif i {
    transform: scale(1.1);
    /* Slight zoom on active/hover */
    transition: transform 0.2s;
}


/* Custom Button Styles */
.btn-indir {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #28a745;
    /* Yeşil */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-indir:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn-evrak-durum {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: default;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-evrak-durum.tamam {
    background-color: #28a745;
    /* Yeşil */
}

.btn-evrak-durum.eksik {
    background-color: #dc3545;
    /* Kırmızı */
}

.btn-evrak-durum:hover {
    opacity: 0.9;
}


/* View Button Style */
.btn-goruntule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #dc3545;
    /* Red */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-goruntule:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}


/* Revert View Button to Blue */
.btn-goruntule {
    background-color: #007bff !important;
    /* Mavi */
}

.btn-goruntule:hover {
    background-color: #0056b3 !important;
}


/* Split Layout for System & References */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.system-column .features-list-vertical {
    display: grid;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.feature-icon-sm {
    width: 40px;
    height: 40px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

/* References Grid */
.references-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-height: 800px;
    overflow-y: auto;
    padding-right: 10px;
    /* Space for scrollbar */
}

/* Custom Scrollbar for References */
.references-grid::-webkit-scrollbar {
    width: 6px;
}

.references-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.references-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.references-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.ref-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    display: flex;
    align-items: center;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.ref-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--primary);
}

/* Responsive Split Layout */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .references-grid {
        grid-template-columns: repeat(2, 1fr);
        max-height: 500px;
    }
}

@media (max-width: 576px) {
    .references-grid {
        grid-template-columns: 1fr;
    }
}


/* Dashboard Button Styles */
.btn-detay {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-detay:hover {
    background-color: #0b5ed7;
}

.btn-duzenle {
    background-color: #ffc107;
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-duzenle:hover {
    background-color: #ffca2c;
}

.btn-indir {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-indir:hover {
    background-color: #218838;
}

.btn-iptal {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-iptal:hover {
    background-color: #5a6268;
}

/* Upload Area Styles */
.upload-container {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-container:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.upload-area i {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 15px;
}

.upload-area p {
    font-size: 16px;
    color: #495057;
    margin-bottom: 5px;
}

.browse-btn {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: underline;
}

/* Multi-Select Styles */
.multi-select-container {
    position: relative;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
}

.search-box {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.select-options {
    max-height: 200px;
    overflow-y: auto;
    padding: 5px 0;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    color: #333;
}

.option-item:hover {
    background-color: #f8f9fa;
}

.option-item input[type='checkbox'] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.divider {
    height: 1px;
    background-color: #eee;
    margin: 5px 0;
}

/* ---------------------------------------------------------
   MOBİL UYUMLULUK (RESPONSIVE)
   --------------------------------------------------------- */
@media (max-width: 992px) {
    .ana-icerik {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px !important;
    }

    .yan-menu {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: 10px 0 25px rgba(0, 0, 0, 0.1);
    }

    body.sidebar-open .yan-menu {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(2px);
        z-index: 999;
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
    }

    /* Mobil Üst Bar */
    .mobile-bar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        background: var(--renk-mavi-koyu);
        color: white;
        padding: 12px 20px;
        position: sticky;
        top: 0;
        z-index: 998;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .menu-toggle {
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-logo {
        font-weight: 700;
        font-size: 1.2rem;
        letter-spacing: -0.5px;
    }

    /* Modal Mobil Ayarları Global */
    .modal-premium .modal-icerik,
    .modal-icerik {
        width: 95% !important;
        margin: 10px auto;
        padding: 20px;
    }

    /* Grid ve Form Yapıları İçin Global Eziciler */
    div[style*="display: grid"], 
    div[style*="display:grid"],
    .form-grid, 
    .yetki-grid, 
    .cards-grid {
        grid-template-columns: 1fr !important;
    }

    /* Sütun yayılmasını iptal et (span 2 -> span 1) */
    div[style*="grid-column"], 
    .form-grup {
        grid-column: auto !important;
    }

    /* Filtre ve Arama Alanları */
    .filter-bar, .filter-section {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .filter-section .search-wrapper {
        flex: 100% !important;
        min-width: 100% !important;
    }

    .filter-section input, .filter-section select,
    .search-wrapper, .search-input-lg {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .islemler-hucre {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    /* İstatistik Kartları */
    .summary-cards, .stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Başlıklar Mobil */
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .panel-header h2 {
        font-size: 20px;
    }

    /* Tablo Kaydırma İpucu */
    .tablo-kapsayici::after {
        content: '← Kaydır →';
        display: block;
        text-align: center;
        font-size: 11px;
        color: #999;
        margin-top: 10px;
    }
}

/* Masaüstünde gizle */
.mobile-bar {
    display: none;
}

/* ---------------------------------------------------------
   DASHBOARD İKON RENKLENDİRME (Yeni)
   --------------------------------------------------------- */
.dosya-isim {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dosya-isim i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.i-blue {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #448aff !important;
}

.i-green {
    background-color: rgba(40, 167, 69, 0.1) !important;
    color: #28a745 !important;
}

.i-orange {
    background-color: rgba(255, 152, 0, 0.1) !important;
    color: #ff9800 !important;
}

.dosya-isim:hover i {
    transform: scale(1.1);
}

/* ---------------------------------------------------------
   DASHBOARD BADGE RENKLENDİRME (Durum Bilgisi)
   --------------------------------------------------------- */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.badge.tamam {
    background-color: #e6fced !important;
    color: #1e7e34 !important;
    border: 1px solid #c3e6cb;
}

.badge.bekliyor {
    background-color: #e7f3ff !important;
    color: #0056b3 !important;
    border: 1px solid #b8daff;
}

.badge.uyari {
    background-color: #fdeaea !important;
    color: #dc3545 !important;
    border: 1px solid #f5c6cb;
}

.badge.islemde {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border: 1px solid #dee2e6;
}