*, *::before, *::after {
    box-sizing: border-box;
}

/* Başlangıç */
:root {
    --tema-rengi: #dc3545; /* Ana tema rengi kırmızı olarak ayarlandı */
    --tema-rengi-koyu: #c82333; /* Koyu kırmızı tonu */
    --meb-acik-gri: #f8f9fa;
    --meb-koyu-gri: #6c757d;
    --metin-rengi: #343a40;
    --yesil-renk: #28a745; /* Onay butonu için yeşil renk */
    --yesil-renk-acik: #d4edda;
    --mavi-renk: #007bff;
    --sari-renk: #ffc107; /* Sarı renk eklendi */
    --mor-renk: #6f42c1; /* Yeni renk */
    --pembe-renk: #e83e8c; /* Yeni renk */
    --golge: 0 4px 12px rgba(0, 0, 0, 0.1);
    --kenar-yuvarlakligi: 10px;
    --acik-kirmizi-arka-plan: #f8d7da;
    --kirmizi: #dc3545; /* Bu değişken uyumluluk için kalabilir */
    --header-yuksekligi: 70px;
    --sidebar-genisligi: 240px; /* YENİ: Sidebar genişliği */
}

@keyframes uyari-yanip-sonme {
    0%, 100% {
        background-color: var(--acik-kirmizi-arka-plan);
        color: #721c24;
        border-color: #f5c6cb;
    }
    50% {
        background-color: #ffffff;
        color: var(--tema-rengi);
        border-color: var(--tema-rengi);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: var(--meb-acik-gri);
    color: var(--metin-rengi);
    -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
    
    /* Pull-to-refresh daha az hassas - sadece çok çekince yenilensin */
    overscroll-behavior-y: contain; /* Hafif bounce efekti var ama kontrollü */
}

html {
    scroll-behavior: smooth;
    overscroll-behavior-y: contain; /* Hafif bounce efekti */
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-yuksekligi);
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 1rem;
    z-index: 1000;
    transition: transform 0.3s ease, height 0.3s ease;
}

.app-header-sol {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.app-header-sol img {
    max-height: 50px;
    width: auto;
}

.app-header-sol .okul-adi {
    font-size: 1rem;
    color: var(--metin-rengi);
    font-weight: 600;
}

.app-header-sag {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#karsilama-mesaji-kutusu {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--metin-rengi);
    background-color: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: var(--kenar-yuvarlakligi);
    display: none;
}

.menu-container {
    position: relative;
}

.menu-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 1rem 1.3rem;
    border-radius: 14px;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    margin: 0;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    position: relative;
    overflow: hidden;
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.menu-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
}

.menu-btn:hover::before {
    width: 300px;
    height: 300px;
}

.menu-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Hamburger icon animasyonu */
.menu-btn.active {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: rotate(90deg);
}

.menu-dropdown {
    display: block;
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
    min-width: 320px;
    max-width: 400px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 12px 45px rgba(220, 53, 69, 0.2), 0 0 0 1px rgba(220, 53, 69, 0.1);
    z-index: 1001;
    border-radius: 18px;
    border: 2px solid rgba(220, 53, 69, 0.15);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

/* Scroll bar styling - kırmızı tema */
.menu-dropdown::-webkit-scrollbar {
    width: 10px;
}

.menu-dropdown::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
    margin: 8px 0;
}

.menu-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #dc3545 0%, #c82333 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.menu-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c82333 0%, #bd2130 100%);
    background-clip: padding-box;
}

.menu-dropdown.show-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: menuSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes menuSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    50% {
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.menu-dropdown a {
    color: #2d3748;
    padding: 16px 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.05rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    margin: 5px 10px;
}

.menu-dropdown a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 70%;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-radius: 0 5px 5px 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-dropdown a:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.12) 0%, rgba(200, 35, 51, 0.12) 100%);
    transform: translateX(8px);
    padding-left: 28px;
}

.menu-dropdown a:hover::before {
    width: 5px;
}

.menu-dropdown a:active {
    transform: translateX(5px) scale(0.98);
}

/* İkonlar için stil - kırmızı tema */
.menu-dropdown a i {
    font-size: 1.2rem;
    color: #dc3545;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-dropdown a:hover i {
    transform: scale(1.25) rotate(8deg);
    color: #c82333;
}

.menu-dropdown .menu-ayrac {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(220, 53, 69, 0.3) 50%, transparent 100%);
    margin: 14px 18px;
}

/* style.css - YENİ VE KESİN ÇÖZÜM */
.admin-layout-container {
    display: flex;
    height: calc(100vh - var(--header-yuksekligi));
    padding-top: var(--header-yuksekligi);
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.sidebar {
    width: var(--sidebar-genisligi);
    background-color: #ffffff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
    padding: 1.5rem 0;
    position: fixed;
    top: var(--header-yuksekligi);
    left: -100%; /* Başlangıçta gizli */
    height: calc(100% - var(--header-yuksekligi));
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    transition: left 0.3s ease;
    display: none; /* Başlangıçta hiç render edilmesin */
}

/* Login sayfası aktifken sidebar KESİNLİKLE GİZLİ */
#login-sayfasi.aktif ~ .admin-layout-container .sidebar,
body:has(#login-sayfasi.aktif) .sidebar {
    display: none !important;
    left: -100% !important;
}

/* Sidebar'ı göstermek için yeni kural */
.sidebar.goster {
    left: 0;
    display: block; /* Gösterildiğinde render et */
}


.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: var(--metin-rengi);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 4px solid transparent;
    transition: background-color: 0.2s ease, color: 0.2s ease, border-left-color: 0.2s ease;
}

.sidebar-nav-list a.aktif,
.sidebar-nav-list a:hover {
    background-color: #f8f9fa;
    color: var(--tema-rengi);
    border-left-color: var(--tema-rengi);
}

.sidebar-nav-list a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Submenu Stilleri */
.menu-item-with-submenu {
    position: relative;
}

.menu-item-with-submenu > a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: var(--metin-rengi);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 4px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-left-color 0.2s ease;
    cursor: pointer;
}

.menu-item-with-submenu > a:hover {
    background-color: #f8f9fa;
    color: var(--tema-rengi);
    border-left-color: var(--tema-rengi);
}

.submenu-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.menu-item-with-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background-color: #f8f9fa;
    transition: max-height 0.3s ease;
}

.menu-item-with-submenu.open .submenu {
    max-height: 500px;
}

.submenu li {
    border-left: 4px solid transparent;
}

.submenu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px 12px 40px !important;
    color: var(--meb-koyu-gri);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    border-left: 4px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-left-color 0.2s ease;
}

.submenu a:hover {
    background-color: #e9ecef;
    color: var(--tema-rengi);
    border-left-color: var(--tema-rengi);
}

.submenu a.aktif {
    background-color: #e9ecef;
    color: var(--tema-rengi);
    border-left-color: var(--tema-rengi);
    font-weight: 500;
}

.submenu a i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-nav-list .menu-ayrac {
    height: 1px;
    background-color: #e9ecef;
    margin: 1rem;
}

/* Sidebar badge stilleri */
.sidebar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    box-shadow: 0 2px 6px rgba(255, 65, 108, 0.4);
    animation: pulse-badge 2s infinite;
}


.sayfa-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    isolation: isolate;
    transition: margin-left 0.3s ease, width 0.3s ease;
    padding: 1.5rem;
    margin-left: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    height: 100%;
}

/* YENİ KURAL (Bununla Değiştirin) */
body.sidebar-aktif .sayfa-wrapper {
     margin-left: var(--sidebar-genisligi) !important;
     width: calc(100% - var(--sidebar-genisligi)) !important;
}

.sayfa {
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: var(--kenar-yuvarlakligi);
    box-shadow: var(--golge);
    border-top: 5px solid var(--tema-rengi);
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
}

/* Yönetici paneli ve sağlık sayfası gibi geniş içerik alanları için */
#admin-sayfasi.sayfa,
#saglik-view.sayfa {
    max-width: 1100px;
}

/* YENİ EKLENEN KURAL */
#saglik-view {
    max-width: 1100px;
}

.sayfa {
    display: none;
}

.sayfa.aktif {
    display: block !important;
}


h1, h2 {
    color: var(--tema-rengi);
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}
h2 { font-size: 1.5rem; }
h3 {
    color: var(--tema-rengi);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    justify-content: start;
}

.kisayol-kart {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: var(--kenar-yuvarlakligi);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 5px solid var(--tema-rengi);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kisayol-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.kisayol-kart h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--tema-rengi);
    font-size: 1.2rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kisayol-kart h3 i {
    font-size: 1.6rem;
    color: var(--tema-rengi);
    opacity: 0.9;
    width: 35px;
    text-align: center;
}

.kisayol-kart p {
    font-size: 0.9rem;
    color: var(--meb-koyu-gri);
    margin: 0;
    line-height: 1.4;
}

.duyuru-panosu {
    margin-top: 3rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 2rem;
    border-radius: var(--kenar-yuvarlakligi);
}

.duyuru-panosu h2 {
    text-align: left;
    margin-top: 0;
    color: var(--metin-rengi);
    border-bottom: 2px solid var(--tema-rengi);
    padding-bottom: 0.8rem;
}

#guncel-duyuru-icerik {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    min-height: 100px;
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 1.1rem;
    position: relative;
}

#guncel-duyuru-icerik p.meta {
    font-size: 0.85rem;
    color: var(--meb-koyu-gri);
    margin-top: 1rem;
    border-top: 1px dashed #dee2e6;
    padding-top: 0.8rem;
}

#duyuru-sil-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

#duyuru-ekleme-formu {
    margin-top: 2rem;
}

#panel-ikon-ayarlari-listesi .form-grup {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}
#panel-ikon-ayarlari-listesi .form-grup:last-child {
    border-bottom: none;
}
#panel-ikon-ayarlari-listesi label {
    flex-basis: 250px;
    margin-bottom: 0;
}
#panel-ikon-ayarlari-listesi input {
    flex-grow: 1;
}
.ikon-onizleme {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
    color: var(--tema-rengi);
}

.form-grup {
    margin-bottom: 1.5rem;
}

.form-grup textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ced4da;
    border-radius: var(--kenar-yuvarlakligi);
    font-size: 1rem;
    transition: border-color: 0.2s, box-shadow 0.2s;
    min-height: 100px;
    font-family: inherit;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"], input[type="password"], input[type="tel"], input[type="date"], input[type="number"], input[type="time"], input[type="month"], select, textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ced4da;
    border-radius: var(--kenar-yuvarlakligi);
    font-size: 1rem;
    transition: border-color: 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--tema-rengi);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--kenar-yuvarlakligi);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color: 0.2s, transform 0.1s, opacity 0.2s;
    margin-top: 1rem;
}

.btn:active { transform: scale(0.98); }
.btn-birincil { background-color: var(--tema-rengi); }
.btn-basari { background-color: var(--yesil-renk); }
.btn-ikincil { background-color: var(--meb-koyu-gri); }
.btn-kirmizi { background-color: var(--tema-rengi-koyu); }
.btn-yesil { background-color: var(--yesil-renk); }
.btn-mavi { background-color: var(--mavi-renk); }
.btn-sari { background-color: var(--sari-renk); color: #212529;}
#anons-sayfasina-git-admin { background-color: #28a745; }

.btn:disabled { background-color: #adb5bd; cursor: not-allowed; }

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    width: auto;
    margin: 0 0.2rem;
    margin-top: 0;
}


.mesaj {
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.75rem;
    border-radius: var(--kenar-yuvarlakligi);
    display: none;
    font-weight: 500;
}
.mesaj-hata { color: #721c24; background-color: #f8d7da; }
.mesaj-basari { color: #155724; background-color: #d4edda; }

/* style.css - Düzeltilmiş Hali */
.modal {
    display: none;
    position: fixed;
    z-index: 1080; /* <--- YENİ DEĞER */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-icerik {
    background-color: #fefefe;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: var(--kenar-yuvarlakligi);
    position: relative;
    border-top: 5px solid var(--tema-rengi);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    padding: 2.5rem;
}

.kapat-btn {
    color: #aaa; position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer;
}

.admin-sekmeler { display: none; }
.admin-view {
    display: none;
    position: relative;
    z-index: 0;
    isolation: isolate;
}
.admin-view.aktif { display: block; }

.tablo-konteyner {
    max-height: 50vh; 
    overflow-y: auto; 
    overflow-x: auto;
    border: 1px solid #dee2e6; 
    border-radius: var(--kenar-yuvarlakligi);
    -webkit-overflow-scrolling: touch;
}
#ogrenci-tablosu, #ogretmen-tablosu, #yonetici-tablosu, #servis-tablosu, .menu-form-tablosu {
    width: 100%; 
    min-width: 600px; /* Mobilde yatay scroll için minimum genişlik */
    border-collapse: collapse; 
    text-align: left;
}
#ogrenci-tablosu th, #ogrenci-tablosu td, #ogretmen-tablosu th, #ogretmen-tablosu td, #yonetici-tablosu th, #yonetici-tablosu td, #servis-tablosu th, #servis-tablosu td, .menu-form-tablosu th, .menu-form-tablosu td {
    padding: 1rem; border-bottom: 1px solid #dee2e6;
}
#ogrenci-tablosu thead th, #ogretmen-tablosu thead th, #yonetici-tablosu thead th, #servis-tablosu thead th, .menu-form-tablosu thead th {
    background-color: var(--meb-acik-gri);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

#ogrenci-tablosu tbody tr.satir-odendi { background-color: var(--yesil-renk-acik); }
#ogrenci-tablosu tbody tr.satir-gecikti { background-color: var(--acik-kirmizi-arka-plan); }
.odeme-durum {
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
}
.odeme-yapilmis { background-color: var(--yesil-renk); }
.odeme-gecikti { background-color: var(--tema-rengi); }

.eylemler-hucresi { text-align: right; white-space: nowrap; }

.eylem-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-icerik {
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: var(--golge);
    z-index: 10;
    border-radius: var(--kenar-yuvarlakligi);
    padding: 0.5rem 0;
    border: 1px solid #f0f0f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0.15s;
}

.dropdown-icerik.aktif {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-icerik a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}
.dropdown-icerik a:hover {
    background-color: #f1f1f1;
}

#confirm-mesaji, #kayit-confirm-mesaji, #odeme-onay-mesaji, #whatsapp-onay-mesaji, #donem-sifirla-mesaji, #anons-onay-mesaji, #ogretmen-kayit-confirm-mesaji {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}
#confirm-mesaji b, #kayit-confirm-mesaji b, #odeme-onay-mesaji b, #whatsapp-onay-mesaji b, #donem-sifirla-mesaji b, #anons-onay-mesaji b, #ogretmen-kayit-confirm-mesaji b {
    color: var(--tema-rengi);
}
#whatsapp-onay-mesaji, #toplu-kayit-liste {
    background-color: #f1f1f1;
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
    white-space: pre-wrap;
}

#toplu-kayit-liste, #toplu-menu-liste {
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
    background-color: #f1f1f1;
    padding: 1rem;
    border-radius: 8px;
    text-align: left;
}


.modal-buton-grup {
    display: flex;
    gap: 1rem;
}
.modal-buton-grup .btn { margin-top: 0; }

#popup-backdrop {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1070;
}
#anons-uyari {
    visibility: hidden; opacity: 0; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); background-color: white; color: var(--metin-rengi); padding: 2rem; border-radius: var(--kenar-yuvarlakligi); z-index: 1071; transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s; max-width: 90%; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.3); font-size: 1.2rem; line-height: 1.6;
}
#anons-uyari.show {
    visibility: visible; opacity: 1; transform: translate(-50%, -50%) scale(1);
}

#anons-uyari.uyari-kirmizi {
    background-color: var(--acik-kirmizi-arka-plan);
    color: #721c24;
    border-top: 5px solid var(--tema-rengi-koyu);
    border-bottom: 5px solid var(--tema-rengi-koyu);
    font-size: 1.6rem;
    font-weight: bold;
}

#teacher-anons-alert {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

#teacher-anons-alert-content {
    background-color: var(--acik-kirmizi-arka-plan);
    color: #721c24;
    padding: 3rem;
    border-radius: var(--kenar-yuvarlakligi);
    text-align: center;
    max-width: 80%;
    width: 700px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-top: 10px solid var(--tema-rengi-koyu);
    border-bottom: 10px solid var(--tema-rengi-koyu);
    animation: uyari-yanip-sonme 1.5s infinite;
}

#teacher-anons-alert-text {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.4;
}

#teacher-anons-alert-close-btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    width: auto;
    margin-top: 1rem;
}

#ay-listesi,
#katki-payi-ay-listesi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}
.ay-item {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}
.ay-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.ay-odendi { background-color: var(--yesil-renk); }
.ay-odenmedi { background-color: var(--tema-rengi); }

#veli-odeme-durumu {
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
    padding: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 4rem;
    border-radius: var(--kenar-yuvarlakligi);
}
.odeme-tamam-mesaji { color: #155724; background-color: var(--yesil-renk-acik); padding: 1rem; border-radius: var(--kenar-yuvarlakligi); }
.odeme-eksik-mesaji {
    color: #721c24;
    background-color: var(--acik-kirmizi-arka-plan);
    animation: uyari-yanip-sonme 1.5s infinite;
     padding: 1rem; border-radius: var(--kenar-yuvarlakligi);
}

.form-grup.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: -0.5rem;
}

.form-grup.remember-me input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: var(--tema-rengi);
}

.form-grup.remember-me label {
    margin-bottom: 0;
    font-weight: normal;
}

.anons-listesi {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: var(--kenar-yuvarlakligi);
}

/* Sınıflar listesi için özel yükseklik - ÇOK ÖNEMLİ! */
ul#kayitli-siniflar-listesi.anons-listesi.siniflar-listesi {
    max-height: 600px !important;
    min-height: 300px !important;
    height: auto !important;
    overflow-y: auto !important;
}

.anons-listesi.siniflar-listesi {
    max-height: 600px !important;
    min-height: 300px !important;
}

.anons-listesi li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    color: var(--metin-rengi);
}
.anons-listesi li:last-child {
    border-bottom: none;
}
.anons-listesi li b {
    color: var(--tema-rengi);
}

/* Sınıf filtre butonları */
.sinif-filtre-butonlar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-filtre {
    background: white;
    border: 2px solid #dee2e6;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-filtre:hover {
    background: #f8f9fa;
    border-color: var(--tema-rengi);
    color: var(--tema-rengi);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-filtre.active {
    background: linear-gradient(135deg, var(--tema-rengi) 0%, var(--tema-rengi-koyu) 100%);
    border-color: var(--tema-rengi);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-filtre i {
    font-size: 1rem;
}

/* Sınıf listesi item'ları için badge */
.sinif-item-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.sinif-item-badge.kuluplu {
    background: linear-gradient(135deg, #28a745 0%, #19692c 100%);
    color: white;
}

.sinif-item-badge.kulupsuz {
    background: linear-gradient(135deg, #6c757d 0%, #494f54 100%);
    color: white;
}

.secili-ogrenci-baslik {
    color: var(--tema-rengi);
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.8rem;
    font-weight: 600;
}

#bilgilendirme-view .form-container, #anonslar-view .form-container, #teacher-bilgilendirme-view .form-container, #servisler-view .form-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
#bilgilendirme-view .form-sutun, #anonslar-view .form-sutun, #teacher-bilgilendirme-view .form-sutun, #servisler-view .form-sutun {
    flex: 1;
}
#gorsel-onizleme, #teacher-gorsel-onizleme {
    width: 100%;
    height: auto;
    max-height: 250px;
    border-radius: var(--kenar-yuvarlakligi);
    border: 2px dashed #ced4da;
    margin-top: 1rem;
    object-fit: contain;
    display: none;
}
#aktif-bilgilendirme-kutusu, #teacher-aktif-bilgilendirme-kutusu {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--meb-acik-gri);
    border-radius: var(--kenar-yuvarlakligi);
    background-color: #f8f9fa;
}
#aktif-bilgilendirme-kutusu h3, #teacher-aktif-bilgilendirme-kutusu h3 {
    margin-top: 0;
    color: var(--tema-rengi);
}
#aktif-bilgilendirme-icerik img, #teacher-aktif-bilgilendirme-icerik img {
    max-width: 200px;
    height: auto;
    border-radius: 5px;
    margin-top: 10px;
}

#veli-bilgilendirme-modal .modal-icerik {
    max-width: 700px;
    text-align: center;
}
#veli-bilgilendirme-modal img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--kenar-yuvarlakligi);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
#veli-bilgilendirme-modal .mesaj-govdesi {
    font-size: 1.2rem;
    line-height: 1.6;
    white-space: pre-wrap;
    text-align: left;
    margin-bottom: 0;
    overflow-wrap: break-word;
}
#veli-bilgilendirme-kapat-btn {
    visibility: hidden;
}
.aciklama-metni {
    font-size: 0.9rem;
    color: var(--meb-koyu-gri);
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: var(--kenar-yuvarlakligi);
}

.form-sutun-grup {
    display: flex;
    gap: 1.5rem;
}
.form-sutun {
    flex: 1;
}

#veli-bilgilendirme-modal.ogretmen-mesaji .modal-icerik {
    border-top-color: var(--mavi-renk);
}

#veli-bilgilendirme-modal.ogretmen-mesaji #veli-bilgilendirme-baslik {
    color: var(--mavi-renk);
}

#veli-bilgilendirme-baslik {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.ogrenci-secim-konteyner {
    border: 1px solid #ced4da;
    border-radius: var(--kenar-yuvarlakligi);
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}
.ogrenci-secim-konteyner label {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: normal;
    margin-bottom: 0.25rem;
}
.ogrenci-secim-konteyner label:hover {
    background-color: #f8f9fa;
}
.ogrenci-secim-konteyner input[type="checkbox"] {
    margin-right: 0.8rem;
    width: auto;
}
.ogrenci-secim-konteyner small {
    color: var(--meb-koyu-gri);
    margin-left: 0.5rem;
}

@media (max-width: 991.98px) {
    body.sidebar-aktif .sayfa-wrapper {
         padding-left: 1rem; /* Sidebar gizlendiğinde padding'i sıfırla */
    }

    /* Menü butonu her zaman görünür olsun */
#hamburger-menu-btn {
    display: block !important;
}
}

@media (max-width: 768px) {
    :root {
        --header-yuksekligi: 60px;
    }
    
    /* Mobilde sidebar TAMAMEN KAPALI - HER KULLANICI İÇİN */
    .sidebar {
        display: none !important; /* Hiç render edilmesin */
    }
    
    /* Sidebar overlay mobilde kullanılmıyor */
    .sidebar-overlay {
        display: none !important;
    }
    
    /* Sidebar açma class'ı mobilde çalışmasın */
    .sidebar.goster {
        display: none !important;
    }
    
    /* Body sidebar-aktif class'ı mobilde etkisiz */
    body.sidebar-aktif .sayfa-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .app-header-sag {
        gap: 0.5rem; /* Butonlar arası boşluk azaltıldı */
    }
    .menu-btn, #geri-don-btn {
        font-size: 1rem;
        padding: 0.4rem 0.6rem;
    }
    #karsilama-mesaji-kutusu {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }
    .user-info-container .header-cikis-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }
    .app-header-sol .okul-adi { display: none; }
@media (max-width: 991.98px) {
    body.sidebar-aktif .sayfa-wrapper {
         padding-left: 1rem; 
    }

    #hamburger-menu-btn {
        display: block !important;
    }

    /* ---- BURAYA YAPIŞTIRIN ---- */
    #bilgilendirme-view .form-container, #anonslar-view .form-container, #teacher-bilgilendirme-view .form-container, #servisler-view .form-container {
        flex-direction: column;
    }
    .form-sutun-grup {
        flex-direction: column;
        gap: 0;
    }
    /* ---- BİTİŞ ---- */
}
    #teacher-anons-alert-text {
        font-size: 1.8rem;
    }
 .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
    #veli-bilgilendirme-modal .modal-icerik {
        padding: 1.5rem;
        width: 95%;
    }
    #veli-bilgilendirme-baslik {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    #veli-bilgilendirme-modal .mesaj-govdesi {
        font-size: 1rem;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
    }
    
    .stat-card {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    .stat-card i {
        font-size: 1.3rem !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
    
    .stat-info {
        min-width: 0 !important;
        flex: 1 !important;
    }
    
    .stat-number {
        font-size: 1.3rem !important;
        line-height: 1.2 !important;
    }
    
    .stat-label {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
        margin-top: 0.1rem !important;
    }
}


@media (max-width: 600px) {
    .sayfa { padding: 1.5rem; padding-bottom: 4rem; margin-top: 0.5rem; }
    h1 { font-size: 1.5rem; }
    .sayfa-wrapper { padding: 0.5rem; }
}
#admin-sayfasi.sayfa {
    padding: 0;
    margin-top: 0;
    box-shadow: none;
    border-top: none;
    background-color: transparent;
}

/* Asıl padding ve stilleri içerdeki view'lere ver */
.admin-view {
    padding: 1.5rem; 
    padding-bottom: 4rem;
    margin-top: 0.5rem;
    background-color: #ffffff;
    border-radius: var(--kenar-yuvarlakligi);
    box-shadow: var(--golge);
    border-top: 5px solid var(--tema-rengi);
    overflow-y: auto; /* Dikey scroll ekle */
    overflow-x: hidden; /* Yatay taşmayı engelle */
    max-height: calc(100vh - 80px); /* Header yüksekliğini çıkar */
    -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
}
.user-info-container {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: var(--kenar-yuvarlakligi);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.user-info-container .header-cikis-btn {
    background-color: var(--tema-rengi-koyu);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: auto;
    border-radius: 0;
}

.user-info-container .header-cikis-btn:hover {
    background-color: #a71d2a;
}

#karsilama-mesaji-kutusu {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background-color: var(--tema-rengi);
    padding: 0.6rem 1rem;
    border-radius: 0;
    display: none;
    align-items: center;
}

.header-cikis-btn {
    background-color: var(--tema-rengi-koyu);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#odeme-bildirimleri-listesi li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

#odeme-bildirimleri-listesi .eylemler-hucresi {
    text-align: right;
    white-space: nowrap;
}

.header-cikis-btn:hover {
    background-color: #a71d2a;
}

#login-page {
  max-width: 400px;
  margin: 5rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
#login-page h1 {
  text-align: center;
  color: var(--tema-rengi);
}
#login-error {
  margin-top: 1rem;
  display: none;
}

/* ======================================================= */
/* YENİ VE MODERN İSTATİSTİK KARTI TASARIMI                */
/* ======================================================= */

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
    justify-content: start;
}

.stat-card {
    background-color: #ffffff;
    border-radius: var(--kenar-yuvarlakligi);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-card i {
    font-size: 2rem;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card:nth-child(8n+1) i { background: linear-gradient(135deg, #007bff, #0056b3); }
.stat-card:nth-child(8n+2) i { background: linear-gradient(135deg, #6f42c1, #4a2d82); }
.stat-card:nth-child(8n+3) i { background: linear-gradient(135deg, #28a745, #19692c); }
.stat-card:nth-child(8n+4) i { background: linear-gradient(135deg, #e83e8c, #a32b61); }
.stat-card:nth-child(8n+5) i { background: linear-gradient(135deg, #17a2b8, #0f6674); }
.stat-card:nth-child(8n+6) i { background: linear-gradient(135deg, #fd7e14, #c35f08); }
.stat-card:nth-child(8n+7) i { background: linear-gradient(135deg, #6c757d, #494f54); }
.stat-card:nth-child(8n+8) i { background: linear-gradient(135deg, #6f42c1, #4a2d82); }

.stat-card.warning i {
    background: linear-gradient(135deg, #ffc107, #d39e00);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--metin-rengi);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--meb-koyu-gri);
    margin-top: 0.25rem;
}

.bekleniyor-mesaji {
    text-align: center;
    font-weight: bold;
    color: var(--mavi-renk);
    background-color: #e7f3ff;
    padding: 1.5rem !important;
    border-radius: var(--kenar-yuvarlakligi);
    border: 1px dashed var(--mavi-renk);
}

.gelmeyen-ogrenci {
    color: #721c24;
    background-color: var(--acik-kirmizi-arka-plan);
    font-weight: bold;
}

.gelen-ogrenci {
    color: #155724;
    background-color: var(--yesil-renk-acik);
    font-weight: bold;
}

#teacher-anons-alert .ogrenci-secim-listesi {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: var(--kenar-yuvarlakligi);
    padding: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    max-height: 250px;
    overflow-y: auto;
}

#teacher-anons-alert .ogrenci-secim-listesi label {
    display: block;
    padding: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--metin-rengi);
    font-weight: 500;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

#teacher-anons-alert .ogrenci-secim-listesi label:hover {
    background-color: #f1f1f1;
}

#teacher-anons-alert .ogrenci-secim-listesi input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    accent-color: var(--tema-rengi);
}

#foto-onizleme, #edit-foto-onizleme {
    max-width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-top: 1rem;
    object-fit: cover;
    border: 3px solid #eee;
}

#crop-modal {
    z-index: 1060;
}

#crop-image-preview {
    display: block;
    max-width: 100%;
}

.modal-icerik {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    margin: 20px auto;
}

.modal-icerik form {
    overflow-y: auto;
    padding-right: 15px;
    margin-right: -15px;
    flex-grow: 1; /* <-- BU SATIRI EKLEYİN */
}

.modal-buton-grup, .modal .modal-eylemler {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 1.5rem;
}
.bilgi-mesaji {
    background-color: #e2e3e5;
    color: #383d41;
    font-weight: bold;
    text-align: center;
}

.menu-form-tablosu {
    width: 100%;
    border-collapse: collapse;
}
.menu-form-tablosu th, .menu-form-tablosu td {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    text-align: center;
}
.menu-form-tablosu thead th {
    background-color: var(--meb-acik-gri);
}
.menu-form-tablosu td:first-child {
    font-weight: bold;
    background-color: #f8f9fa;
}
.menu-form-tablosu textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    min-height: 80px;
    resize: vertical;
    font-size: 0.9rem;
}

#veli-yemek-menusu-konteyner {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}
#veli-yemek-menusu-konteyner h3 {
    text-align: center;
    color: var(--metin-rengi);
    margin-top: 0;
}
.gunluk-menu-kart {
    background-color: #f8f9fa;
    border-left: 5px solid var(--mavi-renk);
    padding: 1rem 1.5rem;
    border-radius: var(--kenar-yuvarlakligi);
}
.gunluk-menu-kart p {
    margin: 0.5rem 0;
    font-size: 1rem;
}
.gunluk-menu-kart strong {
    color: var(--mavi-renk);
}
.bilgi-mesaji {
    padding: 1rem;
    border-radius: var(--kenar-yuvarlakligi);
    background-color: #f8f9fa;
    text-align: center;
    color: var(--meb-koyu-gri);
    border: 1px dashed #ced4da;
}

.anons-listesi li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    position: relative;
}

.anons-item-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
    flex-shrink: 0;
}

.anons-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.anons-item-content b {
    color: var(--tema-rengi);
}

.anons-item-date {
    color: var(--meb-koyu-gri);
    font-size: 0.85em;
}

.anons-item-icon {
    margin-left: 8px;
    font-size: 1.8rem;
    vertical-align: middle;
}

.anons-item-icon .fa-door-open {
    color: var(--meb-mor, #04bc50);
}

.anons-item-icon .fa-car-side {
    color: var(--meb-kirmizi, #dc3545);
}


.anons-alert-fotolar {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--tema-rengi-koyu);
    background-color: #fff;
    display: none;
}
.anons-alert-foto-label {
    display: block;
    margin-top: 0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    color: #721c24;
}

.anons-alert-ok-isareti {
    font-size: 3rem;
    color: var(--tema-rengi-koyu);
    align-self: center;
}

.veli-profil-fotosu-konteyner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem auto;
}

.profil-foto-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.profil-foto-wrapper label {
    font-weight: 600;
    color: var(--metin-rengi);
    margin-bottom: 0;
}

.profil-foto-wrapper img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--tema-rengi);
}

.veli-panel-ok-isareti {
    font-size: 2.5rem;
    color: var(--tema-rengi);
}

#veli-odeme-detaylari-view {
    max-width: 900px;
}

.odeme-gecmisi-kart {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--kenar-yuvarlakligi);
    margin-bottom: 2rem;
}

.odeme-gecmisi-baslik {
    background-color: var(--tema-rengi);
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-top-left-radius: var(--kenar-yuvarlakligi);
    border-top-right-radius: var(--kenar-yuvarlakligi);
}

.odeme-gecmisi-tablosu {
    width: 100%;
    border-collapse: collapse;
}

.odeme-gecmisi-tablosu th,
.odeme-gecmisi-tablosu td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.odeme-gecmisi-tablosu thead {
    background-color: #e9ecef;
}

.odeme-gecmisi-tablosu tbody tr:last-child td {
    border-bottom: none;
}

.odeme-gecmisi-tablosu .miktar-sutunu {
    font-weight: bold;
    color: var(--yesil-renk);
    text-align: right;
}

.odeme-gecmisi-tablosu .tarih-sutunu {
    white-space: nowrap;
}

#odeme-detay-modal .modal-icerik {
    max-width: 700px;
}

.odeme-tab-nav {
    display: flex;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.odeme-tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--meb-koyu-gri);
    position: relative;
    top: 2px;
    border-bottom: 2px solid transparent;
}

.odeme-tab-btn.aktif {
    color: var(--tema-rengi);
    border-bottom-color: var(--tema-rengi);
}

.odeme-tab-content {
    display: none;
}

.odeme-tab-content.aktif {
    display: block;
}

#odeme-detay-modal .odeme-tab-container {
    min-height: 250px;
}

.toplu-odeme-buton-grup {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.toplu-odeme-buton-grup .btn {
    width: auto;
    margin-top: 0;
    margin-bottom: 0;
}

#veli-odeme-detaylari-view {
    max-width: 900px;
}

.odeme-gecmisi-kart {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: var(--kenar-yuvarlakligi);
    margin-bottom: 2.5rem;
    box-shadow: var(--golge);
}

.odeme-gecmisi-baslik {
    background-color: var(--tema-rengi);
    color: white;
    padding: 1rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-top-left-radius: var(--kenar-yuvarlakligi);
    border-top-right-radius: var(--kenar-yuvarlakligi);
}

.odeme-gecmisi-icerik {
    padding: 1.5rem;
}

.odeme-gecmisi-icerik h3 {
    margin-top: 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.8rem;
    color: var(--metin-rengi);
}

.odeme-gecmisi-tablosu {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.odeme-gecmisi-tablosu th,
.odeme-gecmisi-tablosu td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.odeme-gecmisi-tablosu th {
    background-color: var(--meb-kirmizi);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.odeme-gecmisi-tablosu tbody tr {
    transition: background-color 0.2s ease;
}

.odeme-gecmisi-tablosu tbody tr:hover {
    background-color: #f8f9fa;
}

.odeme-gecmisi-tablosu tbody tr:last-child td {
    border-bottom: none;
}

.odeme-gecmisi-tablosu .miktar-sutunu {
    font-weight: bold;
    color: var(--yesil-renk);
    text-align: right;
    white-space: nowrap;
    font-size: 1.1rem;
}

.odeme-gecmisi-tablosu .tarih-sutunu {
    white-space: nowrap;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Zebra striping (alternatif satır renkleri) */
.odeme-gecmisi-tablosu tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.odeme-gecmisi-tablosu tbody tr:nth-child(even):hover {
    background-color: #e9ecef;
}

/* Eylemler hücresi */
.odeme-gecmisi-tablosu .eylemler-hucresi {
    white-space: nowrap;
}

.odeme-gecmisi-tablosu .eylemler-hucresi .btn {
    margin-right: 0.25rem;
}

.bildirim-durum {
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
}

.durum-beklemede {
    background-color: var(--sari-renk);
    color: #333;
}

.durum-onaylandi {
    background-color: var(--yesil-renk);
}

#etkinlik-formu {
    margin-top: 2rem;
}
.etkinlik-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--kenar-yuvarlakligi);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}
.etkinlik-item .form-grup {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.etkinlik-item textarea {
    min-height: 120px;
    flex: 2;
}
.etkinlik-item .etkinlik-foto-alan {
    flex: 1;
}
.etkinlik-foto-onizleme {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px dashed #ced4da;
    cursor: pointer;
}
.etkinlik-item .sil-etkinlik-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--tema-rengi);
    font-size: 1.5rem;
    cursor: pointer;
}

.etkinlik-modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.etkinlik-modal-nav h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--metin-rengi);
}
#etkinlik-modal-icerik {
    max-height: 60vh;
    overflow-y: auto;
}
.ogretmen-etkinlik-bolumu {
    margin-bottom: 2rem;
}
.ogretmen-baslik {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--tema-rengi);
    border-bottom: 2px solid var(--tema-rengi);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.etkinlik-kart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: var(--kenar-yuvarlakligi);
    margin-bottom: 1rem;
}

.etkinlik-kart-fotolar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.etkinlik-kart-fotolar img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.etkinlik-kart-fotolar img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.etkinlik-kart p {
    margin: 0;
    line-height: 1.6;
    white-space: pre-wrap;
    width: 100%;
}

.image-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 85%;
    border-radius: 5px;
    animation: zoom 0.4s;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover {
    color: #bbb;
}
@keyframes zoom {
    from {transform: scale(0.5)}
    to {transform: scale(1)}
}

#yoklama-tablosu {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
#yoklama-tablosu th, #yoklama-tablosu td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}
#yoklama-tablosu thead th {
    background-color: var(--meb-acik-gri);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.anons-item-icon .fa-handshake-simple {
    color: var(--mavi-renk, #007bff);
}

.modal-icon-container {
    text-align: center;
    margin-top: 2rem;
    color: var(--yesil-renk);
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    font-size: 4rem;
}


#islem-basarili-mesaj {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

#islem-basarili-modal .modal-buton-grup {
    margin-top: 2rem;
}

#islem-basarili-kapat-btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    width: auto;
}

#veli-ogrenci-liste-konteyner .ogrenci-secim-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: var(--kenar-yuvarlakligi);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
#veli-ogrenci-liste-konteyner .ogrenci-secim-item:hover {
    background-color: #f8f9fa;
    border-color: var(--tema-rengi);
}
#veli-ogrenci-liste-konteyner .ogrenci-secim-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
#veli-ogrenci-liste-konteyner .ogrenci-secim-item span {
    font-size: 1.1rem;
    font-weight: 600;
}

#yoklama-view .tablo-konteyner {
    border: 2px solid var(--tema-rengi);
    border-radius: var(--kenar-yuvarlakligi);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

#yoklama-view #yoklama-tablosu thead th {
    background-color: var(--tema-rengi);
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#yoklama-view #yoklama-tablosu td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #343a40;
}

#yoklama-view #yoklama-tablosu tbody tr:nth-child(even) {
    background-color: #fdf2f2;
}

#yoklama-view #yoklama-tablosu tbody tr:hover {
    background-color: #ffe8e8;
}

#yoklama-view #yoklama-tablosu tbody tr:last-child td {
    border-bottom: none;
}

.yoklama-ozet {
    background-color: var(--tema-rengi);
    color: white;
    padding: 1.5rem;
    border-radius: var(--kenar-yuvarlakligi);
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--golge);
}

.yoklama-ozet h2, .yoklama-ozet p {
    margin: 0;
    padding: 0;
    color: white;
}

.yoklama-ozet h2 {
    font-size: 1.2rem;
    font-weight: 500;
}

.yoklama-ozet p {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

#yoklama-sinif-listeleri-konteyner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.yoklama-sinif-karti {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: var(--kenar-yuvarlakligi);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.yoklama-sinif-baslik {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.3rem;
    border-bottom: 1px solid #dee2e6;
    color: var(--metin-rengi);
}

.yoklama-sinif-karti .tablo-konteyner {
    max-height: none;
    border: none;
    border-radius: 0;
    overflow-x: auto;
}

.yoklama-sinif-tablosu {
    width: 100%;
    border-collapse: collapse;
}

.yoklama-sinif-tablosu th, .yoklama-sinif-tablosu td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.yoklama-sinif-tablosu thead th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.yoklama-sinif-tablosu tbody tr:last-child td {
    border-bottom: none;
}

.yoklama-sinif-sayac {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    text-align: right;
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 1px solid #dee2e6;
    color: var(--tema-rengi);
}

@media (min-width: 992px) {
    #yoklama-sinif-listeleri-konteyner {
        grid-template-columns: repeat(2, 1fr);
    }
}

.yoklama-ust-bilgi {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #dee2e6;
}

.yoklama-live-stats {
    display: flex;
    gap: 1rem;
}

.live-stat-card {
    background-color: #f8f9fa;
    padding: 0.8rem 1.2rem;
    border-radius: var(--kenar-yuvarlakligi);
    border-left: 5px solid;
    display: flex;
    flex-direction: column;
    min-width: 120px;
    text-align: right;
}

.live-stat-card.teslim-edilen {
    border-left-color: var(--yesil-renk);
}
.live-stat-card.teslim-alinan {
    border-left-color: var(--sari-renk);
}

.live-stat-label {
    font-size: 0.8rem;
    color: var(--meb-koyu-gri);
    margin-bottom: 0.25rem;
}

.live-stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--metin-rengi);
}

@media (max-width: 768px) {
    .yoklama-ust-bilgi {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    .yoklama-live-stats {
        justify-content: space-between;
    }
    .live-stat-card {
        min-width: 0;
        flex-grow: 1;
        text-align: center;
    }
}

#servis-sayfasi {
    max-width: 700px;
    text-align: center;
}

#servis-panel-baslik {
    font-size: 1.8rem;
    color: var(--metin-rengi);
    border-bottom: 2px solid var(--tema-rengi);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

#servis-sayfasi h3 {
    text-align: left;
    color: var(--metin-rengi);
    margin-top: 2rem;
    border: none;
    font-size: 1.3rem;
}

#servis-ogrenci-listesi.anons-listesi {
    max-height: 40vh;
    text-align: left;
}

#servis-ogrenci-listesi.anons-listesi li {
    font-size: 1.1rem;
}

#servis-ogrenci-listesi.anons-listesi li b {
    font-weight: 600;
}

#servis-anons-et-btn {
    font-size: 1.3rem;
    padding: 1.2rem;
    background-color: var(--yesil-renk);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
}

#servis-anons-et-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

#servis-anons-et-btn:disabled {
    background-color: var(--meb-koyu-gri);
    box-shadow: none;
    cursor: not-allowed;
}

#servis-yanit-durumu-konteyner {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--kenar-yuvarlakligi);
    background-color: #f8f9fa;
    text-align: left;
    border: 1px solid #e9ecef;
}

#servis-yanit-durumu-konteyner h4 {
    margin-top: 0;
    color: var(--tema-rengi);
    font-size: 1.2rem;
}

#servis-yanit-durumu-konteyner ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

#servis-yanit-durumu-konteyner li {
    padding: 0.5rem 0;
    font-weight: 500;
}

#servis-yanit-durumu-konteyner .yanit-bekleniyor::before {
    content: '\f110';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--sari-renk);
    animation: fa-spin 2s infinite linear;
}

#servis-yanit-durumu-konteyner .yanit-geldi::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--yesil-renk);
}

#servis-yanit-modal .modal-icerik {
    max-width: 500px;
}

#servis-yanit-baslik {
    text-align: center;
    color: var(--tema-rengi);
}

#servis-yanit-aciklama {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

#servis-yanit-ogrenci-listesi {
    border: 1px solid #ced4da;
    border-radius: var(--kenar-yuvarlakligi);
    padding: 1rem;
    max-height: 250px;
    overflow-y: auto;
    text-align: left;
}

#servis-yanit-ogrenci-listesi label {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

#servis-yanit-ogrenci-listesi input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: var(--tema-rengi);
}
.stats-container {

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
    justify-content: start;
}

.stat-card.changed {
    animation: glowEffect 1s ease-in-out;
}

.stat-card.changed::after {
    content: 'YENİ';
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: var(--tema-rengi);
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: bold;
    animation: fadeInAndOut 25s forwards;
}

@keyframes fadeInAndOut {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    20%, 80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes glowEffect {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    }
    50% {
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    }
}

#konum-uyari-modal .modal-icerik {
    border-top-color: var(--tema-rengi);
}

#konum-uyari-modal h1 {
    color: var(--tema-rengi);
    margin-bottom: 1rem;
}

#uyari-modal .modal-icerik {
    text-align: center;
    max-width: 450px;
    padding: 2.5rem 2rem 2rem 2rem;
}

#uyari-modal-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    display: block;
    line-height: 1;
}

#uyari-modal-baslik {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

#uyari-modal-mesaj {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

#uyari-modal-kapat-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
}

.uyari-hata {
    color: var(--kirmizi-renk);
}

.uyari-basari {
    color: var(--yesil-renk);
}

.uyari-bilgi {
    color: var(--mavi-renk);
}

.okul-kart-listesi-konteyner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.okul-kart {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: var(--kenar-yuvarlakligi);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.okul-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.okul-kart-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--metin-rengi);
}

.durum-etiketi {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    white-space: nowrap;
}

.durum-etiketi.durum-aktif {
    background-color: var(--yesil-renk);
}

.durum-etiketi.durum-pasif {
    background-color: var(--meb-koyu-gri);
}

.durum-etiketi.durum-uyari {
    background-color: var(--sari-renk);
    color: #333;
}

.okul-kart-icerik {
    padding: 1.5rem;
    flex-grow: 1;
}

.okul-kart-bilgi-satiri {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.okul-kart-bilgi-satiri strong {
    color: var(--metin-rengi);
}

.okul-kart-bilgi-satiri span {
    color: var(--meb-koyu-gri);
    text-align: right;
}

.okul-kart-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    border-top: 1px solid #e9ecef;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.okul-kart-stat-item .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--tema-rengi);
    line-height: 1;
}

.okul-kart-stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--meb-koyu-gri);
    margin-top: 0.25rem;
    text-transform: uppercase;
}

.okul-kart-eylemler {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}
/* ============================================= */
/* === YENİ: MODERN PERSONEL LİSTESİ STİLLERİ === */
/* ============================================= */

#personel-listeleri-konteyner {
    margin-top: 1.5rem;
    display: grid;
    gap: 2rem;
}

.personel-grup-karti {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: var(--kenar-yuvarlakligi);
    box-shadow: var(--golge);
    overflow: hidden;
}

.personel-grup-baslik {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
    font-size: 1.3rem;
}

.personel-grup-baslik i {
    color: var(--tema-rengi);
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
}

.personel-grup-karti .tablo-konteyner {
    border: none;
    max-height: none;
    border-radius: 0;
}

.personel-grup-karti table {
    text-align: left;
}

.personel-grup-karti th {
    background-color: #ffffff !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.personel-grup-karti td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.personel-grup-karti tbody tr:last-child td {
    border-bottom: none;
}

.personel-grup-karti tbody tr {
    transition: background-color 0.2s ease;
}

.personel-grup-karti tbody tr:hover {
    background-color: #fcf4f5;
}

.personel-foto-ad {
    display: flex;
    align-items: center;
    gap: 15px;
}

.personel-profil-foto {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
    flex-shrink: 0;
}
#alerji-talepleri-view .view-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

#alerji-talepleri-view .stats-container {
    justify-content: center;
}

#alerji-talepleri-view h1,
#alerji-talepleri-view > .view-container > p {
    text-align: center;
}

.alerji-icerik-alani {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
    border-top: 1px solid #dee2e6;
    padding-top: 2rem;
}

.alerji-tab-ve-arama {
    display: flex;
    flex-direction: column;
}

.alerji-tab-ve-arama h3 {
    margin-top: 0;
    text-align: left;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .alerji-icerik-alani {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ============================================= */
/* === YENİ: SAĞLIK TAKİBİ SAYFASI STİLLERİ ==== */
/* ============================================= */
.veli-ogrenci-secim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.ogrenci-secim-karti {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: var(--kenar-yuvarlakligi);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.ogrenci-secim-karti:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-color: var(--tema-rengi);
}

.ogrenci-secim-karti.secili {
    border-color: var(--tema-rengi);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
    background-color: #fcf4f5;
}

.ogrenci-secim-karti .ogrenci-profil-foto {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #f0f0f0;
}

.ogrenci-secim-karti .ogrenci-bilgi {
    display: flex;
    flex-direction: column;
}

.ogrenci-secim-karti .ogrenci-ad {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--metin-rengi);
}

.ogrenci-secim-karti .ogrenci-sinif {
    font-size: 0.9rem;
    color: var(--meb-koyu-gri);
}

/* Sağlık sayfasındaki üst kırmızı çizgiyi kaldırır */
#saglik-view.sayfa {
    border-top: none;
}

/* ============================================= */
/* === MESAJLAŞMA SİSTEMİ STİLLERİ === */
/* ============================================= */

#mesajlar-view.sayfa {
    max-width: 1400px;
    padding: 1.5rem;
    display: none; /* Varsayılan olarak gizli */
}

#mesajlar-view.sayfa.aktif {
    display: block; /* Aktif olduğunda göster */
}

/* --- 4.6 Mesajlaşma Arayüzü (KESİN ÇÖZÜM) --- */
#mesajlar-view.sayfa {
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
}

.mesaj-konteyner {
    display: flex; /* ANAHTAR: Grid yerine Flexbox */
    flex-direction: row;
    height: calc(100vh - var(--header-yuksekligi) - 3rem);
    min-height: 600px;
    background-color: #ffffff;
    border-radius: var(--kenar-yuvarlakligi);
    overflow: hidden;
    box-shadow: var(--golge);
}

.konusma-listesi {
    flex-basis: clamp(320px, 25%, 420px); /* Genişlik: min 320px, ideal 25%, max 420px */
    flex-shrink: 0; /* Sol panelin daralmasını engelle */
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.mesaj-alani {
    flex-grow: 1; /* Kalan alanı kapla */
    min-width: 0; /* KRİTİK: İçeriğin daralmasını engelle */
    display: flex;
    flex-direction: column;
}

.konusma-liste-baslik {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
}

.konusma-liste-baslik h3 {
    border: none;
    padding: 0;
    margin: 0;
}

.arama-kutusu {
    padding: 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.arama-kutusu i {
    position: absolute;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--meb-koyu-gri);
}

.arama-kutusu input {
    width: 100%;
    padding: 0.6rem 0.6rem 0.6rem 2.5rem;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.9rem;
}

.konusma-liste-scrollable {
    flex: 1;
    overflow-y: auto;
}

.konusma-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.konusma-item:hover {
    background-color: #f8f9fa;
}

.konusma-item.aktif {
    background-color: #fcf4f5;
    border-left: 4px solid var(--tema-rengi);
}

.konusma-item.okunmadi {
    font-weight: 600;
    background-color: #fff8f9;
}

.konusma-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--tema-rengi);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.konusma-bilgi {
    flex: 1;
    min-width: 0;
}

.okunmadi-badge {
    background-color: var(--tema-rengi);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
}

.konusma-ust {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.konusma-ad {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--metin-rengi);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.konusma-zaman {
    font-size: 0.75rem;
    color: var(--meb-koyu-gri);
    white-space: nowrap;
}

.konusma-alt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.konusma-son-mesaj {
    font-size: 0.85rem;
    color: var(--meb-koyu-gri);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.konusma-item.okunmadi .konusma-son-mesaj {
    color: var(--metin-rengi);
}

.mesaj-bos-durum {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--meb-koyu-gri);
    text-align: center;
    padding: 2rem;
}

.mesaj-bos-durum i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.mesaj-bos-durum h3 {
    margin: 0 0 0.5rem 0;
    color: var(--metin-rengi);
    border: none;
}

.mesaj-bos-durum p {
    margin: 0;
    font-size: 0.95rem;
}

#mesaj-aktif-konusma {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mesaj-baslik {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #ffffff;
}

.karsilik-bilgi {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.karsilik-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--tema-rengi);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.karsilik-detay h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
    color: var(--metin-rengi);
}

.karsilik-detay p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--meb-koyu-gri);
}

.mesaj-icerik-alani {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: #f8f9fa;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(220, 53, 69, 0.02) 10px,
            rgba(220, 53, 69, 0.02) 20px
        );
}

.mesaj-grup {
    margin-bottom: 1.5rem;
}

.mesaj-tarih-ayirici {
    text-align: center;
    margin-bottom: 1rem;
}

.mesaj-tarih-etiketi {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--meb-koyu-gri);
    border: 1px solid #e9ecef;
}

.mesaj-bubble {
    max-width: 70%;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
}

.mesaj-bubble.giden {
    align-items: flex-end;
    margin-left: auto;
}

.mesaj-bubble.gelen {
    align-items: flex-start;
    margin-right: auto;
}

.mesaj-icerik {
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mesaj-bubble.giden .mesaj-icerik {
    background-color: var(--tema-rengi);
    color: white;
    border-bottom-right-radius: 4px;
}

.mesaj-bubble.gelen .mesaj-icerik {
    background-color: #ffffff;
    color: var(--metin-rengi);
    border-bottom-left-radius: 4px;
    border: 1px solid #e9ecef;
}

.mesaj-zaman-damgasi {
    font-size: 0.7rem;
    color: var(--meb-koyu-gri);
    margin-top: 0.3rem;
    padding: 0 0.3rem;
}

.mesaj-bubble.giden .mesaj-zaman-damgasi {
    text-align: right;
}

.mesaj-bubble.gelen .mesaj-zaman-damgasi {
    text-align: left;
}

/* MESAJ GÖNDERME ALANI - KRİTİK BÖLÜM */
.mesaj-gonderme-alani {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 2px solid #e9ecef;
    background-color: #ffffff;
    align-items: flex-end;
    flex-shrink: 0;
}

/* TEXTAREA - ÇÖZÜM BURADA */
#mesaj-input,
.mesaj-gonderme-alani textarea {
    flex-grow: 1;
    resize: vertical;
    min-height: 60px;
    height: 60px;
    max-height: 150px;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    font-family: inherit;
    box-sizing: border-box;
}

#mesaj-input:focus,
.mesaj-gonderme-alani textarea:focus {
    outline: none;
    border-color: var(--tema-rengi);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.mesaj-gonderme-alani button {
    width: auto;
    margin: 0;
    align-self: stretch;
    padding: 0 2rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Sol Panel - Konuşma Listesi */
.konusma-listesi {
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.konusma-liste-baslik {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
}

.konusma-liste-baslik h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--metin-rengi);
    border: none;
    padding: 0;
}

.konusma-arama-kutusu {
    padding: 1rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.konusma-arama-kutusu {
    position: relative;
}

.konusma-arama-kutusu i {
    position: absolute;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--meb-koyu-gri);
}

.konusma-arama-kutusu input {
    width: 100%;
    padding: 0.6rem 0.6rem 0.6rem 2.5rem;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 0.9rem;
}

.konusma-liste-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.konusma-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #ffffff;
}

.konusma-item:hover {
    background-color: #f8f9fa;
}

.konusma-item.aktif {
    background-color: #fcf4f5;
    border-left: 4px solid var(--tema-rengi);
}

.konusma-item.okunmadi {
    font-weight: 600;
    background-color: #fff8f9;
}

.konusma-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--tema-rengi);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.konusma-bilgi {
    flex: 1;
    min-width: 0;
}

.konusma-ust {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.konusma-ad {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--metin-rengi);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.konusma-zaman {
    font-size: 0.75rem;
    color: var(--meb-koyu-gri);
    white-space: nowrap;
}

.konusma-son-mesaj {
    font-size: 0.85rem;
    color: var(--meb-koyu-gri);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.konusma-item.okunmadi .konusma-son-mesaj {
    color: var(--metin-rengi);
}

.okunmadi-badge {
    background-color: var(--tema-rengi);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Sağ Panel - Mesaj Alanı */
.mesaj-alani {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

.mesaj-bos-durum {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--meb-koyu-gri);
    text-align: center;
    padding: 2rem;
}

.mesaj-bos-durum i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.mesaj-bos-durum h3 {
    margin: 0 0 0.5rem 0;
    color: var(--metin-rengi);
    border: none;
}

.mesaj-bos-durum p {
    margin: 0;
    font-size: 0.95rem;
}

#mesaj-aktif-konusma {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mesaj-baslik {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #ffffff;
}

.karsilik-bilgi {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.karsilik-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--tema-rengi);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.karsilik-detay h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
    color: var(--metin-rengi);
}

.karsilik-detay p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--meb-koyu-gri);
}

.mesaj-icerik-alani {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: #f8f9fa;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(220, 53, 69, 0.02) 10px,
            rgba(220, 53, 69, 0.02) 20px
        );
}

.mesaj-grup {
    margin-bottom: 1.5rem;
}

.mesaj-tarih-ayirici {
    text-align: center;
    margin-bottom: 1rem;
}

.mesaj-tarih-etiketi {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--meb-koyu-gri);
    border: 1px solid #e9ecef;
}

.mesaj-bubble {
    max-width: 70%;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
}

.mesaj-bubble.giden {
    align-items: flex-end;
    margin-left: auto;
}

.mesaj-bubble.gelen {
    align-items: flex-start;
    margin-right: auto;
}

.mesaj-icerik {
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mesaj-bubble.giden .mesaj-icerik {
    background-color: var(--tema-rengi);
    color: white;
    border-bottom-right-radius: 4px;
}

.mesaj-bubble.gelen .mesaj-icerik {
    background-color: #ffffff;
    color: var(--metin-rengi);
    border-bottom-left-radius: 4px;
    border: 1px solid #e9ecef;
}

.mesaj-zaman-damgasi {
    font-size: 0.7rem;
    color: var(--meb-koyu-gri);
    margin-top: 0.3rem;
    padding: 0 0.3rem;
}

.mesaj-bubble.giden .mesaj-zaman-damgasi {
    text-align: right;
}

.mesaj-bubble.gelen .mesaj-zaman-damgasi {
    text-align: left;
}

.mesaj-gonderme-alani {
    padding: 1.5rem;
    border-top: 2px solid #e9ecef;
    background-color: #ffffff;
    display: flex;
    gap: 1rem;
    align-items: stretch;
    min-height: 120px;
    flex-shrink: 0;
}

/* TEXTAREA - ÇOK SPESİFİK VE GÜÇLÜ */
#mesaj-input,
.mesaj-gonderme-alani textarea,
textarea#mesaj-input {
    flex: 1 1 auto;
    padding: 1.2rem !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    resize: vertical !important;
    font-family: inherit !important;
    min-height: 80px !important;
    height: 80px !important;
    max-height: 200px !important;
    line-height: 1.6 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#mesaj-input:focus,
.mesaj-gonderme-alani textarea:focus {
    outline: none !important;
    border-color: var(--tema-rengi) !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15) !important;
}

.mesaj-gonderme-alani button {
    padding: 1.2rem 2.5rem;
    white-space: nowrap;
    min-height: 80px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Öğrenci/Öğretmen Seçim Listeleri */
.ogrenci-secim-liste,
.ogretmen-secim-liste {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1rem;
}

.secim-item {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: var(--kenar-yuvarlakligi);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.secim-item:hover {
    background-color: #f8f9fa;
    border-color: var(--tema-rengi);
}

.secim-item-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.secim-item-bilgi h4 {
    margin: 0 0 0.3rem 0;
    color: var(--metin-rengi);
    font-size: 1rem;
}

.secim-item-bilgi p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--meb-koyu-gri);
}

/* Responsive Tasarım */
@media (max-width: 992px) {
    .mesaj-konteyner {
        display: flex !important;
        flex-direction: column !important;
        height: calc(100vh - 150px) !important;
        min-height: 500px !important;
    }
    
    /* Konuşma Listesi - Mobilde Varsayılan Görünür */
    .konusma-listesi {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100% !important;
        border-right: none !important;
        border-bottom: none !important;
    }
    
    /* Konuşma listesi gizlendiğinde */
    .konusma-listesi.mobil-gizli {
        display: none !important;
    }
    
    /* Mesaj Alanı - Mobilde Varsayılan Gizli */
    .mesaj-alani {
        display: none !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Mesaj alanı gösterildiğinde */
    .mesaj-alani.mobil-aktif {
        display: flex !important;
    }
    
    /* Mesaj bubble boyutu ve sarmalama */
    .mesaj-bubble {
        max-width: 85% !important;
    }
    
    .mesaj-icerik {
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: pre-wrap !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Konuşma liste scrollable */
    .konusma-liste-scrollable {
        max-height: calc(100vh - 300px) !important;
        overflow-y: auto !important;
    }
    
    /* MOBİL MESAJ GÖNDERME ALANI */
    .mesaj-gonderme-alani {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    /* Textarea - Mobilde daha geniş */
    .mesaj-gonderme-alani textarea {
        flex-grow: 1 !important;
        min-height: 45px !important;
        max-height: 200px !important;
        padding: 0.75rem !important;
        font-size: 0.95rem !important;
        resize: none !important; /* Manuel resize kapalı, otomatik büyüyecek */
    }
    
    /* Gönder butonu - Mobilde küçük */
    .mesaj-gonderme-alani button {
        padding: 0.75rem 1rem !important;
        min-width: auto !important;
        width: auto !important;
        flex-shrink: 0 !important;
        font-size: 0.9rem !important;
    }
    
    /* Medya ekleme butonu */
    .mesaj-gonderme-alani .btn-ikincil {
        padding: 0.75rem !important;
        width: 45px !important;
        min-width: 45px !important;
    }
}

@media (max-width: 576px) {
    #mesajlar-view.sayfa {
        padding: 0.5rem;
    }
    
    .mesaj-konteyner {
        height: calc(100vh - 200px);
    }
    
    .mesaj-bubble {
        max-width: 90% !important;
    }
    
    .mesaj-icerik {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: pre-wrap !important;
        max-width: 100% !important;
    }
    }
}/* ============================================= */
/* === VİDEO YÜKLEME VE OYNATMA STİLLERİ === */
/* ============================================= */

/* Video ekle butonu */
.video-ekle-btn {
    margin-left: 0.5rem;
}

/* Video thumbnail container */
.etkinlik-video-container {
    position: relative;
    display: inline-block;
    margin: 0.5rem;
    border-radius: var(--kenar-yuvarlakligi);
    overflow: hidden;
    box-shadow: var(--golge);
}

.video-thumbnail {
    width: 200px;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: #000;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease;
}

.video-thumbnail:hover {
    transform: scale(1.05);
}

.video-thumbnail i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
    transition: font-size 0.2s ease;
}

.video-thumbnail:hover i {
    font-size: 3.5rem;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Video oynatıcı modal */
.video-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-player-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: #000;
    border-radius: var(--kenar-yuvarlakligi);
    overflow: hidden;
}

.video-player-content video {
    width: 100%;
    max-height: 80vh;
    display: block;
}

.video-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10001;
    background-color: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.video-close-btn:hover {
    background-color: rgba(220, 53, 69, 0.8);
}

/* Etkinlik medya grid */
.etkinlik-medya {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.etkinlik-foto {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--kenar-yuvarlakligi);
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: var(--golge);
}

.etkinlik-foto:hover {
    transform: scale(1.05);
}

/* Foto liste item - video destekli */
.foto-liste-item[data-type="video"] {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.foto-liste-item[data-type="video"] i {
    color: #2196f3;
}

/* Loading durumu */
.foto-liste-item .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .video-thumbnail,
    .etkinlik-foto {
        width: 150px;
        height: 112px;
    }
    
    .video-player-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .video-thumbnail i {
        font-size: 2rem;
    }
    
    .video-thumbnail:hover i {
        font-size: 2.3rem;
    }
}

/* Video yükleme progress */
.video-upload-progress {
    position: relative;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.video-upload-progress-bar {
    height: 100%;
    background-color: var(--tema-rengi);
    transition: width 0.3s ease;
}

/* Video bilgi kartı */
.video-info-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    color: var(--meb-koyu-gri);
}

.video-info-badge i {
    margin-right: 4px;
}
/* style.css - 2. DÜZELTME (Bu kuralı dosyanın sonlarına ekleyebilirsiniz) */
#alerji-talep-detay-icerik {
    overflow-y: auto; /* İçerik taşarsa kaydırma çubuğu çıkar */
    flex-grow: 1;     /* Esneyerek kalan alanı doldurur */
    padding-right: 10px; /* Kaydırma çubuğu için boşluk */
}

/* Alerji Kartları */
.alerji-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.alerji-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 5px solid #ffc107;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.alerji-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.alerji-card.alerji-hafif { border-left-color: #28a745; }
.alerji-card.alerji-orta { border-left-color: #ffc107; }
.alerji-card.alerji-agir { border-left-color: #dc3545; }

.alerji-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.alerji-card-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.sinif-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.alerji-card-body p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.siddet-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
}

.siddet-hafif { background: #d4edda; color: #155724; }
.siddet-orta { background: #fff3cd; color: #856404; }
.siddet-agir { background: #f8d7da; color: #721c24; }

.sayfa-aciklama {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.filtre-bolumu {
    margin-bottom: 1.5rem;
}

.filtre-bolumu input {
    width: 100%;
    max-width: 500px;
}
/* ============================================= */
/* === MESAJLAŞMA SİSTEMİ - ADMİN GÜNCELLEMESİ === */
/* ============================================= */

/* Admin'in mesajları için özel stil (Mavi, ortada) */
.mesaj-bubble.admin {
    display: flex;
    flex-direction: column;
    align-items: center; /* Admin mesajları ortalansın */
    margin-left: auto;
    margin-right: auto;
    max-width: 70%; /* Tam genişlik olmasın */
}

.mesaj-bubble.admin .mesaj-icerik {
    background-color: #d1ecf1; /* Açık mavi */
    color: #0c5460; /* Koyu mavi */
    border: 1px solid #bee5eb;
    text-align: center;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
}

/* Admin mesajı için zaman damgası */
.mesaj-bubble.admin .mesaj-zaman-damgasi {
    text-align: center;
    font-weight: 600;
    color: #0c5460;
    margin-top: 0.25rem;
    font-size: 0.75rem;
}

/* Konuşma listesinde Admin'in dahil olduğu konuşmaları belirtmek için */
.konusma-item.admin-katildi {
    border-left: 3px solid var(--tema-rengi);
}

.konusma-item.admin-katildi .konusma-ad::after {
    content: " (Admin Müdahil)";
    color: var(--tema-rengi);
    font-weight: bold;
    font-size: 0.8em;
    margin-left: 5px;
    background-color: rgba(var(--tema-rengi-rgb), 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Admin filtre alanı için iyileştirmeler */
#mesaj-admin-filtreleri {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mesaj-admin-filtreleri select {
    cursor: pointer;
    transition: all 0.2s ease;
}

#mesaj-admin-filtreleri select:hover {
    border-color: var(--tema-rengi);
}

#mesaj-admin-filtreleri select:focus {
    border-color: var(--tema-rengi);
    box-shadow: 0 0 0 3px rgba(var(--tema-rengi-rgb), 0.1);
    outline: none;
}

/* Admin müdahil konuşma bildirimi */
.konusma-item.admin-katildi .konusma-avatar {
    background: linear-gradient(135deg, var(--tema-rengi), #2196F3);
    color: white;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .mesaj-bubble.admin {
        max-width: 85%;
    }
    
    .konusma-item.admin-katildi .konusma-ad::after {
        display: block;
        margin-left: 0;
        margin-top: 2px;
        font-size: 0.7em;
    }
}

/* ============================================= */
/* STYLE.CSS GÜNCELLEMESİ SONU */
/* ============================================= */
/* ============================================= */
/* === ETKİNLİK ETKİLEŞİM STİLLERİ === */
/* Mevcut style.css dosyanızın SONUNA ekleyin */
/* ============================================= */

/* Etkinlik Kartı - Veli Modalı */
#etkinlik-modal-icerik .etkinlik-kart {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.etkinlik-etkilesim-bari {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
}

.etkilesim-buton-grup {
    display: flex;
    gap: 0.5rem;
}

.etkilesim-btn {
    background: none;
    border: 1px solid #ced4da;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--meb-koyu-gri);
    transition: all 0.2s ease;
}

.etkilesim-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.etkilesim-btn i {
    margin-right: 6px;
}

/* Beğenildiğinde aktif stil */
.etkilesim-btn.aktif.like {
    background-color: #d4edda;
    border-color: #28a745;
    color: #28a745;
}
.etkilesim-btn.aktif.like i {
    color: #28a745;
}

/* Beğenilmediğinde aktif stil */
.etkilesim-btn.aktif.dislike {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #dc3545;
}
.etkilesim-btn.aktif.dislike i {
    color: #dc3545;
}

.etkilesim-sayac-grup {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--meb-koyu-gri);
    align-items: center;
}

.etkinlik-yorum-alani {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px dashed #e0e0e0;
    margin-top: -1px;
}

.yorum-listesi {
    max-height: 250px;
    overflow-y: auto;
    padding: 0.5rem;
    margin-top: 1rem;
    background: #fdfdfd;
    border-radius: 8px;
}

.yorum-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.yorum-item:last-child {
    border-bottom: none;
}

.yorum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.yorum-header .yazar {
    font-weight: 700;
    color: var(--metin-rengi);
    font-size: 0.9rem;
}
.yorum-header .yazar i {
    margin-right: 5px;
    font-size: 0.8rem;
}
.yorum-header .yazar .role-ogretmen { 
    color: #c41e3a; 
}
.yorum-header .yazar .role-veli { 
    color: #2196F3; 
}

.yorum-header .zaman {
    font-size: 0.75rem;
    color: var(--meb-koyu-gri);
}

.yorum-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.yorum-yanit {
    padding-left: 1.5rem;
    border-left: 3px solid #e0e0e0;
    margin-top: 0.75rem;
    margin-left: 0.5rem;
    background-color: #f8f9fa;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-radius: 4px;
}

.yorum-yanitla-form {
    margin-top: 0.75rem;
    padding-left: 1rem;
}

.yorum-yanitla-form textarea {
    width: 100%;
    min-height: 50px;
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ced4da;
    resize: vertical;
}

.yorum-yaz-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.yorum-yaz-form textarea {
    flex: 1;
    width: 100%;
    min-height: 60px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

.yorum-yaz-form textarea:focus {
    outline: none;
    border-color: var(--tema-rengi);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.yorum-yaz-form button {
    width: auto;
    margin: 0;
    padding: 0 1.5rem;
    font-size: 0.9rem;
    align-self: flex-start;
    min-height: 60px;
}

/* Scrollbar stilleri */
.yorum-listesi::-webkit-scrollbar {
    width: 6px;
}

.yorum-listesi::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.yorum-listesi::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.yorum-listesi::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .etkinlik-etkilesim-bari {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .etkilesim-buton-grup {
        justify-content: center;
    }
    
    .etkilesim-sayac-grup {
        justify-content: center;
    }
    
    .yorum-yaz-form {
        flex-direction: column;
    }
    
    .yorum-yaz-form button {
        align-self: stretch;
        min-height: 44px;
    }
    
    .yorum-yanit {
        padding-left: 1rem;
        margin-left: 0;
    }
}

/* Animasyonlar */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yorum-item {
    animation: slideIn 0.3s ease-out;
}

/* Buton loading durumu */
.etkilesim-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================= */
/* ETKİNLİK ETKİLEŞİM STİLLERİ SONU */
/* ============================================= */

/* ============================================
   YORUM DÜZENLE/SİL AKSİYONLARI
   ============================================ */
.yorum-aksiyonlar {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.yorum-aksiyon-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.yorum-aksiyon-btn:hover {
    color: var(--meb-mavi);
}

.yorum-aksiyon-btn.yorum-sil-btn:hover {
    color: var(--kirmizi-renk);
}

.yorum-duzenle-form {
    margin-top: 0.5rem;
}

.yorum-item {
    position: relative;
}

.yorum-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.yorum-text {
    margin: 0.5rem 0;
}

/* ============================================= */
/* === ETKİNLİK YÖNETİMİ MEDYA ÖNİZLEME === */
/* ============================================= */
.foto-liste {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
    clear: both; /* Butonlardan sonraya kaydır */
}

.foto-liste-item {
    position: relative;
    width: 120px;
    height: 90px;
    border-radius: var(--kenar-yuvarlakligi);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    background-color: #f0f0f0;
}

/* Yükleniyor metni için stil */
.foto-liste-item span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 5px;
    font-size: 0.8rem;
    color: var(--meb-koyu-gri);
    text-align: center;
    line-height: 1.3;
}
.foto-liste-item span i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}


.media-thumbnail-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.foto-liste-item[data-type="video"] .media-thumbnail-preview {
    background-size: cover;
    background-position: center;
}

/* Video ikonu */
.foto-liste-item[data-type="video"] .media-thumbnail-preview::after {
    content: '\f144'; /* fa-play-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    pointer-events: none;
}

.foto-liste-item .foto-sil-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(220, 53, 69, 0.85); /* Tema kırmızısı */
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 1rem;
    line-height: 24px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.8;
    z-index: 10;
}

.foto-liste-item:hover .foto-sil-btn {
    opacity: 1;
    transform: scale(1.1);
}

/* ============================================= */
/* === MESAJ SİLME BUTONU STİLLERİ === */
/* ============================================= */
.mesaj-bubble {
    position: relative;
}

.mesaj-sil-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mesaj-bubble:hover .mesaj-sil-btn {
    opacity: 1;
}

.mesaj-sil-btn:hover {
    background-color: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.mesaj-bubble.gelen .mesaj-sil-btn {
    right: auto;
    left: -8px;
}

/* ============================================= */
/* === KONUŞMA SİLME BUTONU STİLLERİ === */
/* ============================================= */
.konusma-item {
    position: relative;
}

.konusma-item-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    cursor: pointer;
}

.konusma-sil-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.konusma-item:hover .konusma-sil-btn {
    opacity: 1;
}

.konusma-sil-btn:hover {
    background-color: rgba(220, 53, 69, 1);
    transform: translateY(-50%) scale(1.15);
}

/* ============================================= */
/* === MESAJ MEDYA STİLLERİ === */
/* ============================================= */

/* Medya ekleme alanı */
.mesaj-medya-onizleme {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.mesaj-medya-onizleme-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e9ecef;
}

.mesaj-medya-onizleme-item img,
.mesaj-medya-onizleme-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.mesaj-medya-sil-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mesaj-medya-sil-btn:hover {
    background-color: rgba(220, 53, 69, 1);
}

/* Mesaj gönderme alanı */
.mesaj-gonderme-alani {
    gap: 0.5rem;
}

.mesaj-gonderme-alani .btn-ikincil {
    min-width: auto;
    padding: 0.75rem 1rem;
    background-color: #6c757d;
}

.mesaj-gonderme-alani .btn-ikincil:hover {
    background-color: #5a6268;
}

/* Mesajlardaki medya */
.mesaj-medya-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 8px;
    max-width: 100%;
}

.mesaj-medya-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
    aspect-ratio: 1;
}

.mesaj-medya-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.mesaj-medya-item img:hover {
    transform: scale(1.05);
}

.mesaj-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tek resim varsa daha büyük göster */
.mesaj-medya-grid:has(> .mesaj-medya-item:only-child) .mesaj-medya-item {
    max-width: 300px;
}

/* İki resim varsa */
.mesaj-medya-grid:has(> .mesaj-medya-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

/* Medya lightbox */
.media-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.media-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.media-lightbox-content img,
.media-lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.media-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background-color: transparent;
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s;
}

.media-lightbox-close:hover {
    transform: scale(1.1);
}

/* ============================================= */
/* === ADMİN MESAJ STİLLERİ === */
/* ============================================= */

/* Admin mesajı için özel gradient arka plan */
.mesaj-bubble.admin-mesaj.gelen .mesaj-icerik {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

/* Admin badge (gönderen bilgisi) */
.admin-mesaj-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #667eea;
    background-color: #e8eaf6;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-bottom: 0.3rem;
}

.admin-mesaj-badge i {
    font-size: 0.7rem;
}

/* Admin gönderen mesaj (giden) */
.mesaj-bubble.admin-mesaj.giden .mesaj-icerik {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ============================================= */
/* === MESAJLAR BUTONU STİLLERİ === */
/* ============================================= */

.btn-mesaj-ozel {
    position: relative;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
    margin-top: 1.5rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.btn-mesaj-ozel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 65, 108, 0.6);
}

.btn-mesaj-ozel:active {
    transform: translateY(0);
}

.btn-mesaj-ozel i {
    font-size: 1.3rem;
}

/* Mesaj bildirim badge */
.mesaj-bildirim-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 65, 108, 0.6);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 65, 108, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 65, 108, 0.8);
    }
}

/* Öğretmen dashboard butonları */
#teacher-dashboard-buttons {
    display: grid;
    gap: 1rem;
}

#teacher-dashboard-buttons .btn-mesaj-ozel {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-mesaj-ozel {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .mesaj-bildirim-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        min-width: 20px;
        height: 20px;
    }
}

/* ============================================= */
/* === GERİ BUTONU VE SAYFA BAŞLIK STİLLERİ === */
/* ============================================= */

.sayfa-baslik-satir {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sayfa-baslik-satir h1 {
    margin: 0;
    flex: 1;
}

.geri-buton {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.geri-buton:hover {
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.geri-buton:active {
    transform: translateX(-1px);
}

.geri-buton i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .sayfa-baslik-satir {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .geri-buton {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}


/* ============================================= */
/*   ÖDEME YÖNLENDİRME SİSTEMİ CSS              */
/* ============================================= */

/* Kritik Uyarı Animasyonları */
@keyframes pulse-warning {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    }
}

@keyframes shake {
    0%, 100% { 
        transform: translateX(0) rotate(0deg); 
    }
    25% { 
        transform: translateX(-5px) rotate(-5deg); 
    }
    75% { 
        transform: translateX(5px) rotate(5deg); 
    }
}

/* Ödeme Kartı */
.odeme-karti {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.odeme-karti:hover {
    border-color: var(--tema-rengi);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
}

.odeme-karti.pasif {
    opacity: 0.6;
    background: #f8f9fa;
}

/* IBAN Kutusu */
.iban-kutu {
    background: #f8f9fa;
    border: 2px dashed var(--tema-rengi);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iban-kutu:hover {
    background: #e9ecef;
    border-color: #c82333;
    transform: scale(1.02);
}

.iban-kutu:active {
    transform: scale(0.98);
}

/* Kopyalandı Mesajı */
.kopyalandi-mesaj {
    position: absolute;
    top: -30px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
    animation: fadeInOut 2s ease-in-out;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
    z-index: 10;
}

@keyframes fadeInOut {
    0%, 100% { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    20%, 80% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Kritik Uyarı Kutusu */
.odeme-kritik-uyari {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: pulse-warning 2s ease-in-out infinite;
}

.odeme-kritik-uyari i {
    animation: shake 0.5s ease-in-out infinite;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .odeme-karti {
        padding: 1rem;
    }
    
    .iban-kutu {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .odeme-kritik-uyari {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .kopyalandi-mesaj {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Admin Ödeme Kartı Düzenleme */
.odeme-karti .btn-kucuk {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Ödeme Tipi İkonları */
.odeme-tip-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

/* Ödeme Bilgi Kutuları */
.odeme-bilgi-kutu {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.odeme-bilgi-satir {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.odeme-bilgi-satir:last-child {
    margin-bottom: 0;
}

/* Tutar Badge */
.tutar-badge {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.tutar-badge strong {
    color: #856404;
}

/* Ek Bilgi Kutusu */
.ek-bilgi-kutu {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Pasif Durum Badge */
.pasif-durum-badge {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff3cd;
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: center;
}


/* Ödeme Yönlendirme Butonu - Veli Anons Sayfası */
.odeme-yonlendirme-kutu {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin: 1.5rem 0;
    text-align: center;
    transition: all 0.3s ease;
    animation: gentle-pulse 3s ease-in-out infinite;
}

.odeme-yonlendirme-kutu:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

@keyframes gentle-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }
}

.odeme-yonlendirme-kutu .btn {
    transition: all 0.3s ease;
}

.odeme-yonlendirme-kutu .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


/* Para İkonu Bounce Animasyonu */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* Logo/Okul Adı - Ana Sayfaya Dön */
#header-logo-container {
    transition: all 0.3s ease;
}

#header-logo-container:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

#header-logo-container:active {
    transform: scale(0.98);
}


/* Veli için Mesajlar Sayfası Mor Geri Butonu Gizle */
#mesajlar-geri-btn.veli-only-item {
    display: none !important;
}


/* Mobil Mesajlaşma - Kompakt Görünüm */
@media (max-width: 768px) {
    /* Konuşma listesi başlığını gizle */
    .konusma-liste-baslik {
        display: none !important;
    }
    
    /* Arama kutusunu gizle */
    .arama-kutusu {
        display: none !important;
    }
    
    /* Konuşma listesi yüksekliğini azalt - sadece konuşmalar */
    .konusma-listesi {
        max-height: 40vh !important; /* 50vh → 40vh */
    }
    
    /* Mesaj alanı yüksekliğini artır */
    .mesaj-alani {
        min-height: 60vh !important; /* 50vh → 60vh */
    }
    
    /* Konuşma liste scrollable alanını tam yükseklik yap */
    .konusma-liste-scrollable {
        height: 100% !important;
        max-height: 40vh !important;
    }
}


/* Desktop'ta Hamburger Butonunu Gizle (Admin/Öğretmen için) */
@media (min-width: 769px) {
    /* Sidebar görünürken hamburger gizli */
    body.sidebar-aktif #hamburger-menu-btn {
        display: none;
    }
}


/* Ödeme Geçmişi Tablosu - Mobil Responsive */
@media (max-width: 768px) {
    #odeme-gecmisi-tablosu {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .odeme-gecmisi-tablosu {
        min-width: 800px; /* Yatay scroll için minimum genişlik */
        font-size: 0.85rem;
    }
    
    .odeme-gecmisi-tablosu th,
    .odeme-gecmisi-tablosu td {
        padding: 0.75rem 0.5rem;
    }
    
    .odeme-gecmisi-tablosu .eylemler-hucresi .btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Tablo container için scroll indicator */
.tablo-konteyner {
    position: relative;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 70vh; /* Mobilde daha fazla alan */
    -webkit-overflow-scrolling: touch; /* iOS için smooth scroll */
}

.tablo-konteyner::after {
content: none; /* "→ Kaydır" yazısını buradan kaldırdık */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: #6c757d;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (max-width: 768px) {
    .tablo-konteyner::after {
        opacity: 1;
    }
}


/* Mesaj Satır ve Avatar Stilleri */
.mesaj-satir {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.mesaj-satir.giden {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.mesaj-satir.gelen {
    flex-direction: row;
    justify-content: flex-start;
}

.mesaj-avatar {
    flex-shrink: 0;
    margin-bottom: 0.25rem;
}

.mesaj-satir .mesaj-bubble {
    margin: 0;
}

/* ==========================================
   Aidat Ödemeleri Submenu Stilleri 
   ========================================== */

/* Submenu temel stilleri */
.menu-item-with-submenu .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 1.5rem;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Submenu açıldığında */
.menu-item-with-submenu.aktif .submenu {
    max-height: 500px;
    transition: max-height 0.3s ease-in;
}

/* Submenu linkleri */
.submenu li {
    list-style: none;
}

.submenu li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.submenu li a:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--tema-rengi, #dc3545);
    padding-left: 1.5rem;
}

.submenu li a i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Submenu ok ikonu animasyonu */
.submenu-arrow {
    transition: transform 0.3s ease;
    float: right;
    margin-left: auto;
    font-size: 0.8rem;
}

/* Ana menü item'i için cursor */
.menu-item-with-submenu > a {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Submenu badge stilleri */
.submenu .sidebar-badge {
    margin-left: auto;
    background-color: var(--tema-rengi, #dc3545);
    color: white;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* ============================================================================
   🍽️ MODERN YEMEK MENÜSÜ STİLLERİ
   ============================================================================ */

/* Admin Menü Kartları Grid */
.menu-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Menü Düzenleme Kartı */
.menu-edit-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
}

.menu-edit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

/* Hafta sonu kartları */
.menu-edit-card.weekend-card {
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
    border-color: #ffd700;
}

/* Kart Header */
.menu-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.weekend-badge {
    background: rgba(255,255,255,0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Kart Body */
.menu-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Input Grubu */
.menu-input-group label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.menu-input-group label i {
    margin-right: 0.5rem;
    color: #667eea;
}

.menu-input-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.menu-input-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.menu-input-group textarea::placeholder {
    color: #bbb;
}

/* Menü öğün kartları hover efekti */
#gunluk-yemek-menusu > div > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease;
}

/* Aylık menü kartları responsive */
#aylik-menu-listesi > div > div {
    transition: all 0.3s ease;
}

#aylik-menu-listesi > div > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

/* Admin menü formu modernize */
#menu-form-konteyner {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menü tablosu stilleri - Eski tablo için (backward compatibility) */
.menu-form-tablosu {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-form-tablosu thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.menu-form-tablosu thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: none;
}

.menu-form-tablosu tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.menu-form-tablosu tbody tr:hover {
    background-color: #f8f9fa;
}

.menu-form-tablosu tbody tr:last-child {
    border-bottom: none;
}

.menu-form-tablosu tbody td {
    padding: 0.75rem;
    vertical-align: top;
}

.menu-form-tablosu tbody td:first-child {
    font-weight: 600;
    color: #667eea;
    text-align: center;
    background: #f8f9fa;
    width: 60px;
}

.menu-form-tablosu textarea {
    width: 100%;
    min-height: 60px;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.menu-form-tablosu textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Tablo container */
.tablo-konteyner {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Export dropdown hover */
.export-option:hover {
    background: #f5f5f5;
}

/* Responsive menü kartları */
@media (max-width: 768px) {
    .menu-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    #gunluk-yemek-menusu > div {
        gap: 0.75rem !important;
    }
    
    #aylik-menu-listesi > div > div {
        margin-bottom: 0.75rem !important;
    }
    
    .menu-form-tablosu {
        font-size: 0.85rem;
    }
    
    .menu-form-tablosu textarea {
        min-height: 50px;
        font-size: 0.85rem;
    }
    
    .menu-edit-card {
        padding: 1rem !important;
    }
    
    .menu-card-header {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .menu-card-body {
        padding: 1rem !important;
    }
    
    .monthly-menu-card {
        padding: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .deluxe-meal-card {
        padding: 1.25rem !important;
    }
}

/* Veli Paneli - Deluxe Meal Cards */
.deluxe-meal-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Monthly Menu Cards */
.monthly-menu-card {
    transition: all 0.3s ease;
}

.monthly-menu-card.today-card {
    animation: todayPulse 2s ease-in-out infinite;
}

@keyframes todayPulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    }
}

.monthly-menu-card.holiday-card {
    animation: holidayFloat 3s ease-in-out infinite;
}

@keyframes holidayFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Smooth scroll */
#aylik-menu-listesi {
    scroll-behavior: smooth;
}

/* Loading overlay animasyonu */
@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modern alert stilleri - menü için özel */
.modern-alert-menu {
    animation: slideInFromTop 0.5s ease;
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Excel buton hover efekti */
#toplu-menu-kayit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#toplu-menu-kayit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#toplu-menu-kayit-btn:hover::before {
    width: 300px;
    height: 300px;
}

#toplu-menu-kayit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Menü ay seçimi input stili */
#menu-ay-secimi {
    transition: all 0.3s ease;
}

#menu-ay-secimi:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none;
}

/* Bilgilendirme kutusu animasyonu */
.admin-view > div:nth-child(2) {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Kaydet butonu pulse animasyonu */
#yemek-menusu-kaydet-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

#yemek-menusu-kaydet-btn:hover {
    animation: none;
    transform: scale(1.05);
    transition: transform 0.2s ease;
}


/* Geri butonu - Masaüstünde kesinlikle gizle */
@media (min-width: 769px) {
    #geri-don-btn {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Mobilde konuşma liste başlığı (Yeni buton dahil) her zaman görünür */
@media (max-width: 992px) {
    .konusma-liste-baslik {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1rem !important;
        border-bottom: 1px solid #e9ecef !important;
        background-color: #f8f9fa !important;
    }
    
    #yeni-konusma-btn {
        display: inline-block !important;
        z-index: 10 !important;
    }
}

/* ============================================ */
/* MOBİL GERİ BUTON - BASIT ÇÖZÜM             */
/* ============================================ */

/* Mobil-only elemanlar - varsayılan gizli */
.mobil-only-item {
    display: none !important;
}

/* Mobilde göster */
@media (max-width: 992px) {
    .mobil-only-item {
        display: inline-flex !important;
    }
}

/* Mesaj başlığı flex düzeni */
.mesaj-baslik {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Geri buton stil */
.mesaj-baslik .geri-buton {
    flex-shrink: 0;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
}

/* Mobil layout */
@media (max-width: 992px) {
    .mesaj-konteyner {
        grid-template-columns: 1fr;
    }
    
    .konusma-listesi {
        width: 100%;
        border-right: none;
    }
    
    .konusma-listesi.mobil-gizli {
        display: none !important;
    }
    
    .mesaj-alani {
        width: 100%;
        display: none;
    }
    
    .mesaj-alani.mobil-aktif {
        display: flex !important;
    }
}

/* ============================================ */
/* HAMBURGER MENÜ ÖZEL STİL - KIRMIZI ORTA    */
/* ============================================ */

/* Hamburger buton - biraz daha küçük */
.hamburger-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.65rem 0.9rem !important;
    border-radius: 10px !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    cursor: pointer;
    line-height: 1 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.35) !important;
    position: relative;
    overflow: hidden;
}

.hamburger-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hamburger-btn:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 5px 18px rgba(220, 53, 69, 0.45) !important;
    background: linear-gradient(135deg, #e74c3c 0%, #dc3545 100%) !important;
}

.hamburger-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hamburger-btn:active {
    transform: translateY(0) scale(1) !important;
}

.hamburger-btn.active {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%) !important;
    transform: rotate(90deg) !important;
}

/* Dropdown menü - KÜÇÜK BOYUT KIRMIZI TEMA */
.menu-container .menu-dropdown {
    min-width: 250px !important;
    max-width: 300px !important;
    padding: 0.6rem 0 !important;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%) !important;
    border: 1px solid rgba(220, 53, 69, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.2) !important;
}

/* Menü linkleri - KÜÇÜK */
.menu-container .menu-dropdown a {
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    margin: 3px 8px !important;
    gap: 10px !important;
}

/* İkonlar - KIRMIZI KÜÇÜK */
.menu-container .menu-dropdown a i {
    font-size: 1rem !important;
    color: #dc3545 !important;
}

.menu-container .menu-dropdown a:hover i {
    color: #c82333 !important;
    transform: scale(1.15) rotate(8deg) !important;
}

/* Hover efekti - KIRMIZI */
.menu-container .menu-dropdown a:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.12) 0%, rgba(200, 35, 51, 0.12) 100%) !important;
}

.menu-container .menu-dropdown a::before {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    width: 3px !important;
}

/* Ayraç - KIRMIZI */
.menu-container .menu-dropdown .menu-ayrac {
    background: linear-gradient(90deg, transparent 0%, rgba(220, 53, 69, 0.3) 50%, transparent 100%) !important;
    height: 1px !important;
    margin: 10px 14px !important;
}

/* Scrollbar - KIRMIZI */
.menu-container .menu-dropdown::-webkit-scrollbar {
    width: 6px !important;
}

.menu-container .menu-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #dc3545 0%, #c82333 100%) !important;
}

.menu-container .menu-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c82333 0%, #bd2130 100%) !important;
}

/* Geri buton - eski tema rengine döndür */
#geri-don-btn {
    background: var(--tema-rengi) !important;
    font-size: 1rem !important;
    padding: 0.6rem 0.9rem !important;
    border-radius: var(--kenar-yuvarlakligi) !important;
}

/* ============================================ */
/* MOBİL FORM VE INPUT DÜZELTMELERİ            */
/* ============================================ */

@media (max-width: 768px) {
    /* Form grupları mobilde daha kompakt */
    .form-grup {
        margin-bottom: 1rem !important;
    }
    
    /* Input alanları mobilde düzgün görünsün */
    input[type="text"], 
    input[type="password"], 
    input[type="tel"], 
    input[type="date"], 
    input[type="number"], 
    input[type="time"], 
    input[type="month"], 
    input[type="email"],
    select, 
    textarea {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem !important;
        font-size: 16px !important; /* iOS zoom önleme */
        border: 1px solid #ced4da !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }
    
    /* Textarea mobilde */
    textarea {
        min-height: 100px !important;
        resize: vertical !important;
    }
    
    /* Label mobilde */
    label {
        font-size: 0.9rem !important;
        margin-bottom: 0.4rem !important;
        display: block !important;
    }
    
    /* Select mobilde ok ikonu */
    select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 0.75rem center !important;
        background-size: 12px !important;
        padding-right: 2.5rem !important;
    }
    
    /* Placeholder text */
    input::placeholder,
    textarea::placeholder {
        color: #999 !important;
        opacity: 1 !important;
        font-size: 0.95rem !important;
    }
    
    /* Focus durumu mobilde */
    input:focus, 
    select:focus, 
    textarea:focus {
        outline: none !important;
        border-color: #dc3545 !important;
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
    }
    
    /* Disabled input */
    input:disabled,
    select:disabled,
    textarea:disabled {
        background-color: #f5f5f5 !important;
        cursor: not-allowed !important;
        opacity: 0.6 !important;
    }
    
    /* Form sutun grup mobilde */
    .form-sutun-grup {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .form-sutun {
        width: 100% !important;
        flex: none !important;
    }
    
    /* Butonlar mobilde */
    .btn {
        padding: 0.9rem !important;
        font-size: 1rem !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
    }
    
    /* Sayfa padding */
    .sayfa {
        padding: 1rem !important;
    }
    
    /* Kartlar mobilde */
    .kart {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Çok küçük ekranlar için ekstra düzeltmeler */
@media (max-width: 480px) {
    input[type="text"], 
    input[type="password"], 
    input[type="tel"], 
    input[type="date"], 
    input[type="number"], 
    input[type="time"], 
    input[type="month"], 
    input[type="email"],
    select, 
    textarea {
        padding: 0.65rem !important;
        font-size: 16px !important;
    }
    
    .btn {
        padding: 0.8rem !important;
        font-size: 0.95rem !important;
    }
    
    .sayfa {
        padding: 0.75rem !important;
    }
}

/* Tablo içindeki butonlar mobilde küçük kalsın */
@media (max-width: 768px) {
    /* Tablo içindeki butonları küçült */
    table .btn,
    table .btn-sm {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.75rem !important;
        width: auto !important;
        margin: 0.15rem !important;
        min-width: auto !important;
    }
    
    /* Özel buton tipleri */
    table .btn-yesil,
    table .btn-kirmizi,
    table .btn-mavi,
    table .btn-sari,
    table .btn-gri,
    table .btn-birincil,
    table .btn-ikincil {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.75rem !important;
        width: auto !important;
        margin: 0.15rem !important;
    }
    
    /* Eylemler hücresi */
    .eylemler-hucresi {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
        justify-content: center !important;
    }
    
    .eylemler-hucresi .btn,
    .eylemler-hucresi .btn-sm {
        flex: 0 0 auto !important;
        padding: 0.35rem 0.6rem !important;
        font-size: 0.75rem !important;
        width: auto !important;
        margin: 0 !important;
    }
    
    /* Tablo genel düzenleme */
    table {
        font-size: 0.85rem !important;
    }
    
    table th,
    table td {
        padding: 0.5rem 0.3rem !important;
    }
}

/* Çok küçük ekranlar için daha da küçült */
@media (max-width: 480px) {
    table .btn,
    table .btn-sm,
    .eylemler-hucresi .btn,
    .eylemler-hucresi .btn-sm {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    table {
        font-size: 0.8rem !important;
    }
    
    table th,
    table td {
        padding: 0.4rem 0.25rem !important;
    }
}

/* ============================================ */
/* HAMBURGER MENÜ BAŞLIK VE ALT MENÜLER        */
/* ============================================ */

/* Menü başlık stili */
.menu-container .menu-dropdown .menu-baslik {
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #dc3545 !important;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(200, 35, 51, 0.08) 100%) !important;
    border-left: 4px solid #dc3545 !important;
    margin: 8px 10px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: default !important;
}

.menu-container .menu-dropdown .menu-baslik i {
    font-size: 1rem !important;
    color: #dc3545 !important;
}

/* Alt menü linkleri - girintili */
.menu-container .menu-dropdown .menu-alt-link {
    padding-left: 40px !important;
    font-size: 0.92rem !important;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.03) 0%, transparent 100%) !important;
}

.menu-container .menu-dropdown .menu-alt-link i {
    font-size: 0.95rem !important;
    opacity: 0.8 !important;
}

.menu-container .menu-dropdown .menu-alt-link:hover {
    padding-left: 44px !important;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.12) 0%, rgba(200, 35, 51, 0.12) 100%) !important;
}

/* ============================================ */
/* MOBİL TABLO SCROLL İPUCU                     */
/* ============================================ */

@media (max-width: 768px) {
    /* Tablo konteynere HIZLI ve AKICI scroll */
    .tablo-konteyner {
        position: relative;
        overflow-x: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
        touch-action: pan-x pan-y; /* Touch aktif */
        scroll-behavior: auto; /* Hızlı scroll */
        overscroll-behavior-x: contain; /* Bounce efekti azalt */
    }
    
    /* Scroll bar'ı gizle ama scroll çalışsın */
    .tablo-konteyner::-webkit-scrollbar {
        display: none;
    }
    
    .tablo-konteyner {
        -ms-overflow-style: none;  /* IE ve Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    /* İlk dokunuşta gösterilecek ipucu */
    .tablo-konteyner::before {
        content: '← Sola Kaydırın →';
        position: sticky;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(102, 126, 234, 0.95);
        color: white;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 0.5rem;
        border-radius: 8px 8px 0 0;
        z-index: 15;
        pointer-events: none;
        animation: scrollHint 3s ease-in-out;
    }
    
    @keyframes scrollHint {
        0%, 30% { opacity: 1; }
        70%, 100% { opacity: 0; }
    }
    
    /* Scroll yapıldıktan sonra ipucu kaybolsun */
    .tablo-konteyner.scrolled::before {
        display: none;
    }
    
    /* Öğrenci tablosu için özel ayarlar */
    #ogrenci-tablosu {
        min-width: 700px; /* Mobilde daha geniş */
    }
    
    /* Tablo hücrelerini daralt */
    #ogrenci-tablosu th,
    #ogrenci-tablosu td {
        padding: 0.6rem 0.4rem !important;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* İşlemler sütunu sabit kalsın (sağda) */
    #ogrenci-tablosu .eylemler-hucresi {
        position: sticky;
        right: 0;
        z-index: 5;
    }
    
    /* Başlık satırı işlemler hücresi */
    #ogrenci-tablosu thead .eylemler-hucresi {
        background: var(--meb-acik-gri) !important;
        box-shadow: -2px 0 4px rgba(0,0,0,0.1);
    }
    
    /* Body satırları işlemler hücresi - satır rengini al */
    #ogrenci-tablosu tbody tr .eylemler-hucresi {
        background: inherit !important; /* Satırın rengini al */
        box-shadow: -2px 0 4px rgba(0,0,0,0.1);
    }
    
    /* Ödenmişler için yeşil arka plan */
    #ogrenci-tablosu tbody tr.satir-odendi .eylemler-hucresi {
        background: var(--yesil-renk-acik) !important;
    }
    
    /* Gecikmiş olanlar için kırmızı arka plan */
    #ogrenci-tablosu tbody tr.satir-gecikti .eylemler-hucresi {
        background: var(--acik-kirmizi-arka-plan) !important;
    }
    
    /* Normal satırlar için beyaz arka plan */
    #ogrenci-tablosu tbody tr:not(.satir-odendi):not(.satir-gecikti) .eylemler-hucresi {
        background: white !important;
    }
    
    /* Hover efekti için arka plan */
    #ogrenci-tablosu tbody tr:hover .eylemler-hucresi {
        background: #f8f9fa !important;
    }
    
    #ogrenci-tablosu tbody tr.satir-odendi:hover .eylemler-hucresi {
        background: #d4f4dd !important;
    }
    
    #ogrenci-tablosu tbody tr.satir-gecikti:hover .eylemler-hucresi {
        background: #ffe6e6 !important;
    }
}

/* ============================================ */
/* ÖĞRETMEN ALERJİ LİSTESİ - YENİ TASARIM     */
/* ============================================ */

.teacher-alerji-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.teacher-alerji-kart {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.teacher-alerji-kart:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.teacher-alerji-kart.agir-alerji {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.teacher-alerji-kart-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.teacher-alerji-foto {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.teacher-alerji-kart.agir-alerji .teacher-alerji-foto {
    border-color: #dc3545;
}

.teacher-alerji-kart-bilgi {
    flex: 1;
}

.teacher-alerji-kart-bilgi h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
}

.teacher-alerji-sinif {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.teacher-alerji-sinif i {
    color: #667eea;
}

.agir-alerji-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.teacher-alerji-liste-baslik {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.25rem 0 0.75rem 0;
    color: #555;
    font-size: 1.05rem;
    font-weight: 600;
}

.teacher-alerji-liste-baslik i {
    color: #667eea;
}

.teacher-alerji-item {
    background: #f8f9fa;
    border-left: 4px solid #4caf50;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.teacher-alerji-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.teacher-alerji-item.severity-hafif {
    border-left-color: #4caf50;
}

.teacher-alerji-item.severity-orta {
    border-left-color: #ff9800;
}

.teacher-alerji-item.severity-agir {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.teacher-alerji-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.teacher-alerji-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.teacher-alerji-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
}

.teacher-alerji-badge.hafif {
    background: #4caf50;
}

.teacher-alerji-badge.orta {
    background: #ff9800;
}

.teacher-alerji-badge.agir {
    background: #dc3545;
}

.teacher-alerji-description {
    color: #666;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

.teacher-alerji-detay-btn {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.9rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.teacher-alerji-detay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.teacher-alerji-detay-btn:active {
    transform: translateY(0);
}

/* Boş mesaj kutusu */
.bos-mesaj-kutusu {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    margin-top: 2rem;
}

.bos-mesaj-kutusu i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.bos-mesaj-kutusu h3 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-size: 1.5rem;
}

.bos-mesaj-kutusu p {
    margin: 0;
    color: #6c757d;
    font-size: 1rem;
}

/* Arama bölümü */
.arama-bolumu {
    margin: 2rem 0 1rem 0;
}

.arama-kutusu {
    position: relative;
    max-width: 600px;
}

.arama-kutusu i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

.arama-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.arama-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Yüklenme mesajı */
.yuklenme-mesaji {
    text-align: center;
    padding: 3rem;
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 600;
}

.yuklenme-mesaji i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Sayfa başlık */
.sayfa-baslik {
    margin-bottom: 1rem;
}

.sayfa-baslik h1 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sayfa-aciklama {
    margin: 0;
    color: #7f8c8d;
    font-size: 1.05rem;
}

/* Mobil responsive */
@media (max-width: 768px) {
    .teacher-alerji-liste {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .teacher-alerji-kart {
        padding: 1.25rem;
    }
    
    .teacher-alerji-foto {
        width: 70px;
        height: 70px;
    }
    
    .teacher-alerji-kart-bilgi h3 {
        font-size: 1.15rem;
    }
    
    .agir-alerji-badge {
        position: static;
        margin-top: 0.75rem;
        width: fit-content;
    }
}

/* Dark mode desteği (opsiyonel) */
@media (prefers-color-scheme: dark) {
    .teacher-alerji-kart {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .teacher-alerji-kart-bilgi h3 {
        color: #e2e8f0;
    }
    
    .teacher-alerji-item {
        background: #1a202c;
        color: #e2e8f0;
    }
}

/* ============================================
   KAYITLI ÖĞRENCİLER - MOBİL KART GÖRÜNÜMÜ
   ============================================ */
@media (max-width: 768px) {
    /* Masaüstü tablo görünümünü gizle */
    #ogrenci-tablosu {
        display: none;
    }
    
    /* Mobil kart konteyneri */
    #ogrenci-mobile-cards {
        display: block !important;
    }
    
    .ogrenci-mobile-card {
        background: white;
        border-radius: 12px;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-left: 4px solid #667eea;
    }
    
    .ogrenci-mobile-card.gecikti {
        border-left-color: #f44336;
        background: #ffebee !important;
    }
    
    .ogrenci-mobile-card.odendi {
        border-left-color: #4caf50;
        background: #e8f5e9 !important;
    }
    
    .ogrenci-mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .ogrenci-mobile-card-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
        flex: 1;
    }
    
    .ogrenci-mobile-card-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        font-weight: 500;
        white-space: nowrap;
        margin-left: 0.5rem;
    }
    
    .ogrenci-mobile-card-badge.kuluplu {
        background: #e3f2fd;
        color: #1976d2;
    }
    
    .ogrenci-mobile-card-badge.kulüpsüz {
        background: #f5f5f5;
        color: #666;
    }
    
    .ogrenci-mobile-card-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }
    
    .ogrenci-mobile-card-info-item {
        display: flex;
        align-items: center;
        color: #666;
    }
    
    .ogrenci-mobile-card-info-item i {
        margin-right: 0.5rem;
        color: #667eea;
        width: 16px;
    }
    
    .ogrenci-mobile-card-actions {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .ogrenci-mobile-card-actions .btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* Sınıf filtre butonları mobilde küçük */
    .sinif-filtre-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .sinif-filtre-btn i {
        font-size: 0.85rem;
    }
    
    /* Sınıf listesi mobilde tam yükseklik */
    ul#kayitli-siniflar-listesi.anons-listesi.siniflar-listesi,
    .anons-listesi.siniflar-listesi {
        max-height: 500px !important;
        min-height: 250px !important;
    }

    .ogrenci-mobile-card-actions .btn i {
        margin-right: 0.25rem;
    }
}

/* Dark mode için mobil kartlar */
.dark-mode .ogrenci-mobile-card {
    background: #1a202c;
    color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dark-mode .ogrenci-mobile-card.gecikti {
    background: #3d1f1f !important;
}

.dark-mode .ogrenci-mobile-card.odendi {
    background: #1f3d2a !important;
}

.dark-mode .ogrenci-mobile-card-header {
    border-bottom-color: #2d3748;
}

.dark-mode .ogrenci-mobile-card-title {
    color: #e2e8f0;
}

.dark-mode .ogrenci-mobile-card-info-item {
    color: #a0aec0;
}

.dark-mode .ogrenci-mobile-card-badge.kuluplu {
    background: #1e3a5f;
    color: #90caf9;
}

.dark-mode .ogrenci-mobile-card-badge.kulüpsüz {
    background: #2d3748;
    color: #a0aec0;
}

/* ============================================================================
   STAJYER VE DİĞER PERSONEL - HAMBURGER MENÜ GİZLE
   ============================================================================ */

/* Stajyer ve Diğer Personel için hamburger menüyü tamamen gizle */
body.stajyer-personel #hamburger-menu-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.stajyer-personel .menu-dropdown {
    display: none !important;
    visibility: hidden !important;
}

/* Mobilde de gizle */
@media (max-width: 992px) {
    body.stajyer-personel #hamburger-menu-btn {
        display: none !important;
        visibility: hidden !important;
    }
}

/* ============================================================================
   HAZIR FORMLAR SAYFASI
   ============================================================================ */

.hazir-formlar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-kart {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.form-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.form-kart.color-blue { border-left-color: #007bff; }
.form-kart.color-green { border-left-color: #28a745; }
.form-kart.color-orange { border-left-color: #fd7e14; }
.form-kart.color-purple { border-left-color: #6f42c1; }
.form-kart.color-red { border-left-color: #dc3545; }
.form-kart.color-teal { border-left-color: #17a2b8; }

.form-kart-ikon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.form-kart.color-blue .form-kart-ikon { background: linear-gradient(135deg, #007bff, #0056b3); }
.form-kart.color-green .form-kart-ikon { background: linear-gradient(135deg, #28a745, #19692c); }
.form-kart.color-orange .form-kart-ikon { background: linear-gradient(135deg, #fd7e14, #c35f08); }
.form-kart.color-purple .form-kart-ikon { background: linear-gradient(135deg, #6f42c1, #4a2d82); }
.form-kart.color-red .form-kart-ikon { background: linear-gradient(135deg, #dc3545, #c82333); }
.form-kart.color-teal .form-kart-ikon { background: linear-gradient(135deg, #17a2b8, #0f6674); }

.form-kart-baslik {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.form-kart-aciklama {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.form-kart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.form-kart-link-btn {
    background: transparent;
    border: none;
    color: #007bff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-kart-link-btn:hover {
    background: #e7f3ff;
}

.form-kart-sil-btn {
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: none; /* Sadece super admin'de göster */
}

.form-kart-sil-btn:hover {
    background: #f8d7da;
}

/* Mobil responsive */
@media (max-width: 768px) {
    .hazir-formlar-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-kart {
        padding: 1.25rem;
    }
    
    .form-kart-baslik {
        font-size: 1rem;
    }
}

.form-kart-duzenle-btn:hover {
    background: #e7f3ff !important;
}

/* Sürükle-Bırak Sıralama Stilleri */
.form-kart-surukle {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 6px;
    cursor: move;
    color: #007bff;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.form-kart-surukle:hover {
    background: rgba(0, 123, 255, 0.2);
    transform: scale(1.1);
}

.form-kart {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.form-kart-ghost {
    opacity: 0.4;
    background: #f0f8ff;
}

.sortable-drag {
    opacity: 0.8;
    transform: rotate(2deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    cursor: grabbing !important;
}

/* Mobil için sürükleme alanı genişlet */
@media (max-width: 768px) {
    .form-kart-surukle {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
}
/* ============================================================================ */
/* 🔷 NFC KART YÖNETİM SİSTEMİ - CSS STİLLERİ */
/* style.css dosyasının sonuna ekleyin */
/* ============================================================================ */

/* ============================================================================ */
/* NFC KART TANIMLAMA SAYFASI */
/* ============================================================================ */

/* Bağlantı Durumu Kartı */
.nfc-status-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    flex-wrap: wrap;
}

.nfc-status-card.bagli {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.3);
}

.nfc-status-card.hata {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.3);
}

.nfc-status-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.nfc-status-info {
    flex: 1;
    min-width: 200px;
}

.nfc-status-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.nfc-status-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

#nfc-baglan-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

#nfc-baglan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.nfc-status-card.bagli #nfc-baglan-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

/* Filtreler */
.nfc-filtreler {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--golge);
}

.nfc-filtreler .filtre-grup {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nfc-filtreler label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--meb-koyu-gri);
}

.nfc-filtreler label i {
    margin-right: 0.5rem;
    color: var(--tema-rengi);
}

.nfc-filtreler select,
.nfc-filtreler input {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.nfc-filtreler select:focus,
.nfc-filtreler input:focus {
    border-color: var(--tema-rengi);
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* İstatistikler */
.nfc-istatistikler {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.nfc-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--golge);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
}

.nfc-stat-card:hover {
    transform: translateY(-3px);
}

.nfc-stat-card i {
    font-size: 2rem;
    color: #667eea;
    width: 50px;
    text-align: center;
}

.nfc-stat-card.tanımlı i {
    color: #28a745;
}

.nfc-stat-card.tanimsiz i {
    color: #ffc107;
}

.nfc-stat-card .stat-sayi {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--metin-rengi);
}

.nfc-stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--meb-koyu-gri);
}

/* Öğrenci Listesi */
.nfc-ogrenci-listesi {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.nfc-ogrenci-kart {
    background: white;
    border-radius: 12px;
    box-shadow: var(--golge);
    overflow: hidden;
    transition: all 0.3s;
}

.nfc-ogrenci-kart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.nfc-ogrenci-kart.kartli {
    border-left: 4px solid #28a745;
}

.nfc-ogrenci-kart.kartsiz {
    border-left: 4px solid #ffc107;
}

.nfc-kart-ust {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.nfc-ogrenci-foto {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.nfc-ogrenci-bilgi {
    flex: 1;
}

.nfc-ogrenci-bilgi h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1.05rem;
    color: var(--metin-rengi);
}

.nfc-ogrenci-bilgi p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--meb-koyu-gri);
}

.nfc-ogrenci-bilgi .sinif-numara {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.nfc-ogrenci-bilgi .badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.nfc-ogrenci-bilgi .badge.sinif {
    background: #e7f0ff;
    color: #667eea;
}

.nfc-ogrenci-bilgi .badge.numara {
    background: #f0f0f0;
    color: #666;
}

.nfc-kart-durum {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.nfc-kart-durum.tanimli {
    background: #d4edda;
    color: #155724;
}

.nfc-kart-durum.tanimsiz {
    background: #fff3cd;
    color: #856404;
}

.nfc-kart-durum .uid-text {
    font-family: monospace;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.nfc-kart-aksiyonlar {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.nfc-kart-aksiyonlar .btn {
    flex: 1;
    padding: 0.7rem;
    font-size: 0.9rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.nfc-kart-aksiyonlar .btn-tanimla {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nfc-kart-aksiyonlar .btn-tanimla:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nfc-kart-aksiyonlar .btn-yeniden {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #333;
}

.nfc-kart-aksiyonlar .btn-sil {
    background: #f8d7da;
    color: #dc3545;
    flex: 0.4;
}

.nfc-kart-aksiyonlar .btn-sil:hover {
    background: #dc3545;
    color: white;
}


/* ============================================================================ */
/* NFC MODAL STİLLERİ */
/* ============================================================================ */

.nfc-modal {
    max-width: 500px;
    width: 95%;
}

.nfc-modal-mini {
    max-width: 400px;
    width: 95%;
}

.nfc-modal-ogrenci {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.nfc-modal-ogrenci img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nfc-modal-ogrenci h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
}

.nfc-modal-ogrenci p {
    margin: 0;
    color: var(--meb-koyu-gri);
    font-size: 0.9rem;
}

/* İşlem Adımları */
.nfc-islem-adimlari {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.nfc-islem-adimlari .adim {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    opacity: 0.5;
    transition: all 0.3s;
}

.nfc-islem-adimlari .adim.aktif {
    opacity: 1;
    background: #e7f0ff;
    border: 2px solid #667eea;
}

.nfc-islem-adimlari .adim.tamamlandi {
    opacity: 1;
    background: #d4edda;
    border: 2px solid #28a745;
}

.nfc-islem-adimlari .adim.tamamlandi .adim-numara {
    background: #28a745;
}

.nfc-islem-adimlari .adim.tamamlandi .adim-numara::after {
    content: '✓';
}

.nfc-islem-adimlari .adim-numara {
    width: 32px;
    height: 32px;
    background: var(--meb-koyu-gri);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.nfc-islem-adimlari .adim.aktif .adim-numara {
    background: #667eea;
}

.nfc-islem-adimlari .adim-icerik h4 {
    margin: 0 0 0.2rem 0;
    font-size: 0.95rem;
}

.nfc-islem-adimlari .adim-icerik p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--meb-koyu-gri);
}

/* İşlem Durumu */
.nfc-islem-durumu {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.nfc-islem-durumu .spinner-container {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.nfc-islem-durumu.basarili {
    background: #d4edda;
}

.nfc-islem-durumu.basarili .spinner-container i {
    color: #28a745;
}

.nfc-islem-durumu.hata {
    background: #f8d7da;
}

.nfc-islem-durumu.hata .spinner-container i {
    color: #dc3545;
}

/* UID Bilgisi */
.nfc-uid-bilgi {
    background: #e7f0ff;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.nfc-uid-bilgi label {
    display: block;
    font-size: 0.85rem;
    color: var(--meb-koyu-gri);
    margin-bottom: 0.5rem;
}

.nfc-uid-bilgi .uid-goster {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nfc-uid-bilgi code {
    font-size: 1.1rem;
    font-weight: 600;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.nfc-uid-bilgi .btn-mini {
    padding: 0.4rem 0.6rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* Uyarı İkon */
.uyari-ikon {
    text-align: center;
    font-size: 4rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.uyari-text {
    color: #856404;
    background: #fff3cd;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
}


/* ============================================================================ */
/* KIOSK EKRANI STİLLERİ */
/* ============================================================================ */

.kiosk-fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 0 !important;
    margin: 0 !important;
    display: none;
}

.kiosk-fullscreen.aktif {
    display: flex !important;
}

/* Kiosk Ayar Butonu */
.kiosk-ayar-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s;
}

.kiosk-ayar-toggle:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* Kiosk Ayar Panel */
.kiosk-ayar-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.kiosk-ayar-panel h3 {
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
    color: var(--metin-rengi);
}

.kiosk-ayar-panel .ayar-grup {
    margin-bottom: 1rem;
}

.kiosk-ayar-panel label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--meb-koyu-gri);
    margin-bottom: 0.5rem;
}

.kiosk-ayar-panel select,
.kiosk-ayar-panel input[type="range"] {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
}

.kiosk-ayar-panel .btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* Kiosk Container */
.kiosk-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: white;
}

/* Kiosk Header */
.kiosk-header {
    text-align: center;
    margin-bottom: 2rem;
}

.kiosk-header img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
}

.kiosk-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.kiosk-tarih-saat {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* NFC Okutma Alanı */
.kiosk-nfc-alan {
    text-align: center;
    padding: 3rem;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    border: 3px dashed rgba(255,255,255,0.3);
    min-width: 400px;
    backdrop-filter: blur(10px);
}

.kiosk-nfc-alan h2 {
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.8rem;
}

.kiosk-nfc-alan p {
    margin: 0;
    opacity: 0.8;
    font-size: 1.1rem;
}

/* NFC Animasyon */
.nfc-animasyon {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.nfc-dalga {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid rgba(102, 126, 234, 0.5);
    border-radius: 50%;
    animation: dalga 2s ease-out infinite;
}

.dalga-1 {
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.dalga-2 {
    width: 110px;
    height: 110px;
    animation-delay: 0.5s;
}

.dalga-3 {
    width: 140px;
    height: 140px;
    animation-delay: 1s;
}

@keyframes dalga {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

.nfc-ikon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    animation: nabiz 1.5s ease-in-out infinite;
}

@keyframes nabiz {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Öğrenci Kartı (Okutunca) */
.kiosk-ogrenci-kart {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 3rem;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    animation: kartGiris 0.5s ease-out;
    min-width: 500px;
}

@keyframes kartGiris {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ogrenci-foto-wrapper img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.ogrenci-bilgi-wrapper h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.ogrenci-detay {
    display: flex;
    gap: 1rem;
}

.ogrenci-detay .sinif-badge,
.ogrenci-detay .numara-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
}

.sinif-badge {
    background: rgba(102, 126, 234, 0.8);
}

.numara-badge {
    background: rgba(255,255,255,0.2);
}

.islem-animasyon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #28a745;
    font-size: 1.2rem;
}

.islem-animasyon i {
    font-size: 3rem;
    animation: checkBounce 0.5s ease-out;
}

@keyframes checkBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Son İşlemler */
.kiosk-son-islemler {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    max-height: 200px;
    overflow-y: auto;
}

.kiosk-son-islemler h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    opacity: 0.8;
}

.kiosk-son-islemler .islem-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.kiosk-son-islemler .islem-item img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.kiosk-son-islemler .islem-item .islem-saat {
    margin-left: auto;
    opacity: 0.7;
    font-size: 0.8rem;
}

.kiosk-son-islemler .bos-mesaj {
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Bağlantı Durumu */
.kiosk-baglanti-durumu {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(40, 167, 69, 0.3);
    border: 2px solid rgba(40, 167, 69, 0.5);
    border-radius: 30px;
    font-size: 0.9rem;
}

.kiosk-baglanti-durumu.bagli-degil {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
}

.kiosk-baglanti-durumu .durum-ikon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #28a745;
    animation: nabiz 1.5s infinite;
}

.kiosk-baglanti-durumu.bagli-degil .durum-ikon {
    background: #dc3545;
    animation: none;
}

/* Koyu Tema */
.kiosk-container.koyu-tema {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
}

/* Açık Tema */
.kiosk-container.acik-tema {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}


/* ============================================================================ */
/* RESPONSIVE DÜZENLEMELER */
/* ============================================================================ */

@media (max-width: 768px) {
    .nfc-status-card {
        flex-direction: column;
        text-align: center;
    }
    
    .nfc-ogrenci-listesi {
        grid-template-columns: 1fr;
    }
    
    .kiosk-nfc-alan {
        min-width: auto;
        width: 90%;
        padding: 2rem 1rem;
    }
    
    .kiosk-ogrenci-kart {
        flex-direction: column;
        min-width: auto;
        width: 90%;
        text-align: center;
    }
    
    .kiosk-son-islemler {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
    
    .kiosk-header h1 {
        font-size: 1.8rem;
    }
    
    .kiosk-tarih-saat {
        flex-direction: column;
        gap: 0.5rem;
    }
}


/* ============================================================================ */
/* LOADING SPINNER */
/* ============================================================================ */

.nfc-ogrenci-listesi .loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--meb-koyu-gri);
}

.nfc-ogrenci-listesi .loading-spinner i {
    font-size: 3rem;
    color: var(--tema-rengi);
    margin-bottom: 1rem;
}

.nfc-ogrenci-listesi .bos-mesaj {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    color: var(--meb-koyu-gri);
}

.nfc-ogrenci-listesi .bos-mesaj i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
}

/* ============================================
   KIOSK BEYAZ TEMA
   ============================================ */

.kiosk-beyaz {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f0f2f5 100%) !important;
}

.kiosk-beyaz .kiosk-container {
    background: transparent;
}

.kiosk-beyaz .kiosk-header {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 0 0 30px 30px;
}

.kiosk-beyaz .kiosk-header h1 {
    color: #333;
}

.kiosk-beyaz .kiosk-tarih-saat {
    color: #666;
}

.kiosk-beyaz .kiosk-nfc-alan {
    background: white;
    border: 3px solid #e0e0e0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.kiosk-beyaz .kiosk-nfc-alan h2 {
    color: #333;
}

.kiosk-beyaz .kiosk-nfc-alan p {
    color: #666;
}

.kiosk-beyaz .nfc-ikon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.kiosk-beyaz .nfc-dalga {
    border-color: rgba(102, 126, 234, 0.3);
}

.kiosk-beyaz .kiosk-son-islemler {
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.kiosk-beyaz .kiosk-son-islemler h3 {
    color: #333;
    border-bottom-color: #eee;
}

.kiosk-beyaz .kiosk-baglanti-durumu {
    background: white;
    border: 1px solid #e0e0e0;
    color: #333;
}

/* Bağlantı Durumu İkonları */
.kiosk-baglanti-durumu .durum-ikon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.kiosk-baglanti-durumu .durum-ikon.bagli {
    background: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    animation: durumPulse 2s infinite;
}

.kiosk-baglanti-durumu .durum-ikon.baglanıyor {
    background: #FF9800;
    animation: durumPulse 0.5s infinite;
}

.kiosk-baglanti-durumu .durum-ikon.bagli-degil {
    background: #f44336;
}

@keyframes durumPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   KIOSK KLAVYE EMÜLASYONU INPUT - GİZLİ
   ============================================ */

/* NFC Modal Z-Index Fix */
#nfc-kart-yaz-modal,
#nfc-kart-sil-modal {
    z-index: 99999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
}

#nfc-kart-yaz-modal .modal-content,
#nfc-kart-sil-modal .modal-content {
    z-index: 100000 !important;
    position: relative !important;
    background: white !important;
}

/* ============================================
   KIOSK ÖĞRENCİ + VELİ FOTOĞRAF KARTI
   ============================================ */

.kiosk-ogrenci-kart {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: kartGiris 0.6s ease-out;
    max-width: 700px;
    margin: 0 auto;
}

@keyframes kartGiris {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Fotoğraflar Container */
.kiosk-fotolar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

/* Tek Fotoğraf Wrapper */
.kiosk-foto-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kiosk-foto-wrapper img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.kiosk-foto-wrapper.ogrenci img {
    border-color: #4CAF50;
    animation: fotoGiris 0.5s ease-out 0.2s both;
}

.kiosk-foto-wrapper.veli img {
    border-color: #2196F3;
    animation: fotoGiris 0.5s ease-out 0.4s both;
}

@keyframes fotoGiris {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.kiosk-foto-wrapper:hover img {
    transform: scale(1.05);
}

/* Fotoğraf Etiketi */
.foto-etiket {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kiosk-foto-wrapper.ogrenci .foto-etiket {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.kiosk-foto-wrapper.veli .foto-etiket {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

/* Bilgiler */
.kiosk-bilgiler {
    margin-bottom: 1.5rem;
}

.kiosk-bilgiler h2 {
    font-size: 2.5rem;
    color: #333;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.kiosk-bilgiler .ogrenci-detay {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.kiosk-bilgiler .sinif-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
}

.kiosk-bilgiler .numara-badge {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
}

.veli-bilgi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #666;
    font-size: 1.2rem;
    margin: 0;
}

.veli-bilgi i {
    color: #2196F3;
}

/* Hoşgeldin Animasyonu */
.kiosk-hosgeldin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    border-radius: 50px;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    animation: hosgeldinPulse 1s ease-in-out infinite alternate;
    margin-top: 1rem;
}

.kiosk-hosgeldin i {
    font-size: 2rem;
    animation: elSalla 1s ease-in-out infinite;
}

@keyframes hosgeldinPulse {
    from {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
    }
    to {
        transform: scale(1.03);
        box-shadow: 0 10px 40px rgba(76, 175, 80, 0.6);
    }
}

@keyframes elSalla {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .kiosk-fotolar {
        flex-direction: column;
        gap: 2rem;
    }
    
    .kiosk-foto-wrapper img {
        width: 140px;
        height: 140px;
    }
    
    .kiosk-bilgiler h2 {
        font-size: 1.8rem;
    }
    
    .kiosk-hosgeldin {
        font-size: 1.4rem;
        padding: 1rem 2rem;
    }
}

.kiosk-hidden-input {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    width: 300px;
    padding: 15px 20px;
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
    text-align: center;
    letter-spacing: 3px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    transition: all 0.3s ease;
}

.kiosk-hidden-input:focus {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.kiosk-hidden-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Input aktif olduğunda animasyon */
.kiosk-hidden-input:focus + .nfc-animasyon .nfc-dalga {
    animation-duration: 1s;
}

/* Mobilde input'u daha küçük yap */
@media (max-width: 768px) {
    .kiosk-hidden-input {
        width: 250px;
        font-size: 1.2rem;
        padding: 12px 15px;
    }
}

/* ============================================
   MODERN KİOSK TASARIMI - ANİMASYONLU
   ============================================ */

/* Ana Container */
.kiosk-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: kioskGradientShift 15s ease infinite;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

@keyframes kioskGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Particles */
.kiosk-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.kiosk-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: kioskFloat 20s infinite;
}

@keyframes kioskFloat {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Wrapper */
.kiosk-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem;
}

/* Glass Header */
.kiosk-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    animation: kioskSlideDown 0.8s ease-out;
}

@keyframes kioskSlideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.kiosk-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.kiosk-header-modern img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    animation: kioskLogoFloat 3s ease-in-out infinite;
}

@keyframes kioskLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.kiosk-header-modern h1 {
    font-size: 2rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin: 0;
}

.kiosk-header-right {
    text-align: right;
    color: white;
}

.kiosk-tarih {
    font-size: 1rem;
    opacity: 0.9;
}

.kiosk-saat {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Main Content */
.kiosk-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* NFC Waiting Area */
.kiosk-nfc-bekle {
    text-align: center;
    animation: kioskFadeIn 1s ease-out;
}

@keyframes kioskFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.kiosk-nfc-circle {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 3rem;
}

/* Rotating Rings */
.kiosk-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid transparent;
}

.kiosk-ring-1 {
    width: 300px;
    height: 300px;
    border-top-color: rgba(255,255,255,0.8);
    border-right-color: rgba(255,255,255,0.4);
    animation: kioskRotate 3s linear infinite;
}

.kiosk-ring-2 {
    width: 250px;
    height: 250px;
    border-bottom-color: rgba(255,255,255,0.8);
    border-left-color: rgba(255,255,255,0.4);
    animation: kioskRotate 2s linear infinite reverse;
}

.kiosk-ring-3 {
    width: 200px;
    height: 200px;
    border-top-color: rgba(255,255,255,0.6);
    animation: kioskRotate 2.5s linear infinite;
}

@keyframes kioskRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Pulse Waves */
.kiosk-pulse-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    animation: kioskPulseWave 2s ease-out infinite;
}

.kiosk-pulse-wave:nth-child(4) { animation-delay: 0s; }
.kiosk-pulse-wave:nth-child(5) { animation-delay: 0.5s; }
.kiosk-pulse-wave:nth-child(6) { animation-delay: 1s; }

@keyframes kioskPulseWave {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Center Icon */
.kiosk-nfc-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    animation: kioskIconPulse 2s ease-in-out infinite;
}

@keyframes kioskIconPulse {
    0%, 100% { box-shadow: 0 15px 50px rgba(0,0,0,0.3), 0 0 0 0 rgba(255,255,255,0.4); }
    50% { box-shadow: 0 15px 50px rgba(0,0,0,0.3), 0 0 0 20px rgba(255,255,255,0); }
}

.kiosk-nfc-icon i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kiosk-nfc-bekle h2 {
    font-size: 2.5rem;
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.kiosk-nfc-bekle p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
}

/* Student Card */
.kiosk-ogrenci-kart {
    display: none;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.kiosk-ogrenci-kart.aktif {
    display: block;
    animation: kioskKartGiris 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes kioskKartGiris {
    0% { opacity: 0; transform: scale(0.3) rotateY(90deg); }
    50% { transform: scale(1.1) rotateY(-10deg); }
    100% { opacity: 1; transform: scale(1) rotateY(0); }
}

.kiosk-kart-icerik {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 40px;
    padding: 3rem;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Confetti */
.kiosk-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: kioskConfettiFall 3s ease-out forwards;
}

@keyframes kioskConfettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(500px) rotate(720deg); opacity: 0; }
}

/* Photos */
.kiosk-fotolar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2rem;
}

.kiosk-foto-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kiosk-foto-container .kiosk-foto-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
}

.kiosk-foto-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    animation: kioskRingRotate 4s linear infinite;
}

@keyframes kioskRingRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.kiosk-foto-container.ogrenci .kiosk-foto-ring {
    background: conic-gradient(#4CAF50, #8BC34A, #CDDC39, #4CAF50);
}

.kiosk-foto-container.veli .kiosk-foto-ring {
    background: conic-gradient(#2196F3, #03A9F4, #00BCD4, #2196F3);
}

.kiosk-foto-container .kiosk-foto-wrapper img {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.kiosk-foto-container.ogrenci img {
    animation: kioskFotoOgrenci 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.3s both;
}

.kiosk-foto-container.veli img {
    animation: kioskFotoVeli 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s both;
}

@keyframes kioskFotoOgrenci {
    0% { opacity: 0; transform: scale(0) rotate(-180deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes kioskFotoVeli {
    0% { opacity: 0; transform: scale(0) rotate(180deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

.kiosk-foto-etiket {
    margin-top: 1.2rem;
    padding: 0.7rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    animation: kioskEtiketGiris 0.5s ease-out 0.8s both;
}

@keyframes kioskEtiketGiris {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.kiosk-foto-container.ogrenci .kiosk-foto-etiket {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

.kiosk-foto-container.veli .kiosk-foto-etiket {
    background: linear-gradient(135deg, #2196F3, #03A9F4);
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.4);
}

/* Info Section */
.kiosk-ogrenci-kart .kiosk-bilgiler {
    text-align: center;
    margin-bottom: 2rem;
    animation: kioskBilgiGiris 0.6s ease-out 0.6s both;
}

@keyframes kioskBilgiGiris {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.kiosk-ogrenci-kart .kiosk-bilgiler h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kiosk-detaylar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.kiosk-badge {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    animation: kioskBadgePop 0.4s ease-out backwards;
}

.kiosk-badge:nth-child(1) { animation-delay: 0.8s; }
.kiosk-badge:nth-child(2) { animation-delay: 0.9s; }

@keyframes kioskBadgePop {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

.kiosk-badge.sinif {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.kiosk-badge.numara {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 5px 20px rgba(240, 147, 251, 0.4);
}

.kiosk-veli-bilgi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    color: #666;
    animation: kioskVeliGiris 0.5s ease-out 1s both;
}

@keyframes kioskVeliGiris {
    from { opacity: 0; }
    to { opacity: 1; }
}

.kiosk-veli-bilgi i {
    color: #2196F3;
}

/* Welcome Banner */
.kiosk-ogrenci-kart .kiosk-hosgeldin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 4rem;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    border-radius: 60px;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
    animation: kioskHosgeldinGiris 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.2s both;
}

@keyframes kioskHosgeldinGiris {
    0% { opacity: 0; transform: scale(0) rotate(-10deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

.kiosk-ogrenci-kart .kiosk-hosgeldin i {
    font-size: 2.5rem;
    animation: kioskWave 1s ease-in-out infinite;
}

@keyframes kioskWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(25deg); }
    75% { transform: rotate(-15deg); }
}

/* Bottom Section */
.kiosk-bottom {
    margin-top: 2rem;
}

.kiosk-son-islemler-modern {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    animation: kioskSlideUp 0.8s ease-out 0.3s both;
}

@keyframes kioskSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.kiosk-son-islemler-modern h3 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kiosk-islem-liste {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.kiosk-islem-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    min-width: 200px;
    animation: kioskIslemGiris 0.4s ease-out;
}

@keyframes kioskIslemGiris {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.kiosk-islem-item img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.5);
}

.kiosk-islem-item .isim {
    flex: 1;
    color: white;
    font-weight: 500;
}

.kiosk-islem-item .saat {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.kiosk-bos-mesaj {
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 1rem;
    margin: 0;
}

/* Connection Status */
.kiosk-baglanti-modern {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 500;
    z-index: 100;
    animation: kioskSlideUp 0.8s ease-out 0.5s both;
}

.kiosk-baglanti-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF9800;
    animation: kioskDotPulse 0.5s ease-in-out infinite;
}

.kiosk-baglanti-dot.bagli {
    background: #4CAF50;
    box-shadow: 0 0 15px #4CAF50;
    animation: kioskDotPulse 2s ease-in-out infinite;
}

.kiosk-baglanti-dot.hata {
    background: #f44336;
    animation: none;
}

@keyframes kioskDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Error Modal */
.kiosk-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
}

.kiosk-overlay.aktif {
    display: block;
}

.kiosk-hata-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: white;
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.kiosk-hata-modal.aktif {
    display: block;
    animation: kioskModalGiris 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes kioskModalGiris {
    from { transform: translate(-50%, -50%) scale(0); }
    to { transform: translate(-50%, -50%) scale(1); }
}

.kiosk-hata-modal i {
    font-size: 5rem;
    color: #f44336;
    margin-bottom: 1rem;
    animation: kioskShake 0.5s ease-in-out;
}

@keyframes kioskShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.kiosk-hata-modal h3 {
    font-size: 1.8rem;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.kiosk-hata-modal p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .kiosk-header-modern {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .kiosk-header-left {
        flex-direction: column;
    }
    
    .kiosk-saat {
        font-size: 2rem;
    }
    
    .kiosk-fotolar {
        flex-direction: column;
        gap: 2rem;
    }
    
    .kiosk-foto-container .kiosk-foto-wrapper,
    .kiosk-foto-container .kiosk-foto-wrapper img {
        width: 150px;
        height: 150px;
    }
    
    .kiosk-ogrenci-kart .kiosk-bilgiler h2 {
        font-size: 2rem;
    }
    
    .kiosk-ogrenci-kart .kiosk-hosgeldin {
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }
    
    .kiosk-nfc-circle {
        width: 200px;
        height: 200px;
    }
    
    .kiosk-ring-1 { width: 200px; height: 200px; }
    .kiosk-ring-2 { width: 170px; height: 170px; }
    .kiosk-ring-3 { width: 140px; height: 140px; }
    
    .kiosk-nfc-icon {
        width: 80px;
        height: 80px;
    }
    
    .kiosk-nfc-icon i {
        font-size: 2.5rem;
    }
    
    .kiosk-nfc-bekle h2 {
        font-size: 1.8rem;
    }
}

/* ============================================
   CANLI ANONS POPUP STİLLERİ
   ============================================ */

#canli-anons-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: anonsFadeIn 0.5s ease-out;
}

@keyframes anonsFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#canli-anons-popup.kapaniyor {
    animation: anonsFadeOut 0.5s ease-out forwards;
}

@keyframes anonsFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.canli-anons-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.canli-anons-kart {
    position: relative;
    background: white;
    border-radius: 25px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-width: 500px;
    width: 90%;
    animation: anonsKartGiris 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 4px solid #4CAF50;
}

@keyframes anonsKartGiris {
    0% { opacity: 0; transform: scale(0.5) translateY(50px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.canli-anons-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    background: #4CAF50;
    color: white;
}

.anons-icon {
    font-size: 2rem;
}

.anons-baslik {
    font-size: 1.5rem;
    font-weight: 700;
    flex: 1;
    text-align: center;
}

.anons-saat {
    font-size: 1.2rem;
    opacity: 0.9;
}

.canli-anons-body {
    padding: 2rem;
    text-align: center;
}

.anons-fotolar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.anons-foto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ddd;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.anons-foto.ogrenci {
    width: 130px;
    height: 130px;
    border-color: #4CAF50;
    border-width: 5px;
}

.anons-foto.anne {
    border-color: #E91E63;
}

.anons-foto.baba {
    border-color: #3F51B5;
}

.anons-bilgi {
    margin-top: 1rem;
}

.anons-ogrenci-adi {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.anons-sinif {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.anons-veliler {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .canli-anons-kart {
        width: 95%;
        margin: 1rem;
    }
    
    .anons-foto {
        width: 70px;
        height: 70px;
    }
    
    .anons-foto.ogrenci {
        width: 90px;
        height: 90px;
    }
    
    .anons-ogrenci-adi {
        font-size: 1.5rem;
    }
}
