/* ===================================
   Prosno.io - Main Stylesheet
   Modern Question Paper Generator
   =================================== */

:root {
    /* Primary Colors */
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Secondary Colors */
    --secondary: #10b981;
    --accent: #f59e0b;

    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Other */
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===================================
   Utilities
   =================================== */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Navbar — SaaS Style
   =================================== */
.navbar {
    display: flex;
    align-items: center;
    padding: 0.875rem 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1050;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    padding: 0.55rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar>.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Brand ── */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--gray-900);
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 10px;
    font-size: 1.1rem;
}

.brand-dot {
    color: var(--primary);
}

/* ── Desktop Nav Links ── */
.nav-links-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-500) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--gray-900) !important;
    background: var(--gray-50);
}

.nav-link.active {
    color: var(--primary) !important;
    background: transparent;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.875rem;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 10px;
}

.nav-link-icon {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ── Right-side Actions ── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Nav Buttons */
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.nav-btn-ghost {
    color: var(--gray-600);
    background: transparent;
}

.nav-btn-ghost:hover {
    color: var(--gray-900);
    background: var(--gray-50);
}

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

.nav-btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
    color: var(--white);
}

.nav-btn-cta {
    color: var(--white);
    background: var(--primary-gradient);
    font-weight: 600;
    padding: 0.55rem 1.35rem;
}

.nav-btn-cta:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
    color: var(--white);
}

/* ── Avatar & Dropdown ── */
.nav-profile-wrapper {
    position: relative;
}

.nav-avatar-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50px;
    transition: background 0.2s;
}

.nav-avatar-btn:hover {
    background: var(--gray-100);
}

.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.nav-avatar-chevron {
    font-size: 0.65rem;
    color: var(--gray-400);
    transition: transform 0.2s;
}

.nav-profile-wrapper.open .nav-avatar-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(-4px);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1100;
}

.nav-profile-wrapper.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.nav-dropdown-header {
    padding: 0.75rem 0.75rem 0.5rem;
}

.nav-dropdown-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-900);
}

.nav-dropdown-email {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 0.35rem 0;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 450;
    color: var(--gray-600);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.nav-dropdown-item i {
    font-size: 1rem;
    width: 1.1rem;
    text-align: center;
    color: var(--gray-400);
    transition: color 0.15s;
}

.nav-dropdown-item:hover i {
    color: var(--gray-600);
}

.nav-dropdown-danger {
    color: #dc2626;
}

.nav-dropdown-danger:hover {
    background: rgba(220, 38, 38, 0.06);
    color: #b91c1c;
}

.nav-dropdown-danger i {
    color: #dc2626;
}

/* ── Hamburger ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-hamburger:hover {
    background: var(--gray-100);
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-hamburger span:nth-child(2) {
    width: 70%;
}

/* ── Mobile Overlay ── */
.nav-mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 1060;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.nav-mobile-overlay.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.nav-mobile-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: background 0.2s;
}

.nav-mobile-close:hover {
    background: var(--gray-200);
}

.nav-mobile-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    overflow-y: auto;
}

.nav-mobile-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 0.75rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-mobile-link:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.nav-mobile-link i {
    font-size: 1.15rem;
    width: 1.5rem;
    text-align: center;
    color: var(--gray-400);
}

.nav-mobile-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 0.5rem 0;
}

.nav-mobile-danger {
    color: #dc2626;
}

.nav-mobile-danger i {
    color: #dc2626;
}

.nav-mobile-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.nav-mobile-action {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.75rem;
    font-size: 1rem;
    display: inline-flex !important;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .nav-links-desktop {
        display: none;
    }

    .nav-btn-ghost,
    .nav-btn-cta,
    .nav-btn-primary {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }
}

@media (min-width: 992px) {
    .nav-hamburger {
        display: none !important;
    }

    .nav-mobile-overlay {
        display: none !important;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.05;
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 30%;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 3rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Hero Image / Paper Preview */
.hero-image {
    position: relative;
    padding: 2rem;
}

.paper-preview {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    padding: 2rem;
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.paper-preview:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.paper-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.paper-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.paper-subtitle {
    font-family: 'Noto Sans Bengali', sans-serif;
    color: var(--gray-600);
}

.paper-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.paper-content {
    font-size: 0.875rem;
}

.question-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--gray-200);
}

.q-text {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.q-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-700);
}

.q-options>span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* OMR-style circles for landing page preview */
.omr-circle {
    display: inline-block;
    width: 11px;
    height: 11px;
    min-width: 11px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-800);
    background: var(--white);
    vertical-align: middle;
    flex-shrink: 0;
}

.omr-circle.filled {
    background: var(--gray-800);
}

.floating-badge {
    position: absolute;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    right: 0;
    color: #2563eb;
}

.badge-2 {
    bottom: 20%;
    left: 0;
    color: var(--secondary);
    animation-delay: 1.5s;
}

.badge-3 {
    top: 25%;
    right: -5%;
    color: #dc2626;
    animation-delay: 0.75s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===================================
   Buttons
   =================================== */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-outline-secondary {
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline-secondary:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
    color: var(--gray-800);
}

/* ===================================
   Sections
   =================================== */
.section-header {
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Features Section
   =================================== */
.features-section {
    padding: 6rem 0;
    background: var(--white);
}

.feature-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 16px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
    margin: 0;
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works-section {
    padding: 6rem 0;
    background: var(--gray-50);
}

.steps-container {
    position: relative;
}

.step-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    height: 100%;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 1rem auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary);
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--gray-600);
    margin: 0;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 6rem 0;
}

.cta-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    padding: 4rem;
    color: var(--white);
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-card p {
    opacity: 0.9;
    margin-bottom: 0;
}

.cta-card .btn-light {
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
}

.cta-card .btn-light:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

/* ===================================
   Generate Page
   =================================== */
.generate-section {
    padding: 120px 0 60px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.generate-header {
    margin-bottom: 3rem;
}

.generate-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.generate-header h1 i {
    color: var(--primary);
}

.generate-header p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

.generate-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    position: relative;
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--primary);
}

.form-control,
.form-select {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Chapters Container */
.chapters-container {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.5rem;
    min-height: 150px;
}

.chapters-placeholder {
    text-align: center;
    padding: 2rem;
    color: var(--gray-400);
}

.chapters-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.chapter-checkbox {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.chapter-checkbox:hover {
    border-color: var(--primary);
}

.chapter-checkbox input {
    margin-right: 0.5rem;
}

.chapter-checkbox label {
    cursor: pointer;
    font-size: 0.875rem;
}

.chapter-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.5rem;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.info-badge.has-questions {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.info-badge.no-questions {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.settings-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-title i {
    color: var(--gray-400);
}

/* Generating State */
.generating-state {
    text-align: center;
    padding: 4rem 0;
}

.generating-state p {
    margin-top: 1rem;
    color: var(--gray-600);
}

/* Result Card */
.result-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    margin-top: 2rem;
    text-align: center;
}

.result-header i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.result-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.result-header p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.download-buttons .btn-group {
    position: relative;
}

.download-buttons .dropdown-menu {
    min-width: 200px;
}

.download-buttons .dropdown-item i {
    width: 1.2em;
    text-align: center;
}

/* Question Selection Panel */
.questions-info {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.question-selection-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1rem;
}

.question-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.question-selection-header h5 {
    margin: 0;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.question-selection-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.selected-count-bar {
    background: var(--gray-50);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.selected-count-bar span {
    color: var(--gray-700);
}

.questions-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.chapter-questions-group {
    border-bottom: 1px solid var(--gray-200);
}

.chapter-questions-group:last-child {
    border-bottom: none;
}

.chapter-group-header {
    background: var(--gray-100);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.chapter-group-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
}

.chapter-group-questions {
    padding: 0.5rem;
}

.question-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.question-item:hover {
    background: var(--gray-50);
}

.question-checkbox {
    padding-top: 2px;
}

.question-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.question-label {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.question-number {
    color: var(--gray-500);
    font-weight: 500;
    min-width: 25px;
}

.question-text {
    flex: 1;
    color: var(--gray-700);
}

.question-difficulty {
    font-size: 0.7rem;
    text-transform: capitalize;
    flex-shrink: 0;
}

/* ===================================
   About & Contact Pages
   =================================== */
.about-section,
.contact-section {
    padding-top: 120px;
    min-height: 100vh;
}

.about-header,
.contact-header {
    margin-bottom: 3rem;
}

.about-header h1,
.contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 2rem 0 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-info-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    height: 100%;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
}

.contact-form-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand .brand-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 10px;
    font-size: 1.25rem;
}

.footer-desc {
    color: var(--gray-400);
    margin-bottom: 0;
}

.footer h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: 10px;
    color: var(--gray-400);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-divider {
    border-color: var(--gray-800);
    margin: 2rem 0;
}

.copyright {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ===================================
   Flash Messages
   =================================== */
.flash-messages {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1060;
    width: 100%;
    max-width: 600px;
    padding: 0 1rem;
}

.flash-messages .alert {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 991px) {
    .hero-image {
        display: none;
    }

    .hero-content {
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .cta-card {
        text-align: center;
        padding: 3rem 2rem;
    }

    .cta-card .text-lg-end {
        text-align: center !important;
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .generate-card {
        padding: 1.5rem;
    }

    .download-buttons {
        flex-direction: column;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
}