:root {
    --primary: #2C5F2D; /* Forest Green for Nias nature */
    --primary-light: #97BC62;
    --secondary: #D4A373; /* Earthy Wood/Stone color */
    --accent: #FFB703; /* Gold/Sunshine */
    --bg-light: #F8F9FA;
    --text-dark: #1A1A1A;
    --text-muted: #6C757D;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ★ Aesthetic Custom Cursor — Nias Star Theme */
#custom-cursor {
    width: 28px;
    height: 28px;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, opacity 0.3s;
    color: var(--primary);
    filter: drop-shadow(0 0 6px rgba(44, 95, 45, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

#custom-cursor svg {
    width: 100%;
    height: 100%;
    transition: transform 0.25s ease, filter 0.25s ease;
}

#cursor-follower {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(44, 95, 45, 0.35);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.35s ease, height 0.35s ease, border-color 0.35s ease, background 0.35s ease, opacity 0.3s;
}

/* Hover state — glow up */
#custom-cursor.cursor-hover {
    width: 36px;
    height: 36px;
    color: var(--accent);
    filter: drop-shadow(0 0 12px rgba(255, 183, 3, 0.7));
}

#custom-cursor.cursor-hover svg {
    transform: rotate(0deg) scale(1.1); /* Animate the arrow rotation */
}

#cursor-follower.follower-hover {
    width: 56px;
    height: 56px;
    border-color: rgba(255, 183, 3, 0.4);
    background: rgba(255, 183, 3, 0.06);
}

/* Click animation — pulse */
#custom-cursor.cursor-click {
    width: 20px;
    height: 20px;
}
#custom-cursor.cursor-click svg {
    transform: scale(0.8);
}
#cursor-follower.follower-click {
    width: 36px;
    height: 36px;
    border-color: rgba(44, 95, 45, 0.6);
    background: rgba(44, 95, 45, 0.08);
}

/* Text input mode — thin line */
#custom-cursor.cursor-text {
    width: 3px;
    height: 22px;
    border-radius: 2px;
    background: var(--primary);
    filter: none;
}
#custom-cursor.cursor-text svg {
    display: none;
}

/* Animated Waves Improvement */
.wave-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
}

.waves {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 35vh;
    min-height: 200px;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) { animation-delay: -2s; animation-duration: 10s; fill: rgba(44, 95, 45, 0.3); }
.parallax > use:nth-child(2) { animation-delay: -3s; animation-duration: 15s; fill: rgba(151, 188, 98, 0.2); }
.parallax > use:nth-child(3) { animation-delay: -4s; animation-duration: 20s; fill: rgba(44, 95, 45, 0.1); }
.parallax > use:nth-child(4) { animation-delay: -5s; animation-duration: 25s; fill: rgba(151, 188, 98, 0.05); }

@keyframes move-forever {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

/* Floating Abstract Blobs */
.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(44, 95, 45, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    animation: blob-float 30s infinite alternate;
}

@keyframes blob-float {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.2); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand {
    font-family: 'Playfair Display', serif;
}

.hidden {
    display: none !important;
}

/* Auth Layout */
#auth-layout {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2C5F2D 0%, #1a3a1b 50%, #0d1f0e 100%);
}

.auth-container {
    width: 95%;
    max-width: 1000px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-box {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
    min-height: 600px;
}

.auth-visual {
    flex: 1;
    background: url('bg-nias.png') center/cover no-repeat;
    position: relative;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
}

.auth-visual .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
}

.auth-quote {
    position: relative;
    z-index: 1;
}

.auth-quote h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.auth-form-container {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-header {
    margin-bottom: 25px;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-left: 5px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 2px;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--primary-light);
}

.auth-footer a:hover::after {
    width: 100%;
}

.auth-logo {
    width: 60px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-primary:hover {
    background: #1e421f;
    transform: translateY(-2px);
}

/* Main Layout */
#main-layout {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: #2C5F2D; /* Match primary color */
    background-image: linear-gradient(135deg, rgba(44,95,45,0.95) 0%, rgba(30,66,31,0.95) 100%), url("pattern-nias.png");
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    color: white;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.1);
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 20px;
}

.sidebar-header h2 { color: white; flex: 1; font-size: 1.2rem; }
.logo { width: 40px; border-radius: 8px; }

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.minimize-btn {
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: none;
    cursor: none;
    font-size: 1.2rem;
    padding: 5px;
    transition: var(--transition);
}

.minimize-btn:hover { color: white; }

.sidebar.minimized {
    width: 80px;
    padding: 30px 10px;
}

.sidebar.minimized .sidebar-header h2,
.sidebar.minimized .sidebar-nav span,
.sidebar.minimized .sidebar-footer .logout-text,
.sidebar.minimized .sidebar-footer-info {
    display: none;
}

.sidebar.minimized .minimize-btn {
    transform: rotate(180deg);
    margin: 15px auto 0;
}

.sidebar.minimized .sidebar-header {
    justify-content: center;
    flex-direction: column;
}

.sidebar.minimized .sidebar-nav li {
    justify-content: center;
    padding: 15px 0;
}

.sidebar.minimized .sidebar-nav li i {
    margin-right: 0;
    font-size: 1.2rem;
}

/* Hover names for minimized sidebar */
.sidebar.minimized .sidebar-nav li {
    position: relative;
    overflow: visible;
}

.sidebar.minimized .sidebar-nav li span {
    position: absolute;
    left: 70px;
    background: var(--primary);
    padding: 8px 15px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.sidebar.minimized .sidebar-nav li:hover span {
    opacity: 1;
    visibility: visible;
    left: 85px;
}

.sidebar-nav li {
    color: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.sidebar-nav li:hover, .sidebar-nav li.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.sidebar-nav li i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* Course Player Layout */
.course-player-view {
    display: grid;
    grid-template-columns: 1fr 320px;
    height: calc(100vh - 80px);
}

.lesson-content {
    padding: 40px;
    overflow-y: auto;
    background: white;
}

.lesson-sidebar {
    background: #f8f9fa;
    border-left: 1px solid #eee;
    padding: 20px;
    overflow-y: auto;
}

.lesson-item {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    background: white;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.lesson-item:hover { border-color: var(--primary); }
.lesson-item.active { background: var(--primary); color: white; border-color: var(--primary); }
.lesson-item.completed i { color: #2ecc71; }
.lesson-item.active i { color: white; }

/* Achievement Badges */
.achievement-grid {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.badge-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    cursor: help;
}

.badge-item.earned { background: var(--accent); color: var(--text-dark); border: 2px solid white; box-shadow: 0 4px 10px rgba(255, 183, 3, 0.3); }
.badge-item.earned::after { content: '✓'; position: absolute; bottom: 0; right: 0; background: #2ecc71; color: white; font-size: 0.6rem; width: 15px; height: 15px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.sidebar-footer {
    margin-top: auto;
}

#logout-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #e63946;
    font-weight: 600;
}

.content {
    flex: 1;
    overflow-y: auto;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 80px;
    background: var(--white);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #eee;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    padding: 10px 20px;
    border-radius: 20px;
    width: 400px;
}

.search-bar input {
    background: transparent;
    border: none;
    margin-left: 10px;
    width: 100%;
    outline: none;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 25px;
}

.notifications {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e63946;
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 10px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-info img {
    width: 40px;
    border-radius: 50%;
}

.user-name {
    font-weight: 600;
}

/* Dashboard Views Content */
.view-padding {
    padding: 40px;
    flex: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-details h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Module Cards */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

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

.module-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.module-card:hover {
    transform: translateY(-5px);
}

.module-img {
    height: 180px;
    background: #ddd;
    position: relative;
}

.module-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.module-info {
    padding: 20px;
}

.module-info h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.module-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 15px;
}

.progress-container {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-top: 15px;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

/* Potensi Lokal Showcase */
.potensi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.potensi-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 400px;
}

.potensi-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.potensi-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

/* Forum Interface */
.forum-container {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.forum-thread {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 20px;
}

.thread-user img {
    width: 45px;
    border-radius: 50%;
}

.thread-content h4 {
    margin-bottom: 5px;
}

.thread-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.animate-fade-in { animation: fadeIn 0.8s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }
.animate-slide-left { animation: slideInLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

.mb-30 { margin-bottom: 30px; }

/* Filter Buttons */
.btn-filter {
    padding: 8px 18px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

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

.btn-secondary:hover {
    background: #e9ecef;
}

/* Dropdowns & Modals */
.clickable { cursor: pointer; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: var(--shadow);
    border-radius: 12px;
    min-width: 200px;
    z-index: 100;
    margin-top: 10px;
    padding: 10px 0;
    border: 1px solid #eee;
    animation: slideUp 0.3s ease-out;
}

.dropdown-menu ul { list-style: none; }

.dropdown-menu li {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
}

.dropdown-menu li:hover { background: #f8f9fa; color: var(--primary); }
.dropdown-menu li.divider { height: 1px; background: #eee; margin: 5px 0; padding: 0; }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-box {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* Quiz Styles */
.quiz-option {
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.quiz-option:hover { border-color: var(--primary-light); background: rgba(44, 95, 45, 0.02); }
.quiz-option.selected { border-color: var(--primary); background: rgba(44, 95, 45, 0.05); }

/* Analytics Radar Chart */
.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.chart-container { height: 300px; position: relative; }

/* Notification Item */
.notif-item {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
}

/* Captcha Styling */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.captcha-img {
    height: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: white;
}

.btn-refresh {
    background: none;
    border: none;
    color: var(--primary);
    cursor: none; /* Sesuai cursor kustom */
    font-size: 1.1rem;
    padding: 5px;
    transition: var(--transition);
}

.btn-refresh:hover { transform: rotate(180deg); color: var(--accent); }

.captcha-wrapper input {
    flex: 1;
    height: 40px !important;
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
}
#chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
}

#chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: none;
    box-shadow: 0 10px 30px rgba(44, 95, 45, 0.3);
}

#chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
}

.chat-messages {
    height: 300px;
    padding: 20px;
    overflow-y: auto;
    background: #f9f9f9;
}

.message {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    font-size: 0.9rem;
}

.message.bot { background: #eee; align-self: flex-start; }
.message.user { background: var(--primary); color: white; align-self: flex-end; margin-left: auto; }

.chat-input { padding: 15px; display: flex; gap: 10px; border-top: 1px solid #eee; }
.chat-input input { flex: 1; border: 1px solid #eee; border-radius: 10px; padding: 8px; cursor: none; }

/* Mobile Header */
.mobile-header {
    display: none;
    background: #1a1a1a;
    color: white;
    padding: 15px 20px;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-small { width: 30px; filter: brightness(0) invert(1); }

/* Footer */
.main-footer {
    padding: 20px 40px;
    background: white;
    border-top: 1px solid #eee;
    text-align: center;
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: auto;
}

.footer-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }

.sidebar-footer-info {
    padding: 20px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* FAQ View */
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: none;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-muted);
    display: none;
}

/* Responsive Overhaul */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        z-index: 200;
        transition: var(--transition);
    }
    
    .sidebar.active { left: 0; }
    
    .mobile-header { display: flex; }
    
    .course-player-view { grid-template-columns: 1fr; }
    .lesson-sidebar { display: none; }
    
    .stats-grid { grid-template-columns: 1fr; }
    
    .topbar { padding: 15px; }
    .search-bar { width: 100%; margin-right: 15px; }
    .user-name { display: none; }
}

@media (max-width: 600px) {
    .module-grid { grid-template-columns: 1fr; }
    .analytics-grid { grid-template-columns: 1fr; }
}
/* Dashboard Statistics Table */
.dashboard-table-container {
    background: white;
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-top: 30px;
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.dashboard-table th {
    text-align: left;
    padding: 15px;
    background: #f8f9fa;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-completed { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }
.status-ongoing { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.status-not-started { background: rgba(108, 117, 125, 0.1); color: #6c757d; }

/* PDF Button Styling */
.btn-pdf {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    color: #e63946;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.btn-pdf:hover {
    background: #e63946;
    color: white;
    border-color: #e63946;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.module-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
}
