/**
 * QuizGen — Black & White Theme
 */

/* ============================================
   CSS Variables
   ============================================ */

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: #0f0f0f;
    --bg-hover: #1a1a1a;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --border-color: #2a2a2a;
    --border-light: #1a1a1a;
    
    --accent: #ffffff;
    --accent-hover: #e0e0e0;
    
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.7);
    
    --transition: all 0.2s ease;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { color: var(--text-secondary); }

.text-muted { color: var(--text-muted); font-size: 0.875rem; }

/* ============================================
   Screen Management
   ============================================ */

.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

/* ============================================
   Login Screen
   ============================================ */

#screen-login {
    justify-content: center;
    align-items: center;
    background: var(--bg-primary);
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 380px;
}

.login-brand {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-icon.small {
    width: 36px;
    height: 36px;
    margin: 0;
}

.login-brand h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ============================================
   Form Elements
   ============================================ */

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.hidden {
    display: none !important;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Header
   ============================================ */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.125rem;
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.library-header {
    margin-bottom: 2rem;
}

.library-header h2 {
    margin-bottom: 0.5rem;
}

.library-actions {
    margin-bottom: 2rem;
}

/* ============================================
   Documents Grid
   ============================================ */

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.document-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.document-card:hover {
    border-color: var(--text-muted);
    background: var(--bg-hover);
}

.document-card.selected {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.document-card .checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.document-card .checkbox svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: var(--transition);
}

.document-card.selected .checkbox {
    background: var(--accent);
    border-color: var(--accent);
}

.document-card.selected .checkbox svg {
    opacity: 1;
    stroke: var(--bg-primary);
}

.document-card h4 {
    margin-bottom: 0.75rem;
    padding-right: 2rem;
}

.doc-preview {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.doc-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.doc-stats span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.doc-actions {
    display: flex;
    gap: 0.25rem;
}

.doc-actions button {
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.doc-actions button:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.doc-actions button.delete:hover {
    color: var(--error);
}

.doc-actions button svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
}

.empty-icon svg {
    width: 100%;
    height: 100%;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* ============================================
   Selection Bar
   ============================================ */

.selection-bar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
}

.selection-info {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.selection-info span {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   Modal
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-content.modal-small {
    max-width: 420px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

/* ============================================
   Quiz Config
   ============================================ */

.config-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.config-section > label {
    font-weight: 500;
    color: var(--text-secondary);
}

.difficulty-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.difficulty-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.difficulty-btn:hover {
    border-color: var(--text-muted);
}

.difficulty-btn.active {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.diff-icon {
    font-size: 1.5rem;
}

.diff-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.source-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.source-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-family: var(--font-primary);
    color: var(--text-primary);
}

.source-btn:hover:not(:disabled) {
    border-color: var(--text-muted);
}

.source-btn.active {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.source-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.source-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.question-count {
    margin-left: auto;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================
   Loading Screen
   ============================================ */

#screen-loading {
    justify-content: center;
    align-items: center;
}

.loading-container {
    text-align: center;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

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

.loading-container h3 {
    margin-bottom: 0.5rem;
}

/* ============================================
   Quiz Screen
   ============================================ */

#screen-quiz .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 2rem;
}

.quiz-progress {
    font-family: var(--font-mono);
    font-size: 1.125rem;
}

.progress-sep {
    color: var(--text-muted);
    margin: 0 0.25rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

.quiz-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.question-card {
    width: 100%;
    max-width: 700px;
}

.question-type {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.answers-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.answer-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.answer-option:hover {
    border-color: var(--text-muted);
    background: var(--bg-hover);
}

.answer-option.selected {
    border-color: var(--accent);
    background: var(--bg-hover);
}

.option-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.answer-option.selected .option-marker {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
}

.option-text {
    flex: 1;
}

.open-answer-input {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    resize: vertical;
}

.open-answer-input:focus {
    outline: none;
    border-color: var(--accent);
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   Results Screen
   ============================================ */

.results-content {
    flex: 1;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.score-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 8;
}

.score-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s ease;
}

.score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
}

#score-percent {
    font-size: 2rem;
    font-weight: 700;
}

.percent-sign {
    font-size: 1rem;
    color: var(--text-muted);
}

.score-details h2 {
    margin-bottom: 0.5rem;
}

.corrections-section h3 {
    margin-bottom: 1.25rem;
}

.corrections-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.correction-item {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--error);
}

.correction-item.correct {
    border-left-color: var(--success);
}

.q-number {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.q-text {
    font-weight: 500;
    margin-bottom: 1rem;
}

.answer-row {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.answer-label {
    color: var(--text-muted);
}

.user-answer {
    color: var(--text-primary);
}

.correct-answer {
    color: var(--success);
    font-weight: 500;
}

.explanation {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    margin-top: 0.75rem;
}

.results-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .score-card {
        flex-direction: column;
        text-align: center;
    }
    
    .selection-bar {
        left: 1rem;
        right: 1rem;
        transform: none;
        justify-content: space-between;
    }
    
    .header {
        padding: 1rem;
    }
    
    .question-text {
        font-size: 1.25rem;
    }
    
    .difficulty-options {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Upload Styles
   ============================================ */

.library-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.upload-btn {
    cursor: pointer;
}

.upload-btn input[type="file"] {
    display: none;
}

.upload-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.upload-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.upload-progress span {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* File type badge on document cards */
.doc-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.doc-type-badge.pdf {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.doc-type-badge.docx {
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

/* ============================================
   NCLEX Specific Styles
   ============================================ */

.config-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.config-info svg {
    flex-shrink: 0;
}

.diff-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}

/* Multiple selection indicator */
.multi-indicator {
    margin-left: auto;
    font-size: 1.25rem;
    color: var(--text-muted);
}

.answer-option.selected .multi-indicator {
    color: var(--accent);
}

.answer-option.selected .multi-indicator::before {
    content: '☑';
}

.answer-option:not(.selected) .multi-indicator::before {
    content: '☐';
}

/* Question type badges */
.q-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.q-type-badge {
    padding: 0.25rem 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    color: #60a5fa;
    text-transform: uppercase;
}

/* Rationale styling */
.rationale {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-top: 1rem;
    border-left: 3px solid var(--text-muted);
}

.rationale strong {
    color: var(--text-primary);
}

.correction-item.correct .rationale {
    border-left-color: var(--success);
}

.correction-item:not(.correct) .rationale {
    border-left-color: var(--error);
}

/* SATA question type indicator */
#question-type {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Improved answer options for NCLEX */
.answer-option {
    position: relative;
    min-height: 60px;
}

.answer-option .option-text {
    flex: 1;
    line-height: 1.5;
}

/* ============================================
   Toggle Options (Question Type, AI Mode)
   ============================================ */

.toggle-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.toggle-btn:hover {
    border-color: var(--text-muted);
}

.toggle-btn.active {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.toggle-btn svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.toggle-btn.active svg {
    color: var(--accent);
}

.toggle-btn span {
    color: var(--text-primary);
    font-weight: 500;
}

.toggle-btn .toggle-desc {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: auto;
}

/* Modal Large */
.modal-content.modal-large {
    max-width: 550px;
}

.config-section {
    margin-bottom: 1.5rem;
}

.config-section > label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
