/* Deneme Sınavı Dashboard - Premium Tema (Performans Optimize Edilmiş Sürüm) */
:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --accent: #fa8231;
    --danger: #e74c3c;
    --success: #27ae60;
    --glass: rgba(255, 255, 255, 0.85); /* Bulanıklık kalktığı için opaklık artırıldı */
    --glass-border: rgba(255, 255, 255, 0.5);
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

body,
input,
button,
select,
textarea {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    min-height: 100dvh;
    color: #333;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    max-width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Glassmorphism - PERFORMANS İÇİN OPTİMİZE EDİLDİ (Blur kaldırıldı) */
.glass-panel {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    color: #333; /* Arka plan daha beyaz olduğu için yazı rengi koyulaştırıldı */
}

/* Blank Mode */
body.blank-mode {
    background: #0f172a;
}

body.blank-mode .container {
    display: none !important;
}

body.blank-mode .modal {
    background: rgba(0, 0, 0, 0.95); /* Blur yerine daha koyu saydamlık */
}

body.blank-mode #closeExamModal,
body.blank-mode #cancelExamBtn {
    display: none !important;
}

/* Main Layout */
.main-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 15px;
    flex: 1;
    min-height: 0;
}

/* Sidebar */
.sidebar {
    padding: 25px;
    display: flex;
    flex-direction: column;
    background: white;
    color: #333;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.date-time-container {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-dark);
}

.current-date {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}

.current-time {
    font-size: 3em;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

.sidebar h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    color: #333;
}

.lesson-list {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.lesson-list li {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #f8f9fa;
    border-left: 5px solid #ddd;
    color: #333;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lesson-list li.active {
    background: #eef2ff;
    border-left-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* pulse-glow animasyonu işlemciyi yormaması için pasifleştirildi */

.lesson-list li.break-time {
    border-left-color: var(--success);
}

.lesson-list li.lunch-time {
    border-left-color: var(--accent);
}

.lesson-item-time {
    font-size: 0.9em;
    opacity: 0.8;
    display: block;
    margin-top: 5px;
}

/* Exam Content */
#examModeContent {
    display: flex;
    flex: 1;
    min-height: 0;
}

.exam-three-column-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 15px;
    flex: 1;
}

.exam-center-column {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.exam-section-title {
    font-size: 3.5em;
    font-weight: 900;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4px;
}

.exam-times-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.exam-time-box {
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.exam-time-box-start {
    background: var(--success);
}

.exam-time-box-end {
    background: var(--danger);
}

.exam-time-label {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.exam-time-value {
    font-size: 4em;
    font-weight: 800;
}

.exam-countdown-box {
    background: white;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.countdown-label-top {
    font-size: 1.3em;
    font-weight: 700;
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.countdown-display {
    font-size: 6em;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--accent) 0%, var(--danger) 100%);
    border-radius: 15px;
    padding: 20px;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 10px 25px rgba(250, 130, 49, 0.3);
}

.progress-bar-container {
    width: 100%;
    height: 18px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 25px;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    transform-origin: left;
    transition: transform 1s linear;
    width: 100%;
}

.exam-right-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exam-institution-box {
    padding: 45px 25px;
    text-align: center;
    background: var(--bg-gradient);
    color: white;
}

.institution-label {
    font-size: 1.7em;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.institution-code {
    font-size: 4.5em;
    font-weight: 800;
}

.exam-warning-box {
    padding: 30px;
    flex: 1;
    background: white;
    color: #333;
}

.warning-icon {
    font-size: 4em;
    margin-bottom: 10px;
    text-align: center;
}

.warning-title {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--danger);
    text-align: center;
    margin-bottom: 20px;
}

.warning-items {
    list-style: none;
}

.warning-items li {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 1.5em;
    border-left: 6px solid var(--primary);
}

.exam-quote {
    text-align: center;
    margin-top: auto;
    padding: 25px;
    background: var(--bg-gradient);
    border-radius: 15px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.exam-quote-text {
    font-size: 1.2em;
    display: block;
    margin-bottom: 8px;
}

.exam-quote-author {
    font-size: 1.2em;
}

/* Modals - Blur kaldırıldı */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: white;
    margin: 5vh auto;
    padding: 40px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    color: #333;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: var(--danger);
}

.modal h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.5em;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1.1em;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
}

.lesson-time-row {
    display: grid;
    grid-template-columns: 100px 1fr 1fr 50px;
    gap: 15px;
    margin-bottom: 12px;
    align-items: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 12px;
}

.lesson-time-row label {
    font-weight: 700;
    color: #555;
}

.lesson-time-row input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
}

.modal h3 {
    margin: 25px 0 15px 0;
    color: var(--primary-dark);
    font-size: 1.2em;
    border-left: 5px solid var(--primary);
    padding-left: 10px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1em;
    transition: 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: #eee;
    color: #666;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

/* Sidebar Buttons */
.sidebar-buttons {
    margin-top: 20px;
}

.sidebar-buttons .btn {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    body { overflow-x: hidden; height: auto; min-height: 100vh; }
    .container { width: 100%; max-width: 100%; padding: 8px; overflow-x: hidden; }
    .main-content { grid-template-columns: 1fr; width: 100%; }
    .sidebar { order: 2; padding: 15px; width: 100%; }
    #examModeContent { order: 1; width: 100%; min-height: auto; }
    .exam-three-column-layout { grid-template-columns: 1fr; width: 100%; gap: 10px; }
    .exam-center-column { padding: 15px; width: 100%; box-sizing: border-box; }
    .exam-section-title { font-size: 1.8em; text-align: center; word-wrap: break-word; line-height: 1.2; }
    .current-time { font-size: 2.2em; }
    .exam-time-value { font-size: 2.2em; }
    .countdown-display { font-size: 3em !important; padding: 10px !important; }
    .exam-quote { padding: 12px; width: 100%; margin: 10px 0; }
    .exam-quote-text { font-size: 1em; line-height: 1.4; }
    .exam-quote-author { font-size: 0.9em; }
}

@media (max-width: 480px) {
    .exam-section-title { font-size: 1.4em; }
    .exam-time-value { font-size: 1.8em; }
    .countdown-display { font-size: 2.4em !important; }
    .current-time { font-size: 1.6em; }
    .exam-times-container { grid-template-columns: 1fr; gap: 8px; }
    .modal-content { width: 98%; padding: 10px; }
    .exam-time-box { padding: 15px; }
    .countdown-label-top { font-size: 1em; letter-spacing: 1px; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}

/* Context Menu - Blur kaldırıldı */
.context-menu {
    position: fixed;
    z-index: 9999;
    min-width: 220px;
    display: none;
    padding: 8px;
    background: rgba(15, 23, 42, 0.98); /* Blur yerine neredeyse tam opaklık */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.context-menu-item {
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}