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

:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --border-color: #475569;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --secondary: #0ea5e9;
    --success: #10b981;
    --success-bg: #d1fae5;
    --success-text: #065f46;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

button {
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.app-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    width: 100%;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

/* Top Nav Tabs */
.header-nav {
    display: flex;
    gap: 1.5rem;
}

.nav-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 0.25rem;
    position: relative;
    outline: none;
}

.nav-tab:hover {
    color: var(--text-main);
}

.nav-tab.active {
    color: var(--primary);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px 3px 0 0;
}

.nav-tab .dot-indicator {
    width: 6px;
    height: 6px;
    background-color: var(--success);
    border-radius: 50%;
    display: inline-block;
    margin-left: 0.25rem;
    vertical-align: middle;
    animation: pulse 1.5s infinite;
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.room-badge {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.375rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.room-badge-icon {
    width: 8px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 50%;
}

.room-badge-text {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--secondary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Dashboard Container */
.dashboard-content {
    flex: 1;
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Utility Components */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.btn {
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.625rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

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

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

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

.btn-success:hover {
    background-color: #059669;
}

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

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

.btn-icon {
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

/* Launch Tab */
.launch-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.launch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.launch-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.3);
}

.launch-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.launch-card:hover .launch-icon-wrapper {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.launch-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.launch-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.divider {
    height: 1px;
    background-color: var(--border-color);
    position: relative;
    text-align: center;
}

.divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-main);
    padding: 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.quick-question-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quick-question-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.quick-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border: 2px solid transparent;
}

.quick-card.mc .quick-circle {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.quick-card.tf .quick-circle {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
}

.quick-card.sa .quick-circle {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
    border-color: rgba(14, 165, 233, 0.3);
}

.quick-card.mc:hover { border-color: var(--warning); }
.quick-card.tf:hover { border-color: #8b5cf6; }
.quick-card.sa:hover { border-color: var(--secondary); }

/* Library Tab */
.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-wrapper {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    width: 100%;
}

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

.quiz-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    transition: all 0.2s ease;
}

.quiz-row:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.02);
}

.quiz-info-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quiz-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.quiz-meta-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.quiz-meta-details {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    gap: 1rem;
}

.quiz-actions {
    display: flex;
    gap: 0.5rem;
}

/* Rooms Tab */
.rooms-container {
    max-width: 600px;
    margin: 0 auto;
}

.room-edit-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.room-input-row {
    display: flex;
    gap: 1rem;
}

.room-input-row input {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Reports Tab */
.reports-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.reports-table th, .reports-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.reports-table th {
    background-color: rgba(99, 102, 241, 0.05);
    font-weight: 700;
    color: var(--text-main);
}

.reports-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

.reports-table tr:last-child td {
    border-bottom: none;
}

.report-link {
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

.report-link:hover {
    color: var(--primary);
}

/* Report Details & Live Results Tab */
.report-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.report-title-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.report-title-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.report-summary-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.summary-metric {
    text-align: center;
}

.summary-metric-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.summary-metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.grid-controls-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.toggle-group {
    display: flex;
    gap: 1.5rem;
}

/* Switch Styling */
.switch-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.switch-input {
    display: none;
}

.switch-slider {
    width: 44px;
    height: 24px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.switch-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background-color: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.switch-input:checked + .switch-slider {
    background-color: var(--success);
    border-color: var(--success);
}

.switch-input:checked + .switch-slider::after {
    left: 22px;
    background-color: white;
}

.switch-label {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Results Grid Table */
.results-grid-container {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.results-grid {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.results-grid th, .results-grid td {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.results-grid th {
    background-color: rgba(99, 102, 241, 0.05);
    font-weight: 700;
}

.results-grid td.student-name-col, .results-grid th.student-name-col {
    text-align: left;
    position: sticky;
    left: 0;
    background-color: var(--bg-card);
    z-index: 10;
    min-width: 160px;
    font-weight: 600;
}

.results-grid th.score-col, .results-grid td.score-col {
    width: 80px;
    font-weight: 700;
}

.results-grid th.q-header {
    background-color: #fef3c7;
    color: #92400e;
    width: 60px;
}

.results-grid td.answer-cell {
    font-weight: 600;
}

.results-grid td.answer-cell.correct {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.results-grid td.answer-cell.incorrect {
    background-color: var(--danger-bg);
    color: var(--danger-text);
}

.results-grid tr.class-total-row td {
    background-color: var(--bg-input);
    font-weight: 700;
    color: var(--text-main);
}

.results-grid tr.class-total-row td.class-q-total {
    background-color: #dbeafe;
    color: #1e3a8a;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

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

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-main);
}

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

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Modal specific grids */
.modal-grid-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-grid-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-grid-item:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.05);
}

.modal-grid-item-icon {
    font-size: 1.25rem;
    color: var(--primary);
}

.modal-grid-item-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.modal-grid-item-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.drag-drop-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.drag-drop-area:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.02);
}

.drag-drop-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
}

/* AS-SULLAM CBT Editor Specifics */
.editor-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.editor-title-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 60%;
}

.editor-title-container input {
    font-size: 1.75rem;
    font-weight: 700;
    border: none;
    background: transparent;
    padding: 0.25rem 0.5rem;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    width: 100%;
}

.editor-title-container input:focus {
    border-bottom-color: var(--primary);
    box-shadow: none;
}

.editor-question-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.question-builder-card {
    display: flex;
    gap: 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
}

.question-builder-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.question-builder-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.question-text-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

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

.option-builder-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Radio check bubble */
.correct-selector {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    background-color: var(--bg-main);
    color: var(--text-muted);
}

.option-builder-row.correct .correct-selector {
    background-color: var(--success);
    border-color: var(--success);
    color: white;
}

.correct-selector:hover {
    border-color: var(--success);
}

.option-builder-row input[type="text"] {
    flex: 1;
}

.option-builder-row.correct input[type="text"] {
    border-color: var(--success);
    box-shadow: 0 0 0 1px var(--success);
}

.question-explanation-box {
    background-color: rgba(99, 102, 241, 0.03);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.question-explanation-box label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.question-builder-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-left: 1px solid var(--border-color);
    padding-left: 1.25rem;
    justify-content: flex-start;
}

.question-builder-actions button {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    font-size: 1.25rem;
}

.question-builder-actions button:hover {
    color: var(--text-main);
    background-color: var(--bg-input);
}

.add-question-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
}

/* Student joining */
.student-join-card {
    max-width: 420px;
    width: 100%;
    margin: 5rem auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.student-join-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    background-image: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.student-join-form input {
    font-size: 1.1rem;
    text-align: center;
    padding: 0.75rem 1rem;
}

/* Student active quiz */
.student-layout {
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
    padding: 1.5rem;
}

.quiz-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.timer-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--warning);
}

.student-question-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.student-question-text {
    font-size: 1.25rem;
    font-weight: 600;
}

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

.student-option-button {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    width: 100%;
}

.student-option-button:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.02);
}

.student-option-button.selected {
    border-color: var(--primary);
    background-image: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.student-option-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background-color: var(--bg-main);
    color: var(--text-muted);
}

.student-option-button.selected .student-option-letter {
    background-color: white;
    color: var(--primary);
    border-color: white;
}

.student-action-row {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Toast Notification styling */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 500;
}

.toast {
    background-color: var(--bg-card);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(20px);
    opacity: 0;
    animation: slideIn 0.3s forwards;
    min-width: 250px;
    max-width: 380px;
}

.toast.success { border-left-color: var(--success); }
.toast.danger { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

/* Animations */
@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Responsive details */
@media(max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .header-nav {
        width: 100%;
        justify-content: center;
    }
    .dashboard-content {
        margin: 1rem auto;
    }
}

/* Quick Question Live Visualization Styles */
.quick-chart-container {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.quick-chart-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.quick-chart-label {
    width: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}
.quick-chart-bar-container {
    flex-grow: 1;
    height: 32px;
    background-color: var(--bg-input);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.quick-chart-bar-fill {
    height: 100%;
    background-color: var(--secondary);
    transition: width 0.3s ease;
    border-radius: var(--radius-md);
}
.quick-chart-value {
    width: 90px;
    text-align: right;
    font-weight: 600;
    color: var(--text-muted);
}
.quick-sa-container {
    max-width: 700px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.quick-sa-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}
.quick-sa-answer {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
}
.quick-sa-student {
    font-size: 0.85rem;
    color: var(--text-muted);
    background-color: var(--bg-input);
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.quick-status-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

