/* Modern Dashboard Styling with Animations */

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
}

@keyframes progressFill {
    from {
        width: 0;
    }
    to {
        width: var(--progress);
    }
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.dashboard-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 0;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 35px 20px;
    margin-bottom: 0;
    animation: slideInLeft 0.6s ease;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.dashboard-welcome {
    max-width: 1400px;
    margin: 0 auto;
    color: white;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.dashboard-welcome h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    animation: fadeInUp 0.6s ease 0.2s both;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dashboard-welcome p {
    font-size: 1.2rem;
    opacity: 1;
    margin: 0;
    animation: fadeInUp 0.6s ease 0.4s both;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* ============================================
   STATS CARDS
   ============================================ */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: -30px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    animation: fadeInUp 0.6s ease;
}

.stat-card:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.1s both;
    border-left-color: #f093fb;
}

.stat-card:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.2s both;
    border-left-color: #4facfe;
}

.stat-card:nth-child(4) {
    animation: fadeInUp 0.6s ease 0.3s both;
    border-left-color: #43e97b;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: inline-block;
}

.stat-card:nth-child(1) .stat-icon {
    color: #667eea;
}

.stat-card:nth-child(2) .stat-icon {
    color: #f093fb;
}

.stat-card:nth-child(3) .stat-icon {
    color: #4facfe;
}

.stat-card:nth-child(4) .stat-icon {
    color: #43e97b;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 8px 0;
}

.stat-label {
    font-size: 0.95rem;
    color: #777;
    font-weight: 600;
}

/* ============================================
   COURSES SECTION
   ============================================ */

.courses-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    animation: slideInLeft 0.6s ease 0.4s both;
    padding: 20px 0;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 100%) 1;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.view-all-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* ============================================
   COURSE CARDS
   ============================================ */

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    animation: scaleIn 0.6s ease;
}

.course-card:nth-child(1) { animation-delay: 0.5s; }
.course-card:nth-child(2) { animation-delay: 0.55s; }
.course-card:nth-child(3) { animation-delay: 0.6s; }
.course-card:nth-child(4) { animation-delay: 0.65s; }
.course-card:nth-child(5) { animation-delay: 0.7s; }
.course-card:nth-child(6) { animation-delay: 0.75s; }

.course-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.course-header {
    height: 140px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.course-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.course-header.course-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.course-header.course-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.course-header.course-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.course-header.course-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.course-header.course-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.course-header.course-6 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.course-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.course-body {
    padding: 18px;
    position: relative;
    z-index: 1;
    background: white;
}

.course-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.course-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    background: #fafafa;
    padding: 15px;
    margin-left: -25px;
    margin-right: -25px;
    margin-top: -10px;
    margin-bottom: 20px;
    padding-left: 25px;
    padding-right: 25px;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.instructor-name {
    font-size: 0.92rem;
    color: #2c3e50;
    font-weight: 700;
}

.course-duration {
    font-size: 0.92rem;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.course-progress {
    margin-bottom: 15px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.progress-label-left {
    color: #2c3e50;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.progress-label-right {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.95rem;
}

.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: width 0.6s ease;
    animation: progressFill 1s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
}

.course-card:nth-child(1) .progress-fill {
    animation: progressFill 1s ease 0.5s both;
}

.course-card:nth-child(2) .progress-fill {
    animation: progressFill 1s ease 0.55s both;
}

.course-card:nth-child(3) .progress-fill {
    animation: progressFill 1s ease 0.6s both;
}

/* ============================================
   COURSE ACTIONS
   ============================================ */

.course-actions {
    display: flex;
    gap: 10px;
}

.course-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.course-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.course-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.course-btn-secondary {
    background: #f5f5f5;
    color: #667eea;
    border: 2px solid #667eea;
}

.course-btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    margin-top: 30px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.empty-state p {
    color: #777;
    margin: 0 0 30px 0;
}

.empty-state-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.empty-state-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .dashboard-welcome h1 {
        font-size: 1.8rem;
    }

    .dashboard-welcome {
        padding: 30px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .course-actions {
        flex-direction: column;
    }
}

/* ============================================
   DARK MODE
   ============================================ */

@media (prefers-color-scheme: dark) {
    .dashboard-container {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    }

    .stat-card,
    .course-card {
        background: #2a2a2a;
        color: #ecf0f1;
    }

    .stat-number,
    .course-title,
    .section-header h2 {
        color: #ecf0f1;
    }

    .course-description,
    .stat-label,
    .progress-label-left,
    .instructor-name {
        color: #bdc3c7;
    }

    .course-meta {
        border-bottom-color: #444;
    }

    .course-btn-secondary {
        background: #444;
        color: #667eea;
        border-color: #667eea;
    }

    .course-btn-secondary:hover {
        background: #667eea;
        color: white;
    }

    .progress-bar {
        background: #444;
    }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */

.course-card.loading {
    opacity: 0.6;
    animation: pulse 2s infinite;
}

/* ============================================
   BADGE STYLES
   ============================================ */

.course-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 8px;
    animation: scaleIn 0.6s ease;
}

.badge-popular {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.badge-trending {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.badge-new {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* ============================================
   MODERN DRAWER LAYOUT — ALL PAGES
   ============================================ */

/* 1. When drawers are OPEN, show them as fixed sidebars below navbar. */
.drawer.drawer-left.show,
.drawer.drawer-right.show {
    position: fixed !important;
    z-index: 500 !important;
    visibility: visible !important;
    background: white !important;
    top: 73px !important;
    height: calc(100vh - 73px) !important;
    overflow-y: auto !important;
}

/* 2. Left drawer: position at left when OPEN. */
.drawer.drawer-left.show {
    left: 0 !important;
    width: 285px !important;
    border-right: 1px solid #ddd !important;
}

/* 3. Right drawer: position at right when OPEN. */
.drawer.drawer-right.show {
    right: 0 !important;
    width: 315px !important;
    border-left: 1px solid #ddd !important;
}

/* 4. Page layout: push content when drawers are open. */
#page.show-drawer-left {
    margin-left: 285px !important;
}

#page.show-drawer-right {
    margin-right: 315px !important;
}

#page.show-drawer-left.show-drawer-right {
    margin-left: 285px !important;
    margin-right: 315px !important;
}

/* Allow page scrolling everywhere. */
#page {
    overflow-y: auto !important;
    overflow-x: visible !important;
    position: relative !important;
    min-height: calc(100vh - 73px) !important;
    display: block !important;
    padding-bottom: 150px !important;
}

/* 5. Drawer content: reset z-index so content inside drawers is visible. */
.drawercontent {
    z-index: auto !important;
    position: relative !important;
}

/* 6. Suppress the full-screen backdrop on narrow viewports. */
[data-region="modal-backdrop"],
.modal-backdrop {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    z-index: 0 !important;
}

/* ============================================
   MODERN QUIZ INTERFACE STYLING
   ============================================ */

/* Modern Left Panel - Course Index Timeline */
body.path-mod-quiz .drawer.drawer-left {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%) !important;
    border-right: 1px solid #e2e8f0 !important;
}

body.path-mod-quiz .drawer.drawer-left .drawercontent {
    padding: 24px 16px !important;
}

body.path-mod-quiz .drawer.drawer-left .header-text {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 12px !important;
}

/* Timeline/Stepper Container */
body.path-mod-quiz .course-index-item {
    display: flex !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
    position: relative !important;
}

/* Timeline Indicator Circle */
body.path-mod-quiz .course-index-item::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-weight: bold;
    font-size: 18px;
}

/* Active Timeline Item */
body.path-mod-quiz .course-index-item.active {
    padding: 12px !important;
    background: #eff6ff !important;
    border-left: 4px solid #2563eb !important;
    border-radius: 8px !important;
}

body.path-mod-quiz .course-index-item.active::before {
    background: #dbeafe !important;
    border: 4px solid #eff6ff !important;
    width: 40px;
    height: 40px;
    content: '';
}

/* Modern Quiz Question Card */
body.path-mod-quiz .que {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 40px !important;
    margin: 32px 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
}

body.path-mod-quiz .que:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px) !important;
}

/* Question Title/Stem */
body.path-mod-quiz .que .qtext {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 32px !important;
    line-height: 1.7 !important;
    letter-spacing: -0.3px !important;
}

/* Modern Multiple Choice Options */
body.path-mod-quiz .que.multichoice .answer label {
    display: flex !important;
    align-items: center !important;
    padding: 18px 20px !important;
    margin-bottom: 14px !important;
    border: 2.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: #ffffff !important;
}

body.path-mod-quiz .que.multichoice .answer label:hover {
    border-color: #93c5fd !important;
    background: #f0f7ff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1) !important;
    transform: translateX(4px) !important;
}

body.path-mod-quiz .que.multichoice .answer input[type="radio"]:checked + span {
    color: #1e40af !important;
    font-weight: 700 !important;
}

body.path-mod-quiz .que.multichoice .answer input[type="radio"]:checked ~ label {
    border-color: #3b82f6 !important;
    background: linear-gradient(135deg, #f0f7ff 0%, #eff6ff 100%) !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15) !important;
}

/* Radio Button Styling */
body.path-mod-quiz .que.multichoice .answer input[type="radio"] {
    margin-right: 16px !important;
    width: 22px !important;
    height: 22px !important;
    accent-color: #3b82f6 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

/* Answer Text */
body.path-mod-quiz .que.multichoice .answer span {
    font-size: 15px !important;
    color: #334155 !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

/* Question Progress Bar */
body.path-mod-quiz .question-status {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
}

body.path-mod-quiz .question-status .progress-bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

body.path-mod-quiz .question-status .progress-bar-fill {
    height: 100%;
    background: #2563eb;
    width: 22%;
}

/* Navigation Buttons - Sticky footer so Next Page is always visible */
.submitbtns,
.qn_nav {
    display: flex !important;
    gap: 20px !important;
    justify-content: space-between !important;
    margin-top: 32px !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    padding: 24px 32px !important;
    border-top: 2px solid #e2e8f0 !important;
    z-index: 600 !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.1) !important;
}

/* Adjust when drawers are open */
#page.show-drawer-left .submitbtns,
#page.show-drawer-left .qn_nav {
    left: 285px !important;
}

#page.show-drawer-right .submitbtns,
#page.show-drawer-right .qn_nav {
    right: 315px !important;
}

#page.show-drawer-left.show-drawer-right .submitbtns,
#page.show-drawer-left.show-drawer-right .qn_nav {
    left: 285px !important;
    right: 315px !important;
}

body.path-mod-quiz button,
body.path-mod-quiz input[type="submit"] {
    padding: 14px 28px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    cursor: pointer !important;
}

body.path-mod-quiz .btn-primary,
body.path-mod-quiz input[type="submit"] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3) !important;
}

body.path-mod-quiz .btn-primary:hover,
body.path-mod-quiz input[type="submit"]:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4) !important;
    transform: translateY(-2px) !important;
}

body.path-mod-quiz .btn-secondary {
    background: #ffffff !important;
    color: #334155 !important;
    border: 2.5px solid #cbd5e1 !important;
}

body.path-mod-quiz .btn-secondary:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Modern Right Panel - Quiz Navigation */
body.path-mod-quiz .drawer.drawer-right {
    background: #ffffff !important;
    border-left: 1px solid #e5e7eb !important;
}

body.path-mod-quiz .drawer.drawer-right .drawercontent {
    padding: 24px !important;
}

/* Quiz Navigation Grid */
body.path-mod-quiz .qn_grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
    margin-bottom: 32px !important;
}

body.path-mod-quiz .qn_grid button {
    aspect-ratio: 1 !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #64748b !important;
    cursor: pointer !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.path-mod-quiz .qn_grid button:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px) !important;
}

/* Answered Question */
body.path-mod-quiz .qn_grid button.answered {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    border-color: #86efac !important;
    color: #15803d !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15) !important;
}

body.path-mod-quiz .qn_grid button.answered:hover {
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25) !important;
}

/* Current Question */
body.path-mod-quiz .qn_grid button.current {
    border: 3.5px solid #3b82f6 !important;
    background: linear-gradient(135deg, #f0f7ff 0%, #eff6ff 100%) !important;
    color: #1e40af !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2) !important;
}

body.path-mod-quiz .qn_grid button.current:hover {
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.3) !important;
}

/* Unanswered Question */
body.path-mod-quiz .qn_grid button.unanswered {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
}

/* Drawer Headers */
body.path-mod-quiz .drawer .header-text {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
}

body.path-mod-quiz .drawer .header-subtitle {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin-bottom: 12px !important;
}

/* Content area padding to prevent cutoff at bottom (reserve space for fixed footer) */
#page-content,
#region-main-box,
.container.main-inner {
    padding-bottom: 20px !important;
}

/* Smooth Transitions */
.drawer {
    transition: width 0.3s ease, margin 0.3s ease !important;
}

#page {
    transition: margin-left 0.3s ease, margin-right 0.3s ease !important;
}
