/* General Styles */
/* Nunito font importu HTML head kısmında olduğu için buradan kaldırıldı. */
/* Inter fontu kodda kullanılmadığı için importu kaldırıldı. */

:root {
    --primary-color: #4776E6;
    --primary-light: #e8f0ff;
    --primary-dark: #3264d0;
    --secondary-color: #FF5E62;
    --secondary-light: #fff5f5;
    --text-color: #333;
    --text-light: #6c757d;
    --bg-color: #f8f9fa; /* Şu anda kullanılmıyor, kaldırılabilir veya gelecekteki kullanım için bırakılabilir. */
    --border-radius: 16px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Şu anda kullanılmıyor, kaldırılabilir. */
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #4776E6, #8E54E9); /* Şu anda kullanılmıyor, kaldırılabilir. */
    --gradient-secondary: linear-gradient(135deg, #FF5E62, #FF9966); /* Şu anda kullanılmıyor, kaldırılabilir. */
    --box-shadow-hover: 0 15px 40px rgba(71, 118, 230, 0.2);
    --box-shadow-light: 0 8px 25px rgba(0, 0, 0, 0.05);
    --round-button-radius: 50%; /* Şu anda kullanılmıyor, kaldırılabilir. */
    --circle-dimension: 50px; /* Şu anda kullanılmıyor, kaldırılabilir. */
}

body, html {
    background-color: #f7f9fc !important;
    color: #333 !important;
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* YÜKLEME EKRANI STILLERİ */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #f7f9fc;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.loading-hidden {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden !important;
    transition-delay: 0s !important;
}

/* İçeriği başlangıçta gizle, JS ile göstereceğiz */
#content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0s 0.5s;
}

.content-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transition-delay: 0.5s !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Content */
#content {
    width: 100%;
    min-height: 100vh;
    transition: var(--transition);
    margin-left: 0;
    /* body, html üzerinde tanımlandığı için background-color ve color buradan kaldırıldı */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(71, 118, 230, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(142, 84, 233, 0.07) 0%, transparent 25%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 247, 255, 0.9) 100%);
    background-attachment: fixed;
}

/* User Profile Component stilleri artık user_component/user-profile.css dosyasında */

/* Calendar Icon */
.calendar-icon {
    width: 80px;
    height: 80px;
    background: #6366F1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    animation: scaleOnly 2s infinite;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}
.calendar-icon::before, .calendar-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
}
.calendar-icon::before { z-index: -1; opacity: 0.6; }
.calendar-icon::after { z-index: -2; opacity: 0.4; }
.calendar-icon i {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 2;
}
@keyframes scaleOnly {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Background accents */
.accent-circle {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    filter: blur(60px);
    opacity: 0.5;
}
.accent-circle-1 { width: 300px; height: 300px; background: rgba(71, 118, 230, 0.15); top: -150px; right: -100px; }
.accent-circle-2 { width: 400px; height: 400px; background: rgba(142, 84, 233, 0.15); bottom: -200px; left: -150px; }

/* Glass Card Styling */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

/* Statistics Container */
.statistics-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 10px 30px 10px;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 30px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
    min-width: 200px;
}
.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    position: relative;
    overflow: hidden;
    color: white;
}
.stat-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(8px);
    opacity: 0.5;
    transform: scale(1.2);
}
.stat-icon.completed { background: linear-gradient(135deg, #10B981, #34D399); }
.stat-icon.progress { background: linear-gradient(135deg, #6366F1, #818CF8); }
.stat-icon.remaining { background: linear-gradient(135deg, #F59E0B, #FBBF24); }
.stat-icon.timer { background: linear-gradient(135deg, #EC4899, #F472B6); }

.stat-info { display: flex; flex-direction: column; gap: 5px; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text-color); line-height: 1; letter-spacing: -0.5px; white-space: nowrap; }
.stat-label { font-size: 1rem; color: var(--text-light); font-weight: 500; }

/* Schedule Navigation */
.schedule-navigation { background: white; border-radius: var(--border-radius); padding: 20px; margin-bottom: 30px; box-shadow: var(--box-shadow-light); }
.schedule-navigation h3 { font-weight: 700; color: var(--text-color); font-size: 1.3rem; }

/* Schedule Container */
.schedule-container { background: white; border-radius: var(--border-radius); padding: 25px; box-shadow: var(--box-shadow-light); margin-top: 30px; }
.day-container { background: var(--primary-light); border-radius: var(--border-radius); padding: 20px; margin-bottom: 20px; border-left: 4px solid var(--primary-color); animation: fadeIn 0.5s ease-in-out; }
.day-header { font-weight: 700; font-size: 1.2rem; padding-bottom: 15px; border-bottom: 1px solid rgba(0, 0, 0, 0.1); margin-bottom: 15px; color: var(--primary-color); }

/* Ders kutusunun varsayılan stili */
.lesson-item {
    background: white;
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #ddd; /* Varsayılan sol kenarlık */
}

.lesson-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    filter: brightness(97%);
}

.lesson-item-header { display: flex; justify-content: space-between; align-items: center; }
.lesson-name { font-weight: 600; font-size: 1.1rem; }

/* Ders durumu etiketi */
.lesson-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    background-color: rgba(255, 255, 255, 0.5); /* Yarı saydam arka plan */
}

/* --- Ders Durumuna Göre Kutu Stilleri --- */

/* Tamamlanmış Ders Kutusu */
.lesson-item.lesson-item-completed {
    background-color: #d1fae5; /* Açık yeşil arka plan */
    border-left-color: #065f46; /* Koyu yeşil kenarlık */
}
.lesson-item.lesson-item-completed .lesson-name,
.lesson-item.lesson-item-completed .lesson-time {
    color: #047857; /* Koyu yeşil metin */
}
.lesson-item.lesson-item-completed .lesson-time i {
    color: #059669; /* Orta ton yeşil ikon */
}
.lesson-item.lesson-item-completed .lesson-status {
    color: #065f46; /* Koyu yeşil durum metni */
}
.lesson-item.lesson-item-completed .lesson-note-section textarea {
    background-color: #f0fdf4; /* Çok açık yeşil not alanı */
    border-color: #a7f3d0;
}

/* Bekleyen Ders Kutusu */
.lesson-item.lesson-item-pending {
    background-color: #fee2e2; /* Açık kırmızı arka plan */
    border-left-color: #991b1b; /* Koyu kırmızı kenarlık */
}
.lesson-item.lesson-item-pending .lesson-name,
.lesson-item.lesson-item-pending .lesson-time {
    color: #b91c1c; /* Koyu kırmızı metin */
}
.lesson-item.lesson-item-pending .lesson-time i {
    color: #dc2626; /* Orta ton kırmızı ikon */
}
.lesson-item.lesson-item-pending .lesson-status {
    color: #991b1b; /* Koyu kırmızı durum metni */
}
.lesson-item.lesson-item-pending .lesson-note-section textarea {
    background-color: #fff1f2; /* Çok açık kırmızı not alanı */
    border-color: #fecaca;
}

/* --- Diğer Stiller --- */

.lesson-info {
    display: flex;
    margin-top: 10px;
    justify-content: space-between;
    align-items: center;
}
.lesson-time {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}
.lesson-time i {
    color: var(--primary-color);
}
.lesson-note-section {
    margin-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 10px;
}
.lesson-note-section textarea {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    resize: none;
    font-family: inherit;
    min-height: 70px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}
.lesson-note-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(71, 118, 230, 0.2);
}
.save-note-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}
.save-note-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.save-note-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Warning Badge */
.warning-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fee2e2;
    color: #991b1b;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 5px;
    animation: pulse 2s infinite;
}
.warning-badge i {
    font-size: 1rem;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #d1fae5;
    color: #065f46;
    padding: 15px 25px;
    border-radius: 10px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
}
.notification.error {
    background: #fee2e2;
    color: #991b1b;
}

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } }


/* Responsive Styles */
@media (max-width: 992px) {
    .statistics-container { flex-wrap: wrap; }
    .stat-item { min-width: 45%; }
}

@media (max-width: 768px) {
    #content { margin-left: 0; }
    .calendar-icon { width: 70px; height: 70px; }
    .calendar-icon i { font-size: 32px; }
    .statistics-container { flex-direction: column; padding: 20px; gap: 15px; }
    .stat-item { width: 100%; padding: 15px 20px; }
    .stat-icon { width: 45px; height: 45px; font-size: 1.4rem; }
    .stat-value { font-size: 1.6rem; }
    .schedule-navigation h3 { font-size: 1rem; }
    .schedule-navigation button { padding: 6px 10px; font-size: 0.85rem; }
    .lesson-item-header { flex-direction: column; align-items: flex-start; }
    .lesson-status { margin-top: 5px; }
    .lesson-info { flex-direction: column; align-items: flex-start; gap: 5px; }
}

@media (max-width: 480px) {
    .schedule-navigation { padding: 15px; }
    .schedule-navigation .d-flex {
        display: grid;
        grid-template-areas:
            "title title"
            "prev next";
        gap: 15px;
    }
    .schedule-navigation h3 { grid-area: title; text-align: center; margin-bottom: 0 !important; }
    #prevSchedule { grid-area: prev; }
    #nextSchedule { grid-area: next; }
}

/* Süre Doldu metni için taşma düzeltmesi */
.stat-value.expired {
    font-size: 1.3rem;
    white-space: normal;
    line-height: 1.2;
    color: #991b1b;
}


/* Sol Üst Geri Butonu Stili */
.back-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 53, 69, 0.3);
}