:root {
    --primary-color: #6c5ce7;
    --primary-light: #a29bfe;
    --secondary-color: #f1f2f6;
    --text-color: #2f3542;
    --text-muted: #747d8c;
    --success-color: #2ed573;
    --danger-color: #ff4757;
    --warning-color: #ffa502;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 20px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

#app {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Utilities */
.hidden {
    display: none !important;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    background-color: #5b4cc4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid #dfe4ea;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: #ced4da;
}

.btn-save {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-back {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 25px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-back:hover {
    color: var(--primary-color);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(46, 213, 115, 0.3);
    transition: var(--transition);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 213, 115, 0.4);
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    position: sticky;
    top: 20px;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.logo {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    line-height: 1.2;
}

.logo-main {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo-sub {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-top: -2px;
}

.nav-links div {
    display: inline-flex;
    gap: 15px;
    align-items: center;
}

#user-display {
    font-weight: 600;
    color: var(--text-color);
    background: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* Auth */
#auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-box {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
}

.auth-box h2 {
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 28px;
    font-weight: 700;
}

.auth-box input {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 2px solid #f1f2f6;
    border-radius: 12px;
    transition: var(--transition);
    font-size: 16px;
}

.auth-box input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.auth-box button {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
}

.auth-box p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Dashboard */
.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#dashboard-title, #admin-dashboard-title {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th, .history-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.history-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #4b5563;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.verification-code-inputs input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.accuracy-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-add-option {
    margin-top: 15px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-option:hover {
    background: #e2e8f0;
    color: var(--primary-color);
}

.remove-option-btn {
    background: transparent;
    color: #94a3b8;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-option-btn:hover {
    color: #ef4444;
}

.accuracy-high { background: #dcfce7; color: #166534; }
.accuracy-mid { background: #fef9c3; color: #854d0e; }
.accuracy-low { background: #fee2e2; color: #991b1b; }

.tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
}

.tabs {
    display: flex;
    gap: 20px;
    position: relative;
    bottom: -2px;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.bulk-warning {
    margin-top: 15px;
    font-size: 14px;
    color: #b45309;
    font-weight: 600;
}

.bulk-warning-red {
    margin-top: 8px;
    font-size: 14px;
    color: #dc2626;
    font-weight: 700;
}

.manual-q-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.manual-q-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 16px;
}

.manual-q-title i {
    color: var(--primary-color);
}

.manual-q-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.time-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
}

.manual-q-time {
    width: 50px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 13px;
    text-align: center;
    outline: none;
}

.delete-q-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.delete-q-btn:hover {
    background: #ef4444;
    color: var(--white);
    transform: translateY(-2px);
}

.option-radio-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
}

.option-radio-wrapper input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-radio-wrapper label {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    cursor: pointer;
}

.option-radio-wrapper input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: inset 0 0 0 4px var(--white);
}

/* Quiz Setup Grid */
.quiz-setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.add-q-btn {
    width: 100%;
    padding: 15px;
    background: var(--white);
    border: 2px dashed var(--primary-light);
    color: var(--primary-color);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.add-q-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-style: solid;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    color: #059669;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.save-quiz-btn {
    font-size: 1.1rem !important;
    padding: 18px !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 15px -3px rgba(108, 92, 231, 0.3);
}

.bulk-info {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.format-example {
    font-family: monospace;
    background: rgba(255,255,255,0.5);
    padding: 10px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: #0369a1;
}

#bulk-questions-text {
    width: 100%;
    height: 250px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    margin-bottom: 15px;
    resize: vertical;
}

#bulk-questions-text:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.manual-question-item {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.manual-question-item:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
}

.manual-q-content {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.manual-q-image-container {
    width: 180px;
    height: 140px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
    transition: var(--transition);
}

.manual-q-image-container:hover {
    border-color: var(--primary-color);
    background: #f1f5f9;
}

.manual-q-text-container {
    flex: 1;
}

.manual-q-text {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    resize: vertical;
    transition: var(--transition);
}

.manual-q-text:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.manual-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.manual-option-input {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.manual-option-input:focus-within {
    border-color: var(--primary-color);
    background: var(--white);
}

.manual-opt {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}



.question-input-methods {
    margin-top: 20px;
}

.method-content {
    padding: 10px 0;
}

.delete-cat-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-cat-btn:hover {
    background: #ef4444;
    color: var(--white);
    transform: scale(1.1);
}

.add-q-btn-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.btn-add-q {
    background: var(--white);
    color: var(--primary-color);
    border: 2px dashed var(--primary-color);
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    max-width: 400px;
}

.btn-add-q:hover {
    background: rgba(108, 92, 231, 0.05);
    transform: translateY(-2px);
}

.image-preview {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.remove-img-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}



/* Category Cards Enhancements */
.category-card {
    background: var(--white);
    padding: 30px;
    padding-top: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}

.cat-card-header {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-card-tools {
    display: flex;
    gap: 8px;
}

.cat-card-tools button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s;
}

.edit-cat-btn { color: var(--primary-color); }
.edit-cat-btn:hover { background: rgba(79, 70, 229, 0.1); }

.delete-cat-btn {
    color: var(--danger-color);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.delete-cat-btn:hover { background: rgba(239, 68, 68, 0.1); }

.category-card .icon-box {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 24px;
    transition: var(--transition);
}

.category-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
}

.category-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
}

.category-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.sub-indicator {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin: 10px 0;
    font-weight: 500;
}

.category-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #4b5563;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

/* Quiz Interface */
.quiz-container {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Progress Bar */
.progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--secondary-color);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    width: 0%;
    transition: width 0.4s ease;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    margin-top: 10px;
}

#timer {
    background: #fff5f5;
    color: var(--danger-color);
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    border: 1px solid #ffebeb;
}

#question-counter {
    color: var(--text-muted);
    font-weight: 600;
}

#question-text {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 35px;
    line-height: 1.4;
    color: var(--text-color);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.option-btn {
    padding: 18px 25px;
    background: var(--white);
    border: 2px solid #f1f2f6;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-btn:hover {
    background: var(--secondary-color);
    border-color: var(--primary-light);
    transform: translateX(5px);
}

.option-btn.selected {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.2);
}

.option-btn.correct {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.option-btn.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

#next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Result Screen */
.result-box {
    text-align: center;
    background: var(--white);
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    max-width: 550px;
    margin: 40px auto;
}

.score-circle {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    font-weight: 800;
    margin: 0 auto 35px;
    box-shadow: 0 15px 30px rgba(108, 92, 231, 0.3);
}

.score-label {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Profile Styles */
.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-info-card {
    text-align: center;
    padding: 2.5rem;
    height: fit-content;
}

.profile-stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.history-card {
    padding: 2rem;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.history-table th,
.history-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-table th {
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

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

.accuracy-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.accuracy-high { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.accuracy-mid { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.accuracy-low { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
        margin-bottom: 25px;
    }
    
    .logo {
        font-size: 20px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-container {
        padding: 25px;
    }
    
    #question-text {
        font-size: 20px;
    }
}

