* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Giriş Ekranı */
.ekran {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo p {
    font-size: 24px;
    color: #F59E0B;
    font-weight: 600;
    margin-top: 15px;
}

.giris-form {
    max-width: 400px;
    margin: 0 auto;
}

.giris-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.giris-form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.giris-form input:focus {
    outline: none;
    border-color: #F59E0B;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header h2 {
    color: #333;
    font-size: 20px;
}

.header span {
    color: #F59E0B;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 8px;
    background: white;
    padding: 10px 12px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    box-sizing: border-box;
}

.tab-navigation::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f7fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.tab-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.tab-btn.active {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    border-color: #F59E0B;
}

.tab-btn span {
    font-size: 14px;
}

.nav-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tab-btn .sidebar-svg-icon {
    width: 18px;
    height: 18px;
    color: #F59E0B;
    stroke: #F59E0B;
    transition: all 0.3s;
}

.tab-btn:hover .sidebar-svg-icon {
    color: #D97706;
    stroke: #D97706;
}

.tab-btn.active .sidebar-svg-icon {
    color: #ffffff;
    stroke: #ffffff;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

.ogrenci-diger-item .nav-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.ogrenci-diger-item .sidebar-svg-icon {
    width: 28px;
    height: 28px;
    color: #F59E0B;
    stroke: #F59E0B;
    transition: all 0.2s ease;
}

.ogrenci-diger-item:hover .sidebar-svg-icon,
.ogrenci-diger-item.active .sidebar-svg-icon {
    color: #ffffff;
    stroke: #ffffff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

/* Diğer butonu ve menü - masaüstünde gizli */
.tab-btn-diger {
    display: none;
}
.ogrenci-diger-menu,
.ogrenci-diger-overlay {
    display: none;
}

/* Tab Content */
.tab-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-x: hidden;
    max-width: 100%;
}

.tab-pane {
    display: none;
    max-width: 100%;
    overflow-x: hidden;
}

.tab-pane.active {
    display: block;
}

/* Section Card */
.section-card {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #e2e8f0;
}

.section-card h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Elements */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #F59E0B;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 101, 101, 0.4);
}

.btn-secondary {
    background: #718096;
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Soru Card */
.soru-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.soru-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.soru-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.soru-header-mobile {
    margin-bottom: 15px;
}

.soru-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.soru-badges-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.brans-badge {
    background: #F59E0B;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.durum-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.durum-badge.beklemede {
    background: #fef3c7;
    color: #92400e;
}

.durum-badge.cozuldu {
    background: #d1fae5;
    color: #065f46;
}

.durum-badge.onaylandi {
    background: #d1fae5;
    color: #065f46;
}

.durum-badge.iptal {
    background: #fee2e2;
    color: #991b1b;
}

.tarih {
    color: #718096;
    font-size: 13px;
    white-space: nowrap;
}

/* Etüt Card */
.etut-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
}

.etut-card p {
    margin-bottom: 8px;
    color: #4a5568;
}

.etut-card strong {
    color: #2d3748;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Tıklanabilir görseller */
.clickable-image {
    cursor: pointer;
    transition: all 0.3s;
}

.clickable-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Thumbnail görseller */
.thumbnail-image {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumbnail-image:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Zoom hint */
.zoom-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.thumbnail-image:hover + .zoom-hint,
.clickable-image:hover ~ .zoom-hint {
    opacity: 1;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .ekran {
        padding: 20px;
    }
    
    .tab-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        margin: 0;
        border-radius: 20px 20px 0 0;
        padding: 6px 4px 10px;
        gap: 2px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        overflow: hidden;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-sizing: border-box;
    }

    .tab-btn,
    .tab-btn-diger {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 0;
        flex: 1;
        padding: 6px 2px !important;
        font-size: 10px !important;
        font-weight: 600;
        gap: 4px;
        border-radius: 10px;
        border: none;
        background: transparent;
        color: #4a5568;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
    }

    .tab-btn .nav-icon-wrap,
    .tab-btn-diger .nav-icon-wrap {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .tab-btn .sidebar-svg-icon,
    .tab-btn-diger .sidebar-svg-icon {
        width: 20px;
        height: 20px;
    }

    /* İlk 4 tab görünsün, 5. ve sonrası gizle */
    .tab-btn:nth-child(n+5) {
        display: none !important;
    }

    .tab-btn-diger.active,
    .tab-btn.active {
        background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
        color: white !important;
    }

    .tab-btn.active .sidebar-svg-icon,
    .tab-btn-diger.active .sidebar-svg-icon {
        stroke: white !important;
    }

    /* Diğer menü popup */
    .ogrenci-diger-menu {
        display: none;
        position: fixed;
        bottom: 75px;
        left: 10px;
        right: 10px;
        background: white;
        border-radius: 20px;
        padding: 15px;
        box-shadow: 0 -8px 30px rgba(0,0,0,0.2);
        z-index: 1001;
        gap: 10px;
    }

    .ogrenci-diger-menu.acik {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .ogrenci-diger-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 18px 10px;
        border-radius: 12px;
        border: none;
        background: #f7fafc;
        cursor: pointer;
        font-size: 13px;
        font-weight: 600;
        color: #4a5568;
        transition: all 0.2s;
    }

    .ogrenci-diger-item:hover,
    .ogrenci-diger-item.active {
        background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
        color: white;
    }

    .ogrenci-diger-item span:first-child {
        font-size: 28px;
    }

    .ogrenci-diger-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.3);
        z-index: 1000;
    }

    .ogrenci-diger-overlay.acik {
        display: block;
    }

    /* Body padding for bottom nav */
    #ogrenciPanel {
        padding-bottom: 80px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .header-left {
        flex-direction: column;
        text-align: center;
    }
    
    .header h2 {
        font-size: 18px;
    }
    
    .section-card {
        padding: 15px;
    }
    
    .section-card h3 {
        font-size: 18px;
    }
    
    .soru-card {
        padding: 15px;
    }
    
    .soru-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }
    
    .soru-badges-row {
        width: 100%;
    }
    
    .tarih {
        font-size: 12px;
        width: 100%;
        text-align: left;
    }
    
    .brans-badge,
    .durum-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .etut-card {
        padding: 15px;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .btn-sm {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* Mobilde thumbnail'ler tam genişlik */
    .thumbnail-image {
        max-width: 100% !important;
        max-height: 250px !important;
    }
    
    .zoom-hint {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* Test Soru Butonları */
.test-sik-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%) !important;
}

.test-sik-btn:active {
    transform: translateY(0);
}


/* Havai fişek animasyonu */
@keyframes firework {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* Üzgün emoji animasyonu */
@keyframes sadShake {
    0%, 100% { transform: translateX(0) scale(1); }
    25% { transform: translateX(-10px) scale(1.1); }
    75% { transform: translateX(10px) scale(1.1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* ==================== DENEMELERİM ==================== */

.deneme-grafik-filtre {
    display: flex;
    gap: 6px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.deneme-filtre-btn {
    padding: 8px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.deneme-filtre-btn.active {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border-color: #F59E0B;
}

.deneme-kart {
    background: #f7fafc;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}

.deneme-kart:hover {
    border-color: #F59E0B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.deneme-kart-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.deneme-kart-isim {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
}

.deneme-kart-tarih {
    font-size: 13px;
    color: #718096;
}

.deneme-kart-netler {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.deneme-net-item {
    text-align: center;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    min-width: 65px;
    flex: 1;
}

.deneme-net-ders {
    font-size: 11px;
    color: #718096;
    margin-bottom: 3px;
}

.deneme-net-deger {
    font-size: 16px;
    font-weight: 800;
}

.deneme-net-pozitif { color: #10b981; }
.deneme-net-negatif { color: #ef4444; }
.deneme-net-sifir { color: #6b7280; }

.deneme-toplam-net {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 8px;
    min-width: 80px;
}

.deneme-toplam-net .deneme-net-ders { color: #94a3b8; }
.deneme-toplam-net .deneme-net-deger { color: #F59E0B; font-size: 20px; }

/* Karşılaştırma */
.karsilastirma-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.karsilastirma-row:last-child { border-bottom: none; }

.karsilastirma-ders { font-weight: 600; color: #2d3748; flex: 1; }
.karsilastirma-onceki { color: #718096; text-align: center; min-width: 60px; }
.karsilastirma-yeni { font-weight: 700; text-align: center; min-width: 60px; }
.karsilastirma-fark { font-weight: 700; text-align: center; min-width: 70px; }

.fark-pozitif { color: #10b981; }
.fark-negatif { color: #ef4444; }

@media (max-width: 768px) {
    .deneme-grafik-filtre {
        gap: 4px;
    }

    .deneme-filtre-btn {
        padding: 6px 10px;
        font-size: 11px;
        flex: 1;
        text-align: center;
    }

    .deneme-net-item {
        min-width: 50px;
        padding: 6px 8px;
    }

    .deneme-net-ders { font-size: 10px; }
    .deneme-net-deger { font-size: 14px; }
}

/* ==================== GAMİFİCATİON ==================== */

/* Header Streak Widget */
.header-streak-widget {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    padding: 8px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.header-streak-widget:hover {
    transform: scale(1.08);
}

.streak-flame {
    font-size: 24px;
    position: relative;
    z-index: 1;
    animation: flame-flicker 1s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 6px rgba(255, 100, 0, 0.6));
}

@keyframes flame-flicker {
    0% { transform: scale(1) rotate(-3deg); }
    50% { transform: scale(1.1) rotate(3deg); }
    100% { transform: scale(1.05) rotate(-2deg); }
}

/* Streak Uyarı Durumu */
.streak-warning {
    filter: grayscale(0.5) brightness(0.7);
    animation: warning-pulse 1.5s ease-in-out infinite;
}

.streak-warning-bg {
    background: linear-gradient(135deg, #92400e, #78350f) !important;
}

@keyframes warning-pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1); }
}

.streak-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.streak-sayi {
    font-size: 20px;
    font-weight: 800;
    color: #F59E0B;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.streak-etiket {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Streak Hero Bölümü */
.streak-section {
    padding: 0 !important;
    overflow: hidden;
    border: none !important;
}

.streak-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 40px 20px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Arka plan parçacıkları */
.streak-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(245,158,11,0.4), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(251,191,36,0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(245,158,11,0.3), transparent),
        radial-gradient(2px 2px at 70% 60%, rgba(251,191,36,0.2), transparent),
        radial-gradient(2px 2px at 10% 80%, rgba(245,158,11,0.3), transparent),
        radial-gradient(2px 2px at 90% 85%, rgba(251,191,36,0.4), transparent),
        radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 30% 50%, rgba(255,255,255,0.2), transparent);
    animation: sparkle-drift 6s ease-in-out infinite alternate;
}

@keyframes sparkle-drift {
    0% { opacity: 0.6; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
    100% { opacity: 0.6; transform: translateY(0); }
}

/* Alev glow efekti */
.streak-hero::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(245,158,11,0.25) 0%, rgba(239,68,68,0.1) 40%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glow-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
    50% { transform: translateX(-50%) scale(1.3); opacity: 1; }
}

.streak-hero-flame {
    font-size: 72px;
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
    animation: flame-dance 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 100, 0, 0.6)) drop-shadow(0 0 30px rgba(255, 50, 0, 0.3));
}

@keyframes flame-dance {
    0%, 100% { transform: scale(1) rotate(-3deg); }
    25% { transform: scale(1.08) rotate(3deg); }
    50% { transform: scale(1.05) rotate(-2deg); }
    75% { transform: scale(1.1) rotate(4deg); }
}

@keyframes flame-dance {
    0%, 100% { transform: scale(1) rotate(-3deg) translateY(0); }
    25% { transform: scale(1.1) rotate(3deg) translateY(-4px); }
    50% { transform: scale(1.05) rotate(-2deg) translateY(-2px); }
    75% { transform: scale(1.15) rotate(4deg) translateY(-6px); }
}

.streak-hero-sayi {
    font-size: 56px;
    font-weight: 900;
    color: #F59E0B;
    line-height: 1;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5), 0 0 40px rgba(245, 158, 11, 0.2);
}

.streak-hero-etiket {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 4px;
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

.streak-hero-uyari {
    margin-top: 15px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    animation: pulse-uyari 2s infinite;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

@keyframes pulse-uyari {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(245,158,11,0.2); }
    50% { opacity: 0.7; box-shadow: 0 0 20px rgba(245,158,11,0.4); }
}

.streak-detay {
    display: flex;
    border-top: 1px solid #e2e8f0;
}

.streak-detay-item {
    flex: 1;
    text-align: center;
    padding: 18px 10px;
    border-right: 1px solid #e2e8f0;
}

.streak-detay-item:last-child {
    border-right: none;
}

.streak-detay-deger {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #2d3748;
}

.streak-detay-etiket {
    display: block;
    font-size: 11px;
    color: #718096;
    margin-top: 3px;
    font-weight: 600;
}

/* Rozet Grid */
.rozet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.rozet-card {
    text-align: center;
    padding: 20px 10px;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    background: #f7fafc;
    transition: all 0.3s;
    position: relative;
}

.rozet-card.kazanildi {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #F59E0B;
}

.rozet-card.kazanilmamis {
    opacity: 0.5;
    filter: grayscale(0.8);
}

.rozet-ikon { font-size: 36px; margin-bottom: 8px; }
.rozet-isim { font-size: 14px; font-weight: 700; color: #2d3748; }
.rozet-aciklama { font-size: 11px; color: #718096; margin-top: 4px; }
.rozet-tarih { font-size: 10px; color: #a0aec0; margin-top: 6px; }

/* Liderlik Tablosu */
.liderlik-periyot-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.liderlik-tab {
    flex: 1;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.liderlik-tab.active {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border-color: #F59E0B;
}

.liderlik-sira {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #f7fafc;
    gap: 12px;
    transition: all 0.2s;
}

.liderlik-sira:hover { background: #edf2f7; }

.liderlik-sira.benim {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid #F59E0B;
}

.liderlik-sira.ilk-uc { background: #fffbeb; }

.liderlik-no {
    font-size: 18px;
    font-weight: 800;
    color: #2d3748;
    min-width: 30px;
    text-align: center;
}

.liderlik-isim { flex: 1; font-weight: 600; color: #2d3748; }

.liderlik-puan {
    font-weight: 700;
    color: #F59E0B;
    font-size: 15px;
}

/* XP Hareketleri */
.xp-hareket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.xp-hareket:last-child { border-bottom: none; }

.xp-hareket-aksiyon { color: #4a5568; }
.xp-hareket-puan { font-weight: 700; color: #10b981; }
.xp-hareket-tarih { font-size: 12px; color: #a0aec0; }

/* XP Toast */
.xp-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    z-index: 10000;
    animation: xpToastAnim 2.5s ease forwards;
    box-shadow: 0 5px 25px rgba(245, 158, 11, 0.4);
}

@keyframes xpToastAnim {
    0% { opacity: 0; transform: translateY(-20px) scale(0.8); }
    15% { opacity: 1; transform: translateY(0) scale(1.1); }
    25% { transform: translateY(0) scale(1); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-30px); }
}

/* Rozet Bildirimi */
.rozet-bildirim {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.rozet-bildirim-icerik {
    background: white;
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    max-width: 350px;
    animation: rozet-popup 0.5s ease;
}

@keyframes rozet-popup {
    0% { transform: scale(0); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.rozet-bildirim-ikon { font-size: 64px; margin-bottom: 15px; }
.rozet-bildirim-baslik { font-size: 22px; font-weight: 800; color: #2d3748; margin-bottom: 8px; }
.rozet-bildirim-aciklama { font-size: 15px; color: #718096; margin-bottom: 20px; }

/* Gamification Responsive */
@media (max-width: 768px) {
    .header-streak-widget {
        padding: 6px 12px;
    }

    .streak-flame { font-size: 20px; }
    .streak-sayi { font-size: 16px; }
    .streak-etiket { font-size: 9px; }

    /* Streak hero mobil */
    .streak-hero {
        padding: 30px 15px 25px;
    }

    .streak-hero-flame { font-size: 56px; }
    .streak-hero-sayi { font-size: 44px; }
    .streak-hero-etiket { font-size: 12px; letter-spacing: 2px; }

    .streak-hero::after {
        width: 90px;
        height: 90px;
    }

    .streak-detay-deger { font-size: 18px; }
    .streak-detay-etiket { font-size: 10px; }
    .streak-detay-item { padding: 14px 6px; }

    /* Rozetler 3 sütun küçük kartlar */
    .rozet-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .rozet-card {
        padding: 12px 6px;
        border-radius: 12px;
    }

    .rozet-ikon { font-size: 28px; margin-bottom: 4px; }
    .rozet-isim { font-size: 11px; }
    .rozet-aciklama { font-size: 9px; line-height: 1.3; }
    .rozet-tarih { font-size: 9px; }

    /* Liderlik */
    .liderlik-periyot-tabs {
        gap: 5px;
    }

    .liderlik-tab {
        padding: 8px 5px;
        font-size: 12px;
    }

    .liderlik-sira {
        padding: 10px 12px;
        gap: 10px;
    }

    .liderlik-no { font-size: 16px; min-width: 24px; }
    .liderlik-isim { font-size: 13px; }
    .liderlik-puan { font-size: 13px; }

    /* XP Hareketleri */
    .xp-hareket {
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px 0;
        font-size: 13px;
    }

    .xp-hareket-aksiyon {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Toast */
    .xp-toast {
        top: auto;
        bottom: 90px;
        right: 15px;
        left: 15px;
        text-align: center;
        font-size: 16px;
        padding: 12px 20px;
    }

    /* Rozet bildirimi */
    .rozet-bildirim-icerik {
        padding: 30px 20px;
        margin: 0 15px;
        max-width: none;
    }

    .rozet-bildirim-ikon { font-size: 50px; }
    .rozet-bildirim-baslik { font-size: 18px; }
    .rozet-bildirim-aciklama { font-size: 14px; }

    /* Section card padding */
    #basarimlarTab .section-card {
        padding: 15px 12px;
    }

    #basarimlarTab .section-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

@media (max-width: 380px) {
    .streak-hero-flame { font-size: 48px; }
    .streak-hero-sayi { font-size: 38px; }
    .streak-detay-deger { font-size: 16px; }

    .rozet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== DASHBOARD ==================== */

/* Dashboard container */
#dashboardTab {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Stat Cards Grid */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
}

.dash-stat-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s;
    min-width: 0;
    overflow: hidden;
}

.dash-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.dash-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.dash-stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.dash-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
}

.dash-stat-change {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.dash-stat-change.positive { color: #10b981; }
.dash-stat-change.negative { color: #ef4444; }
.dash-stat-change.neutral { color: #64748b; }

/* Main Grid */
.dash-main-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

.dash-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.dash-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Dashboard Cards */
.dash-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    min-width: 0;
    overflow: hidden;
}

.dash-card-highlight {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fbbf24;
}

/* Soru Gönder Butonu - Üstte */
.dash-soru-gonder-top {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.dash-soru-gonder-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.dash-soru-gonder-top:active {
    transform: translateY(0);
}

.dash-soru-gonder-top .dash-soru-gonder-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.dash-soru-gonder-top .dash-soru-gonder-text {
    flex: 1;
}

.dash-soru-gonder-top .dash-soru-gonder-text h3 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.dash-soru-gonder-top .dash-soru-gonder-text p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.dash-soru-gonder-top .dash-soru-gonder-arrow {
    font-size: 28px;
    color: white;
    font-weight: bold;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.dash-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.dash-card-subtitle {
    font-size: 12px;
    color: #64748b;
}

.dash-card-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dash-nav-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-nav-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dash-nav-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.dash-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.dash-nav-label {
    font-size: 12px;
    color: #64748b;
    min-width: 80px;
    text-align: center;
    font-weight: 500;
}

.dash-link {
    font-size: 13px;
    color: #f59e0b;
    font-weight: 600;
    text-decoration: none;
}

.dash-link:hover {
    text-decoration: underline;
}

/* Legend */
.dash-legend {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #64748b;
}

.dash-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dash-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Chart Containers */
.dash-chart-container {
    height: 220px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.dash-chart-container-sm {
    height: 180px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Pie Legend */
.dash-pie-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.dash-pie-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.dash-pie-legend-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-pie-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dash-pie-legend-value {
    font-weight: 700;
    color: #1e293b;
}

/* Quick Form */
.dash-quick-form select,
.dash-quick-form input[type="file"] {
    margin-bottom: 10px;
}

.btn-block {
    width: 100%;
}

/* Son Sorular */
.dash-son-sorular {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-soru-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.2s;
}

.dash-soru-item:hover {
    background: #f1f5f9;
}

.dash-soru-icon {
    width: 36px;
    height: 36px;
    background: #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #64748b;
}

.dash-soru-info {
    flex: 1;
    min-width: 0;
}

.dash-soru-brans {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.dash-soru-aciklama {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-soru-right {
    text-align: right;
}

.dash-soru-durum {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

.dash-soru-durum.cozuldu {
    background: #d1fae5;
    color: #065f46;
}

.dash-soru-durum.bekliyor {
    background: #fef3c7;
    color: #92400e;
}

.dash-soru-durum.inceleniyor {
    background: #dbeafe;
    color: #1e40af;
}

.dash-soru-tarih {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

/* Etüt List */
.dash-etut-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-etut-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.dash-etut-icon {
    width: 40px;
    height: 40px;
    background: #dbeafe;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.dash-etut-info {
    flex: 1;
}

.dash-etut-ders {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.dash-etut-ogretmen {
    font-size: 12px;
    color: #64748b;
}

.dash-etut-zaman {
    font-size: 12px;
    font-weight: 600;
    color: #f59e0b;
}

/* Rozet Highlight */
.dash-rozet-highlight {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
    border-radius: 12px;
}

.dash-rozet-icon {
    font-size: 40px;
}

.dash-rozet-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}

.dash-rozet-info p {
    font-size: 12px;
    color: #65a30d;
    margin: 0;
    font-weight: 500;
}

/* Empty State */
.dash-empty {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 13px;
}

/* Dashboard Responsive - Tablet */
@media (max-width: 1200px) {
    .dash-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dash-main-grid {
        grid-template-columns: 1fr;
    }

    .dash-right-col {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .dash-card-highlight {
        grid-column: span 2;
    }
}

/* Dashboard Responsive - Mobile */
@media (max-width: 768px) {
    /* Overflow engelle */
    #dashboardTab {
        overflow-x: hidden;
        width: 100%;
    }

    /* Soru Gönder Butonu - Mobil */
    .dash-soru-gonder-top {
        padding: 16px;
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .dash-soru-gonder-top .dash-soru-gonder-icon {
        font-size: 32px;
    }

    .dash-soru-gonder-top .dash-soru-gonder-text h3 {
        font-size: 17px;
    }

    .dash-soru-gonder-top .dash-soru-gonder-text p {
        font-size: 12px;
    }

    .dash-soru-gonder-top .dash-soru-gonder-arrow {
        font-size: 24px;
    }

    /* Stats Grid - 2 sütun mobilde */
    .dash-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 15px;
    }

    .dash-stat-card {
        padding: 12px;
        gap: 10px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dash-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .dash-stat-info {
        align-items: center;
        min-width: 0;
        width: 100%;
    }

    .dash-stat-value {
        font-size: 20px;
    }

    .dash-stat-label {
        font-size: 11px;
    }

    .dash-stat-change {
        font-size: 10px;
    }

    /* Main Grid - tek sütun */
    .dash-main-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dash-left-col {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Sağ kolon - tek sütun */
    .dash-right-col {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* Kartlar */
    .dash-card {
        padding: 15px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .dash-card h3 {
        font-size: 15px;
    }

    .dash-card-header {
        margin-bottom: 12px;
    }

    .dash-card-subtitle {
        font-size: 12px;
    }

    /* Grafikler */
    .dash-chart-container {
        height: 200px;
        width: 100%;
    }

    .dash-chart-container-sm {
        height: 160px;
        width: 100%;
    }

    /* Legend */
    .dash-legend {
        gap: 10px;
        font-size: 11px;
        flex-wrap: wrap;
    }

    /* Pie Legend */
    .dash-pie-legend {
        gap: 8px;
        margin-top: 12px;
    }

    .dash-pie-legend-item {
        font-size: 13px;
    }

    /* Son sorular */
    .dash-soru-item {
        padding: 12px;
        gap: 10px;
    }

    .dash-soru-icon {
        display: none;
    }

    .dash-soru-brans {
        font-size: 14px;
    }

    .dash-soru-aciklama {
        font-size: 12px;
    }

    .dash-soru-durum {
        font-size: 11px;
        padding: 4px 10px;
    }

    .dash-soru-tarih {
        font-size: 11px;
    }

    /* Etüt List */
    .dash-etut-item {
        padding: 12px;
        gap: 10px;
    }

    .dash-etut-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .dash-etut-ders {
        font-size: 14px;
    }

    .dash-etut-ogretmen {
        font-size: 12px;
    }

    .dash-etut-zaman {
        font-size: 12px;
    }

    /* Rozet Highlight */
    .dash-rozet-highlight {
        padding: 15px;
        gap: 12px;
    }

    .dash-rozet-icon {
        font-size: 32px;
    }

    .dash-rozet-info h4 {
        font-size: 14px;
    }

    .dash-rozet-info p {
        font-size: 12px;
    }

    /* Empty State */
    .dash-empty {
        padding: 20px;
        font-size: 13px;
    }

    /* Quick Form */
    .dash-quick-form select,
    .dash-quick-form input[type="file"] {
        margin-bottom: 10px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Çok küçük ekranlar (< 480px) */
@media (max-width: 480px) {
    /* Genel */
    .container {
        padding: 5px;
    }

    .tab-content {
        padding: 10px;
    }

    .section-card {
        padding: 10px;
    }

    /* Dashboard Stats */
    .dash-stats-grid {
        gap: 8px;
    }

    .dash-stat-card {
        padding: 10px;
    }

    .dash-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .dash-stat-value {
        font-size: 18px;
    }

    .dash-card {
        padding: 12px;
    }

    .dash-chart-container {
        height: 180px;
    }

    .dash-chart-container-sm {
        height: 140px;
    }
}

/* Fotoğraf Kırpma Modalı Stilleri */
.cropper-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.cropper-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: cropperPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cropperPopIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.cropper-modal-header {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cropper-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cropper-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.cropper-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.cropper-modal-body {
    padding: 15px;
    background: #0f172a;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 280px;
    max-height: 55vh;
}

.cropper-img-wrapper {
    width: 100%;
    max-height: 100%;
}

.cropper-img-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 50vh;
}

.cropper-hint-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 12px;
    padding: 8px 15px;
    text-align: center;
    border-top: 1px solid #1e293b;
}

.cropper-modal-footer {
    padding: 14px 20px;
    background: #ffffff;
    display: flex;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
}

.btn-crop-cancel {
    flex: 1;
    padding: 12px;
    border: 2px solid #cbd5e0;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-crop-cancel:hover {
    background: #e2e8f0;
}

.btn-crop-save {
    flex: 1;
    padding: 12px;
    border: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: transform 0.2s;
}

.btn-crop-save:hover {
    transform: translateY(-1px);
}

/* ================= DEVAMSIZLIK RESPONSIVE STİLLERİ ================= */
@media (max-width: 640px) {
    #devamsizlikTab .section-card {
        padding: 16px !important;
    }
    
    #devamsizlikKayitlari > div {
        gap: 8px !important;
    }

    #devamsizlikKayitlari .yoklama-kayit-item {
        flex-direction: column;
        align-items: flex-start !important;
    }
}




