/* MCQIndia Custom Styles */
/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(25, 35, 58, 0.12);
}
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --danger-gradient: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    --warning-gradient: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);

    --primary: #667eea;
    --primary-dark: #5a6fd6;
    --secondary-text: #6c757d;
    --body-bg: #f5f7fb;
    --card-bg: #ffffff;
    --border-soft: #e9edf5;
    --shadow-sm-soft: 0 6px 20px rgba(25, 35, 58, 0.06);
    --shadow-md-soft: 0 14px 32px rgba(25, 35, 58, 0.10);
    --shadow-lg-soft: 0 20px 50px rgba(25, 35, 58, 0.14);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top left, rgba(102, 126, 234, 0.08), transparent 20%),
        radial-gradient(circle at top right, rgba(118, 75, 162, 0.06), transparent 18%),
        var(--body-bg);
    color: #1f2937;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #152033;
    font-weight: 700;
}

.text-orange {
    color: #fd7e14 !important;
}

.bg-orange {
    background-color: #fd7e14 !important;
}

.border-orange {
    border-color: #fd7e14 !important;
}

/* Navbar */
.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 0.3px;
}

/* Cards */
.card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: var(--shadow-sm-soft);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    border-top-left-radius: var(--radius-lg) !important;
    border-top-right-radius: var(--radius-lg) !important;
}

.stat-card {
    border: none;
    border-radius: var(--radius-lg);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
    background: #fff;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md-soft);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    color: #152033;
}

.stat-card .stat-label {
    color: var(--secondary-text);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Hero Section */
.hero-section {
    background: var(--primary-gradient);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg-soft);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}

.hero-section h1 {
    font-weight: 800;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.hero-section p,
.hero-section .lead {
    position: relative;
    z-index: 1;
}

/* Quiz Cards */
.quiz-option {
    border: 2px solid #e7ebf3;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(20, 30, 50, 0.03);
}

.quiz-option:hover {
    border-color: var(--primary);
    background: #f8f9ff;
    transform: translateY(-1px);
}

.quiz-option.selected,
.quiz-option.active {
    border-color: var(--primary);
    background: #eef1ff;
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.12);
}

.quiz-option.correct {
    border-color: #198754;
    background: #d1e7dd;
}

.quiz-option.incorrect {
    border-color: #dc3545;
    background: #f8d7da;
}

.quiz-option .option-label {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e9ecef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 0.85rem;
    flex-shrink: 0;
    color: #253046;
    transition: all 0.2s ease;
}

.quiz-option.selected .option-label,
.quiz-option.active .option-label {
    background: var(--primary-gradient);
    color: #fff;
}

.quiz-option.correct .option-label {
    background: #198754;
    color: #fff;
}

.quiz-option.incorrect .option-label {
    background: #dc3545;
    color: #fff;
}

/* Progress Bar */
.quiz-progress {
    height: 10px;
    border-radius: 999px;
    background: #e9edf7;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.quiz-progress .progress-bar {
    background: var(--primary-gradient);
    border-radius: 999px;
}

/* Question Card */
.question-card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md-soft);
    overflow: hidden;
}

.question-number {
    background: var(--primary-gradient);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.25);
}

/* Score Circle */
.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 6px solid;
    background: #fff;
    box-shadow: var(--shadow-sm-soft);
}

.score-circle .score-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.score-circle .score-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* Tables */
.table {
    --bs-table-bg: transparent;
}

.table thead th {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #667085;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.table-hover tbody tr {
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.table-hover tbody tr:hover {
    background-color: #f8faff;
}

/* Landing Page */
.feature-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    text-align: center;
    padding: 2rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    height: 100%;
    background: #fff;
    box-shadow: var(--shadow-sm-soft);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md-soft);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Admin */
.admin-sidebar .list-group-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 6px;
    color: #344054;
    font-weight: 500;
}

.admin-sidebar .list-group-item.active {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

/* Forms */
.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid #dbe2ee;
    padding: 0.72rem 0.95rem;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(102, 126, 234, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.14);
}

.form-range::-webkit-slider-thumb {
    background: #667eea;
}

.form-range::-moz-range-thumb {
    background: #667eea;
    border: 0;
}

.input-group-text {
    border-radius: 12px;
    border: 1px solid #dbe2ee;
    background: #f8faff;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.58rem 1.25rem;
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    box-shadow: 0 10px 18px rgba(102, 126, 234, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #5a6fd6, #6a4299);
    border: none;
}

.btn-outline-secondary,
.btn-outline-primary {
    border-radius: 10px;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.45em 0.78em;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(20, 30, 50, 0.04);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.45;
}

/* Rich Content (WYSIWYG output) */
.rich-content {
    overflow-wrap: anywhere;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.rich-content p {
    margin-bottom: 0.35rem;
}

.rich-content p:last-child {
    margin-bottom: 0;
}

.rich-content ul,
.rich-content ol {
    padding-left: 1.2rem;
    margin-bottom: 0.4rem;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.65rem 0;
    background: #fff;
}

.rich-content table td,
.rich-content table th {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
    vertical-align: top;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    margin-bottom: 0.45rem;
}

.rich-content iframe {
    max-width: 100%;
}

/* Footer */
.site-footer {
    background: #fff;
}

/* Utility */
.shadow-soft {
    box-shadow: var(--shadow-sm-soft);
}

.rounded-premium {
    border-radius: var(--radius-xl);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Responsive */
@media (max-width: 992px) {
    .stat-card .stat-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-lg);
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .stat-card .card-body {
        padding: 1.2rem;
    }

    .stat-card .stat-value {
        font-size: 1.35rem;
    }

    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-circle .score-value {
        font-size: 2rem;
    }

    .question-number {
        width: 38px;
        height: 38px;
    }

    .empty-state {
        padding: 2rem 1rem;
    }
}