/* General Styles */
/* @import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap'); - HTML'de zaten yüklü, tekrar etmeye gerek yok */

: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 {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    height: 100vh;
}

/* 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;
    /* Opaklık geçişini daha basit hale getirildi. Görünürlük JavaScript tarafından daha sonra ayarlanacak. */
    transition: opacity 0.5s ease-out; 
}

.loading-hidden {
    opacity: 0 !important;
    pointer-events: none; /* Üzerine tıklanamaz hale getir */
    /* visibility: hidden özelliği JavaScript tarafından opacity geçişi tamamlandıktan sonra atanacak veya display: none ile kaldırılacak. */
}

/* İçeriği başlangıçta gizle, JS ile göstereceğiz */
#content {
    opacity: 0;
    visibility: hidden; /* Başlangıçta gizli */
    /* Opaklık geçişini daha basit hale getirildi. */
    transition: opacity 0.5s ease-in; 
}

.content-visible {
    opacity: 1 !important;
    visibility: visible !important; /* Opaklık geçişi başlamadan önce görünür yapıldı */
}

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

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(71, 118, 230, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Main Exam Card */
.main-exam-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.exam-icon-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.exam-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(71, 118, 230, 0.3);
    position: relative;
}

.exam-icon i {
    color: white;
    font-size: 2.5rem;
}

.main-exam-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Countdown Display */
.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.countdown-unit {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 0 0.5rem;
    min-width: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.countdown-unit span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    display: block;
}

.countdown-unit small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
}

.countdown-separator {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-top: 1rem;
}

/* Exam Progress Bar */
.exam-progress {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.exam-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 5px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.exam-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Exam Info */
.exam-info {
    text-align: left;
    background: var(--primary-light);
    padding: 1rem;
    border-radius: 10px;
}

.exam-info p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.exam-info i {
    color: var(--primary-color);
}

/* Section Titles */
.exam-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.exam-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Exam Cards */
.exam-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow-light);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.exam-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.exam-date-time {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.exam-date-time i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.exam-countdown {
    display: flex;
    justify-content: space-between;
    background: var(--primary-light);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.exam-countdown-item {
    text-align: center;
}

.exam-countdown-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.exam-countdown-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
}

/* Modal Styling */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
}

.btn-close {
    background-color: white;
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-exam-card {
        padding: 1.5rem;
    }
    .main-exam-title {
        font-size: 1.5rem;
    }
    .countdown-unit {
        min-width: 80px;
        padding: 1rem;
    }
    .countdown-unit span {
        font-size: 2.2rem;
    }
    .countdown-separator {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .countdown-unit {
        min-width: 60px;
        padding: 0.75rem;
    }
    .countdown-unit span {
        font-size: 1.8rem;
    }
    .countdown-separator {
        font-size: 1.6rem;
        margin-top: 0.5rem;
    }
    .exam-icon {
        width: 80px;
        height: 80px;
    }
    .exam-icon i {
        font-size: 2rem;
    }
    .main-exam-title {
        font-size: 1.25rem;
    }
    .exam-section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .countdown-unit span {
        font-size: 1.5rem;
    }

    .countdown-separator {
        font-size: 1.4rem;
        margin-top: 0.5rem;
    }

    .exam-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .main-exam-card {
        padding: 1rem;
    }

    .exam-info {
        padding: 0.75rem;
    }

    .exam-countdown-number {
        font-size: 1.25rem;
    }

    .exam-countdown-label {
        font-size: 0.7rem;
    }

    .badge {
        font-size: 0.7rem;
    }
}

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