/* Quiz Interface Styles - Minimal Dashboard Theme */
:root {
    /* Match existing dashboard colors */
    --primary-color: #172859;
    --secondary-color: #3DC886;
    --primary-dark: #1e293b;
    --primary-green: #3DB57C;
    --accent-green: rgba(61, 181, 124, 0.1);
    
    /* Slate palette from frontend.css */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    
    /* Status colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    
    /* Border radius */
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Main Quiz Container - Minimal Design */
.lqp-quiz-interface {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-8);
    font-family: var(--font-family);
    background: var(--slate-50);
    min-height: 100vh;
}

/* Simple Quiz Header */
.lqp-quiz-header {
    background: white;
    color: var(--slate-700);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}

.lqp-quiz-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 var(--space-4) 0;
    color: var(--primary-dark);
}

.lqp-quiz-subtitle {
    font-size: 0.875rem;
    color: var(--slate-600);
    margin: 0;
    font-weight: 400;
}

/* Simple Progress Bar */
.lqp-progress-container {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}

.lqp-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.lqp-progress-info {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    flex-wrap: wrap;
}

.lqp-progress-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate-600);
    font-size: 0.875rem;
    font-weight: 500;
}

.lqp-progress-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.lqp-timer {
    background: var(--warning);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

.lqp-timer.warning {
    background: var(--error);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.lqp-progress-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--slate-200);
    border-radius: 0.25rem;
    overflow: hidden;
}

.lqp-progress-fill {
    height: 100%;
    background: var(--primary-green);
    border-radius: 0.25rem;
    transition: var(--transition-all);
}

/* Simple Question Card */
.lqp-question-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-6);
    border: 1px solid var(--slate-200);
}

.lqp-question-header {
    background: var(--slate-50);
    color: var(--slate-700);
    padding: var(--space-6);
    border-bottom: 1px solid var(--slate-200);
}

.lqp-question-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-500);
    margin-bottom: 0.5rem;
}

.lqp-question-text {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--primary-dark);
}

.lqp-question-body {
    padding: var(--space-6);
}

/* Simple Answer Options */
.lqp-options-container {
    display: grid;
    gap: 0.75rem;
    margin-top: var(--space-4);
}

.lqp-option {
    background: white;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-all);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lqp-option:hover {
    border-color: var(--primary-green);
    background: var(--accent-green);
}

.lqp-option.selected {
    border-color: var(--primary-green);
    background: var(--accent-green);
}

.lqp-option.correct {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.lqp-option.incorrect {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.lqp-option-letter {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--primary-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.lqp-option.selected .lqp-option-letter {
    background: var(--primary-green);
}

.lqp-option.correct .lqp-option-letter {
    background: var(--success);
}

.lqp-option.incorrect .lqp-option-letter {
    background: var(--error);
}

.lqp-option-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--slate-700);
    line-height: 1.5;
    flex: 1;
}

/* Simple Quiz Actions */
.lqp-quiz-actions {
    display: flex;
    justify-content: center;
    margin-top: var(--space-6);
}

.lqp-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-all);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
}

.lqp-btn-primary {
    background: var(--primary-green);
    color: white;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.lqp-btn-primary:hover {
    background: var(--success);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.lqp-btn-primary:disabled {
    background: var(--slate-400);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Simple Results Screen */
.lqp-quiz-results {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}

.lqp-results-header {
    background: var(--slate-50);
    padding: var(--space-6);
    border-bottom: 1px solid var(--slate-200);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.lqp-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}

.lqp-results-subtitle {
    font-size: 0.875rem;
    color: var(--slate-600);
    margin: 0.5rem 0 0 0;
}

/* Question Review List */
.lqp-question-review {
    padding: var(--space-6);
}

.lqp-review-item {
    padding: var(--space-4);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.lqp-review-item.correct {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.05);
}

.lqp-review-item.incorrect {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.lqp-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.lqp-review-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-500);
}

.lqp-review-status {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.lqp-review-status.correct {
    background: var(--success);
    color: white;
}

.lqp-review-status.incorrect {
    background: var(--error);
    color: white;
}

.lqp-review-question {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--space-4);
    line-height: 1.4;
}

.lqp-review-answers {
    display: grid;
    gap: 0.5rem;
}

.lqp-review-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.lqp-review-option.correct-answer {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    font-weight: 600;
}

.lqp-review-option.user-answer {
    background: var(--slate-100);
    color: var(--slate-700);
    font-weight: 600;
}

.lqp-review-option.user-answer.incorrect {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.lqp-option-indicator {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--slate-300);
    color: white;
    flex-shrink: 0;
}

.lqp-review-option.correct-answer .lqp-option-indicator {
    background: var(--success);
}

.lqp-review-option.user-answer .lqp-option-indicator {
    background: var(--slate-500);
}

.lqp-review-option.user-answer.incorrect .lqp-option-indicator {
    background: var(--error);
}

/* Loading States */
.lqp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    flex-direction: column;
    gap: 20px;
}

.lqp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lqp-loading-text {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lqp-quiz-interface {
        padding: var(--space-4);
    }
    
    .lqp-quiz-header,
    .lqp-progress-container,
    .lqp-question-header,
    .lqp-question-body,
    .lqp-question-review {
        padding: var(--space-4);
    }
    
    .lqp-quiz-title {
        font-size: 1.25rem;
    }
    
    .lqp-progress-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .lqp-question-text {
        font-size: 1rem;
    }
    
    .lqp-option {
        padding: 0.75rem;
    }
    
    .lqp-option-letter {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.75rem;
    }
    
    .lqp-review-item {
        padding: var(--space-4);
    }
    
    .lqp-review-answers {
        gap: 0.25rem;
    }
}

 