@import url('https://fonts.googleapis.com/css2?family=Mukta+Malar:wght@400;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Modern Color Palette - Oceanic Deep */
    --primary-color: #0ea5e9;
    /* Sky Blue */
    --primary-light: #38bdf8;
    --primary-dark: #0369a1;
    --secondary-color: #475569;
    --accent-color: #2dd4bf;
    /* Teal/Cyan */
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --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);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    color: #111827;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

/* Navigation */
nav {
    background: var(--card-bg);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

nav .brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

nav .nav-links a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

nav .nav-links a:hover,
nav .nav-links a.active {
    color: var(--primary-color);
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f9fafb;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
    text-decoration: none;
    gap: 8px;
    /* Support for icons */
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: var(--text-muted);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.btn-logout {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-logout:hover {
    background: #fecaca;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #e0e7ff 100%);
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.auth-card h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-card p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Dashboard Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 4px solid var(--primary-color);
}

.stat-icon {
    font-size: 2.5rem;
    padding: 10px;
    background: #eef2ff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-main);
}

.stat-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

th,
td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

th {
    background: #f1f5f9;
    font-weight: 700;
    color: var(--text-main);
    /* Darker than secondary */
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #f8fafc;
    /* Very subtle tint */
}

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

/* Test Interface */
.question-block {
    border-left: 5px solid var(--primary-color);
    margin-bottom: 2rem;
    background: #fff;
}

.question-block p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.option-card {
    background: #f9fafb;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.option-card:hover {
    background: #eef2ff;
    border-color: var(--primary-light);
}

.option-input:checked+.option-card,
/* Fallback if nesting fails */
.option-card:has(input:checked) {
    background: #eef2ff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Utilities */
.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Tamil Font */
.ta-text {
    font-family: 'Mukta Malar', sans-serif;
    color: var(--primary-color);
    display: block;
    margin-top: 4px;
    font-size: 1.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    nav .nav-links a {
        margin: 0 0.5rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card,
.stat-card {
    animation: fadeIn 0.4s ease-out;
}

/* =========================================
   Landing Page Redesign Styles
   ========================================= */

/* Glassmorphic Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar .nav-brand {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.navbar .nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(120deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 8rem 2rem 6rem;
    text-align: center;
    color: white;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 4rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 3rem;
    font-weight: 300;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    animation: zoomIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s backwards;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card-modern {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #eef2ff 0%, #f3e8ff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: transform 0.4s ease;
}

.feature-card-modern:hover .feature-icon-wrapper {
    transform: rotateY(180deg);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-desc {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Footer Modern */
.footer-modern {
    background: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 6rem 1.5rem 4rem;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
}

/* =========================================
   Modal Styles (Sliding)
   ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal {
    background: white;
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-height: 90vh;
    overflow-y: auto;
    /* Allow scrolling for long content */
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    background: none;
    border: none;
    padding: 5px;
}

.modal-close:hover {
    color: var(--danger);
}

/* Sliding Mechanism */
.form-slider {
    display: flex;
    width: 200%;
    /* Two forms side by side */
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-section {
    width: 50%;
    padding: 3rem 2.5rem;
    flex-shrink: 0;
}

/* State: Register Active */
.modal.register-active .form-slider {
    transform: translateX(-50%);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.modal-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   Question Bank Redesign
   ========================================= */

/* Sidebar */
.sidebar-modern {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 90px;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.section-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.section-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.section-nav-item:hover {
    background: #f8fafc;
    color: var(--primary-color);
    padding-left: 20px;
    /* Slide effect */
}

.section-nav-item.active {
    background: #eef2ff;
    color: var(--primary-color);
    font-weight: 600;
    border-color: #c7d2fe;
}

/* Language Input Group */
.lang-group {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: start;
}

@media (max-width: 768px) {
    .lang-grid {
        grid-template-columns: 1fr;
    }
}

.translate-btn {
    height: 42px;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.translate-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: rotate(15deg);
}

/* Question List Layout */
.question-card-modern {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
    position: relative;
    padding-left: 3rem;
    /* Space for checkbox */
}

.question-card-modern:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.q-checkbox {
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.q-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.q-opt {
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.q-opt.correct {
    background: #dcfce7;
    color: #166534;
    font-weight: 500;
    border: 1px solid #bbf7d0;
}

/* Sticky Assign Bar */
.sticky-assign-bar {
    position: sticky;
    top: 80px;
    z-index: 90;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Full Width Layout */
.container-fluid {
    width: 100%;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 70px);
    /* Subtract nav height */
    background: #f8fafc;
}

.sidebar-panel {
    background: white;
    /* Reverted to white */
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    height: 100%;
    position: sticky;
    top: 80px;
    align-self: start;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    width: 280px;
    /* Enforce width */
    flex-shrink: 0;
}

/* Sidebar Specific Overrides */
.sidebar-panel .sidebar-header {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-panel .section-nav-item {
    white-space: nowrap;
    /* Prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Add dots if too long */
    display: block;
    /* Ensure it behaves like a block for width */
    padding: 10px 15px;
    color: var(--text-muted);
    /* Revert text color */
}

.sidebar-panel .section-nav-item span {
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.sidebar-panel .section-nav-item:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.sidebar-panel .section-nav-item.active {
    background: #eef2ff;
    /* Light indigo background */
    color: var(--primary-color);
    border-color: #c7d2fe;
}

.main-panel {
    padding: 2rem 3rem 100px 3rem;
    max-width: 1600px;
    /* Sensible max width for content even in full mode */
    margin: 0 auto;
    width: 100%;
    min-width: 0;
    /* Fix flex/grid overflow issues */
}

/* Updated Sidebar Styling */
.sidebar-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-menu-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

/* Cleaner Question Cards in Full View */
.question-card-modern {
    background: white;
    border: 1px solid transparent;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: none;
    border-radius: 0;
    padding: 1.5rem 1rem 1.5rem 3.5rem;
    /* Increased left padding for checkbox */
    margin-bottom: 0;
    transition: background 0.2s;
}

.question-card-modern:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.question-card-modern:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom: 1px solid transparent;
}

.question-card-modern:hover {
    background: #fdfdfd;
    z-index: 10;
}

/* Adjust Sticky Bar for Full Width */
.sticky-assign-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 600px;
    top: auto;
    z-index: 1000;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(229, 231, 235, 1);
    backdrop-filter: blur(12px);
    border-radius: 9999px;
    /* Pill shape */
    padding: 1rem 2rem;
    margin: 0;

}

/* Toast Notification */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.toast {
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--success);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}
/* ===============================
   AUTH PAGES – RESPONSIVE FIX
   (Register / Login)
================================ */

/* Base container */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #f8fafc;
}

/* Card */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Headings */
.auth-card h2 {
  font-size: 1.6rem;
  text-align: center;
}

.auth-card p {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 24px;
  color: #6b7280;
}

/* Form spacing */
.form-group {
  margin-bottom: 16px;
}

/* Inputs */
.form-group input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px; /* iOS zoom fix */
  border-radius: 10px;
  border: 1px solid #d1d5db;
}

/* Button */
.btn {
  padding: 12px;
  border-radius: 10px;
  font-size: 1rem;
}

/* Links */
.auth-card a {
  text-decoration: none;
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* ===============================
   MOBILE OPTIMIZATION
================================ */
@media (max-width: 768px) {

  .auth-container {
    align-items: flex-end;
    padding: 0;
  }

  .auth-card {
    max-width: 100%;
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 22px 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
    animation: slideUp 0.35s ease-out;
  }

  .auth-card h2 {
    font-size: 1.4rem;
  }

  .auth-card p {
    font-size: 0.9rem;
  }
}

/* Slide up animation */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

