/* Ders Takip Sistemi CSS */

/* Öğrenci kartlarındaki ders sayaç stilleri */
.lesson-count-bireysel,
.lesson-count-grup {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 11px;
    color: white;
    margin-left: 3px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: default;
}

/* Bireysel normal durum (yeşil) */
.lesson-count-bireysel.lesson-normal {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

/* Grup normal durum (mavi) */
.lesson-count-grup.lesson-normal {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

/* Tamamlanan dersler - kırmızı (0 kalan) */
.lesson-count-bireysel.lesson-finished,
.lesson-count-grup.lesson-finished {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    border-color: #c82333;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
}

@keyframes finishedPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 4 kalan ders durumu (sarı) */
.lesson-count-bireysel.lesson-warning,
.lesson-count-grup.lesson-warning {
    background: linear-gradient(135deg, #FFC107, #FFD54F);
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    animation: pulse-warning 2s infinite;
}

/* 2 kalan ders durumu (kırmızı) */
.lesson-count-bireysel.lesson-danger,
.lesson-count-grup.lesson-danger {
    background: linear-gradient(135deg, #F44336, #EF5350);
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
    animation: pulse-danger 1.5s infinite;
    border-color: #FFCDD2;
}

/* Tükenen durumu (kırmızı) */
.lesson-count-bireysel.lesson-exhausted,
.lesson-count-grup.lesson-exhausted {
    background: linear-gradient(135deg, #F44336, #EF5350);
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
    animation: pulse-danger 1.5s infinite;
    border-color: #FFCDD2;
}

/* Animasyonlar */
@keyframes pulse-warning {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes pulse-danger {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
    }
    50% { 
        transform: scale(1.15); 
        box-shadow: 0 4px 8px rgba(244, 67, 54, 0.5);
    }
}

/* Ders türü etiketleri */
.lesson-type-label {
    font-size: 10px;
    font-weight: 500;
    color: #666;
    margin-right: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ders sayaç konteyner */
.lesson-counter-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* İsmin yanındaki inline sayaçlar */
.lesson-counter-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.lesson-counter-container .lesson-type-label {
    color: #888;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .lesson-count-bireysel,
    .lesson-count-grup {
        min-width: 20px;
        height: 20px;
        line-height: 18px;
        font-size: 11px;
    }
    
    .lesson-counter-container {
        gap: 6px;
        padding: 3px 6px;
    }
}

/* Hover efektleri - sadece görsel, tıklanamaz */
.lesson-count-bireysel:hover,
.lesson-count-grup:hover {
    transform: scale(1.05);
    cursor: default;
}

/* Tooltip stili */
.lesson-count-bireysel[title]:hover,
.lesson-count-grup[title]:hover {
    position: relative;
}

/* Ders takip tablosu stilleri */
.ders-takip-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ders-takip-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
}

.ders-takip-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
}

.ders-takip-table tr:hover {
    background-color: #f8f9fa;
}

.ders-takip-table .number-cell {
    text-align: center;
    font-weight: 600;
}

/* Durum renkleri */
.status-normal { color: #4CAF50; }
.status-warning { color: #FF9800; }
.status-danger { color: #F44336; }

/* Öğrenci kartı - ders tükenen durumu */
.student-card-exhausted {
    background: linear-gradient(135deg, #ffebee, #ffcdd2) !important;
    border: 2px solid #f44336 !important;
    order: 999 !important; /* En alta gönder */
}

.student-card-exhausted .student-name {
    color: #d32f2f !important;
    font-weight: 600;
}

.student-card-exhausted .student-info {
    color: #c62828 !important;
}

@keyframes card-pulse-danger {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 4px 12px rgba(244, 67, 54, 0.5);
    }
}

/* Öğrenci listesi için flexbox düzenlemesi */
.student-list-container {
    display: flex;
    flex-direction: column;
}

/* Öğrenci kartları için sıralama */
.uk-card.student-card-exhausted {
    order: 999;
}