:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --success: #10b981;
    --danger: #ef4444;
    --surface: #ffffff;
    --bg: #f3f4f6;
    --text-main: #1f2937;
    --text-muted: #6b7280;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    margin: 0;
    overflow: hidden;
}

.test-layout { display: flex; height: 100vh; }

/* Sidebar & Palette */
.sidebar {
    width: 300px;
    background: var(--surface);
    border-right: 1px solid #e5e7eb;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; }
.dot { width: 12px; height: 12px; background: var(--primary); border-radius: 50%; }

.palette-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    overflow-y: auto;
    padding: 10px 5px;
}

.palette-btn {
    height: 40px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.palette-btn.answered { background: #e0e7ff; color: var(--primary); border-color: var(--primary); }
.palette-btn.correct { background: var(--success) !important; color: white !important; border: none; }
.palette-btn.incorrect { background: var(--danger) !important; color: white !important; border: none; }

/* Main Content Area */
.container { flex: 1; overflow-y: auto; padding: 0 40px 40px 40px; scroll-behavior: smooth; }
.sticky-header {
    position: sticky;
    top: 0;
    background: rgba(243, 244, 246, 0.8);
    backdrop-filter: blur(8px);
    padding: 20px 0;
    z-index: 10;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.question-block {
    background: var(--surface);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

/* Premium Try Again Button */
.try-again-btn {
    position: relative;
    padding: 16px 32px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    margin: 20px 0;
}

.try-again-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.main-submit {
    margin-top: auto;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Utils */
.hidden { display: none; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 4px 0; }
.box { width: 12px; height: 12px; border-radius: 3px; }
.gray { background: #e5e7eb; } .blue { background: #e0e7ff; }
.green { background: var(--success); } .red { background: var(--danger); }