/* css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --success: #10b981;
    --error: #ef4444;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary), #020617);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Glassmorphism Container */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px;
    margin: 2rem;
    animation: fadeIn 0.6s ease-out;
}

/* Typography */
h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(to right, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Forms */
.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.primary-btn {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.primary-btn:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}

.primary-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

/* Alerts and Info */
.info-box {
    margin-top: 2rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-box ol {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.25rem;
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.success-alert {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Slides & Exam (Modul 1 & 2) */
.slide-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
}

.slide-image {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
    object-fit: contain;
}

/* Countdown UI */
.countdown-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.progress-text {
    font-weight: 600;
    color: var(--text-secondary);
}

.timer-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timer-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.timer-finished {
    border-color: var(--success);
    color: var(--success);
}

/* Exam specific */
.question-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    margin-bottom: 2rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-color);
}

.radio-option input[type="radio"] {
    margin-right: 1rem;
    transform: scale(1.2);
    accent-color: var(--accent-color);
}

/* Digital Question Text Layout */
.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.option-text {
    flex: 1;
    font-weight: 500;
}

/* Explanation Boxes */
.explanation-box {
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: none; /* Hidden by default */
}

.explanation-correct {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: #a7f3d0;
}

.explanation-wrong {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: #fecaca;
}

.explanation-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Selected state for radio option */
.radio-option.selected-correct {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.radio-option.selected-wrong {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

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

@media (max-width: 768px) {
    .glass-container { padding: 1.5rem; margin: 1rem; }
    .question-options { grid-template-columns: 1fr; }
    h1 { font-size: 1.5rem; }
}
