/* General Styles */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');

: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;
    --border-radius: 12px;
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #4776E6, #8E54E9);
    --gradient-secondary: linear-gradient(135deg, #FF5E62, #FF9966);
    --box-shadow-hover: 0 10px 30px rgba(71, 118, 230, 0.2);
    --box-shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --round-button-radius: 50%;
    --circle-dimension: 50px;
}

body, html {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
}

/* 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: opacity 0.5s ease, visibility 0s;
}

/* 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;
}

/* Wrapper */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    position: relative;
    min-height: 100vh;
}

/* Content */
#content {
    width: 100%;
    transition: var(--transition);
    margin-left: 0; 
    background-color: #f7f9fc !important;
    display: flex;
    flex-direction: column;
}

/* Kullanıcı bilgisinin yeni konumu (sağ üst) */
/* User Profile Component stilleri artık user_component/user-profile.css dosyasında */

/* Make all headings use proper font weights */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Adjust font weights for specific elements */
.btn {
    font-weight: 500;
}

/* Background Accents */
.accent-circle {
    position: fixed;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
    filter: blur(60px);
    z-index: -1;
}

.accent-circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
    animation: pulse 15s ease-in-out infinite alternate;
}

.accent-circle-2 {
    width: 500px;
    height: 500px;
    bottom: -100px;
    right: -100px;
    animation: pulse 18s ease-in-out infinite alternate-reverse;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.05); opacity: 0.08; }
    100% { transform: scale(0.95); opacity: 0.05; }
}

/* Calendar Icon */
.calendar-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366F1, #818CF8);
    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);
    font-size: 2.5rem;
    color: white;
}

.calendar-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    opacity: 0.6;
    filter: blur(10px);
}

.calendar-icon i {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 2;
}

.calendar-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    z-index: -2;
    opacity: 0.4;
    filter: blur(15px);
}

@keyframes scaleOnly {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Card Styling */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

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

.glass-card .card-body {
    padding: 2rem;
}

/* Calendar Styling */
.calendar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    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;
}

.day {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow-light);
    display: flex;
    flex-direction: column;
    min-height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.day-header {
    font-weight: 600;
    font-size: 1.3rem;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    color: var(--text-color);
}

.lessons {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.lesson {
    background: var(--primary-light);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-left: 4px solid transparent;
}

.lesson:hover {
    transform: translateX(8px);
    background: linear-gradient(to right, var(--primary-light), white);
    border-left: 4px solid var(--primary-color);
}

.lesson::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lesson:hover::after {
    opacity: 1;
}

.lesson-name {
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.attendance {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
    margin-top: auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.attendance label {
    font-weight: 400;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.attendance label:hover {
    color: var(--primary-color);
}

.attendance-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.attendance-checkbox:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.attendance-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Alert Styling */
.alert {
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
}

.alert-info {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.alert-warning {
    background-color: #fff9e6;
    color: #e6a100;
}

.alert-danger {
    background-color: var(--secondary-light);
    color: var(--secondary-color);
}

/* 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;
}

.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;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    opacity: 0;
    transition: all 0.3s ease;
}

.stat-item.completed::before {
    background: linear-gradient(135deg, #10B981, #34D399);
    opacity: 1;
}

.stat-item.remaining::before {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    opacity: 1;
}

.stat-item.progress::before {
    background: linear-gradient(135deg, #6366F1, #818CF8);
    opacity: 1;
}

.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;
}

.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);
    color: white;
}

.stat-icon.remaining {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    color: white;
}

.stat-icon.progress {
    background: linear-gradient(135deg, #6366F1, #818CF8);
    color: white;
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 300;
}

/* Badge styling */
.badge {
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.badge i {
    margin-right: 5px;
}

/* Animation for gradient shift */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

.day {
    animation: slideIn 0.5s ease forwards;
}

.day:nth-child(2) { animation-delay: 0.1s; }
.day:nth-child(3) { animation-delay: 0.2s; }
.day:nth-child(4) { animation-delay: 0.3s; }
.day:nth-child(5) { animation-delay: 0.4s; }
.day:nth-child(6) { animation-delay: 0.5s; }
.day:nth-child(7) { animation-delay: 0.6s; }

/* Media Queries */
@media (max-width: 1200px) {
    .calendar {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 992px) {
    .calendar {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .day {
        padding: 15px;
    }
    
    .lesson {
        padding: 10px 12px;
    }
    
    .user-name {
        display: block;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--primary-color);
        text-align: right;
    }
    
    .user-info-top-right {
        margin-left: auto;
    }
    
    .calendar-icon {
        width: 70px;
        height: 70px;
    }
    
    .calendar-icon i {
        font-size: 32px;
    }

    .statistics-container {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .stat-item {
        padding: 15px 20px;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .stat-value {
        font-size: 1.6rem;
        font-weight: 500;
    }
    
    .glass-card .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .day-header {
        font-size: 1.1rem;
    }
    
    .lesson-name {
        font-size: 0.9rem;
    }
    
    .glass-card .card-body {
        padding: 1.25rem;
    }
}

/* 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);
}