/**
 * Premium Modern Academy Stylesheet - style.css
 * Built with standard HSL tokens matching AM Institute of Professional Skills
 * Supports elegant Light/Dark mode transitions, custom glassmorphism, 
 * responsive grid structures, and professional widgets.
 */

/* Import Premium Fonts */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300..900&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
    /* Color Tokens (Light Mode Default) */
    --background: 0 0% 100%;
    --foreground: 220 47% 15%;
    --primary: 174 100% 23%;       /* Professional Emerald-Teal: #007567 */
    --primary-hover: 174 100% 18%;
    --primary-rgb: 0, 117, 103;
    --primary-foreground: 0 0% 100%;
    --secondary: 220 47% 20%;     /* Slate blue */
    --secondary-foreground: 0 0% 100%;
    --accent: 38 92% 50%;          /* Amber orange */
    --accent-foreground: 220 47% 15%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --muted: 210 40% 96%;
    --muted-foreground: 220 15% 45%;
    --card: 0 0% 100%;
    --card-foreground: 220 47% 15%;
    --popover: 0 0% 100%;
    --popover-foreground: 220 47% 15%;
    --border: 214 32% 91%;
    --input: 214 32% 91%;
    --ring: 174 100% 23%;
    --radius: 12px;

    /* Shadow styles */
    --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 -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 12px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 117, 103, 0.1);
}

/* Dark Mode Tokens */
.dark-theme {
    --background: 220 47% 10%;     /* Deep Dark Slate */
    --foreground: 210 40% 98%;
    --primary: 174 80% 40%;        /* Vibrant Teal: #1aa694 */
    --primary-hover: 174 80% 48%;
    --primary-rgb: 26, 166, 148;
    --primary-foreground: 220 47% 10%;
    --secondary: 220 40% 15%;
    --secondary-foreground: 210 40% 98%;
    --accent: 38 92% 50%;
    --accent-foreground: 220 47% 10%;
    --destructive: 0 63% 31%;
    --destructive-foreground: 210 40% 98%;
    --muted: 220 40% 15%;
    --muted-foreground: 215 20% 70%;
    --card: 220 47% 12%;           /* Card Dark Slate */
    --card-foreground: 210 40% 98%;
    --popover: 220 47% 12%;
    --popover-foreground: 210 40% 98%;
    --border: 220 30% 20%;
    --input: 220 30% 20%;
    --ring: 174 80% 40%;
    
    --glass-bg: rgba(11, 19, 41, 0.75);
    --glass-border: rgba(26, 166, 148, 0.15);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 12px -3px rgba(0, 0, 0, 0.45), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    color: inherit;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: hsl(var(--muted));
}
::-webkit-scrollbar-thumb {
    background: hsl(var(--primary) / 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary));
}

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground)) !important;
}
.btn-primary:hover {
    background-color: hsl(var(--primary-hover));
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(var(--primary-rgb), 0.3);
}

.btn-secondary {
    background-color: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}
.btn-secondary:hover {
    background-color: hsl(var(--border));
    transform: translateY(-2px);
}

.btn-accent {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}
.btn-accent:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
}

/* Glassmorphism Styles */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
}

/* Floating Blurred Circles for Aesthetics */
.blur-bg-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: hsl(var(--primary) / 0.15);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* 1. Header Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 76px;
    background: hsl(var(--background) / 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: hsl(var(--primary));
    font-family: 'Outfit', sans-serif;
}
.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: hsl(var(--primary));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: hsl(var(--foreground) / 0.8);
    transition: color 0.2s;
    cursor: pointer;
}
.nav-link:hover, .nav-link.active {
    color: hsl(var(--primary));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Switcher Button */
.theme-switch-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    cursor: pointer;
}
.theme-switch-btn:hover {
    background: hsl(var(--border));
}

/* 2. Hero Section */
.hero {
    position: relative;
    padding: 100px 0 80px 0;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.hero-text h1 {
    font-size: 54px;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: hsl(var(--foreground));
}

.hero-text p {
    font-size: 18px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid hsl(var(--border));
    padding-top: 24px;
}

.stat-item h3 {
    font-size: 32px;
    color: hsl(var(--primary));
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4/3;
    border: 4px solid hsl(var(--card));
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3. Courses Catalog Grid */
.section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
}
.section-header p {
    color: hsl(var(--muted-foreground));
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters and Search Control Panel */
.control-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.search-bar {
    width: 100%;
    position: relative;
}
.search-bar input {
    width: 100%;
    padding: 16px 24px 16px 54px;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    box-shadow: var(--shadow-sm);
    font-size: 15px;
    color: hsl(var(--foreground));
}
.search-bar input:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}
.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
}

.filter-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.filter-tab {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius);
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    white-space: nowrap;
    transition: all 0.2s;
}
.filter-tab:hover {
    background: hsl(var(--border));
}
.filter-tab.active {
    background: hsl(var(--primary));
    color: white;
    border-color: hsl(var(--primary));
}

/* Course Card Details */
.course-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transform: translateZ(0);
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: hsl(var(--primary) / 0.3);
}

.course-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-bottom: 1px solid hsl(var(--border));
}

.course-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-badge {
    align-self: flex-start;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    margin-bottom: 14px;
}

.course-body h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: hsl(var(--foreground));
}

.course-body p {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid hsl(var(--border));
    padding-top: 16px;
    margin-top: auto;
}

.course-duration {
    font-size: 13px;
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-price {
    font-size: 18px;
    font-weight: 800;
    color: hsl(var(--primary));
}

.course-footer-btn {
    width: 100%;
    margin-top: 16px;
}

/* 4. Why Choose Us / Testimonials */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    border-radius: var(--radius);
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow);
}
.feature-card:hover {
    border-color: hsl(var(--primary) / 0.3);
}
.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
}

.testimonials-slider {
    margin-top: 40px;
}

.testimonial-card {
    padding: 36px;
    border-radius: 20px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-md);
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-quote {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 24px;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 13px;
    color: hsl(var(--muted-foreground));
}

.badge-result {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    background: hsl(var(--accent) / 0.1);
    color: hsl(var(--accent));
}

/* 5. FAQs Accordion Layout */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.faq-question:hover {
    background: hsl(var(--muted));
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    color: hsl(var(--muted-foreground));
    font-size: 15px;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 24px 20px 24px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s;
}

.faq-question::after {
    content: "+";
    font-size: 20px;
    font-weight: 700;
    color: hsl(var(--primary));
    transition: transform 0.2s;
}
.faq-item.active .faq-question::after {
    content: "-";
    transform: rotate(180deg);
}

/* 6. Form Styling (Admissions / Login / Contact) */
.form-card {
    max-width: 580px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: hsl(var(--foreground));
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 15px;
}
.form-control:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 12px;
}

.form-subtitle {
    text-align: center;
    color: hsl(var(--muted-foreground));
    font-size: 15px;
    margin-bottom: 32px;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: hsl(var(--muted-foreground));
}
.form-footer a {
    color: hsl(var(--primary));
    font-weight: 700;
}
.form-footer a:hover {
    text-decoration: underline;
}

/* Toast Message Notification UI */
.toast-msg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 28px;
    border-radius: var(--radius);
    background: hsl(var(--primary));
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-msg.show {
    transform: translateY(0);
    opacity: 1;
}

/* 7. LMS Student Dashboard Layout */
body.lms-body {
    overflow: hidden !important;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

body.lms-body .header {
    flex-shrink: 0;
}

.lms-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    flex-grow: 1;
    height: 0;
    min-height: 0;
    overflow: hidden;
}

.lms-sidebar {
    background: hsl(var(--card));
    border-right: 1px solid hsl(var(--border));
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.lms-user-info {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid hsl(var(--border));
    margin-bottom: 24px;
}

.lms-user-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 12px auto;
    font-family: 'Outfit', sans-serif;
}

.lms-user-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.lms-user-role {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.lms-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lms-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    color: hsl(var(--muted-foreground));
    cursor: pointer;
}
.lms-menu-item:hover, .lms-menu-item.active {
    background: hsl(var(--primary) / 0.08);
    color: hsl(var(--primary));
}
.lms-menu-item.logout {
    margin-top: auto;
}
.lms-menu-item.logout:hover {
    background: hsl(var(--destructive) / 0.08);
    color: hsl(var(--destructive));
}

.lms-content {
    padding: 40px;
    overflow-y: auto;
    background: hsl(var(--muted) / 0.3);
}

.lms-view {
    display: none;
}
.lms-view.active {
    display: block;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: hsl(var(--muted));
    border-radius: 100px;
    overflow: hidden;
    margin-top: 10px;
}
.progress-bar-fill {
    height: 100%;
    background: hsl(var(--primary));
    border-radius: 100px;
}

/* Widescreen Video Lecture Screen */
.lecture-player-grid {
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: 32px;
    margin-top: 24px;
}

.video-container {
    width: 100%;
    background: black;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-md);
    position: relative;
}
.video-container video {
    width: 100%;
    height: 100%;
}

.lecture-playlist-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    max-height: 480px;
}

.playlist-header {
    padding: 20px;
    border-bottom: 1px solid hsl(var(--border));
    font-weight: 700;
}

.playlist-items {
    overflow-y: auto;
    flex-grow: 1;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid hsl(var(--border));
    cursor: pointer;
}
.playlist-item:hover {
    background: hsl(var(--muted));
}
.playlist-item.active {
    background: hsl(var(--primary) / 0.05);
    border-left: 4px solid hsl(var(--primary));
}

.playlist-item-info {
    flex-grow: 1;
}
.playlist-item-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}
.playlist-item-meta {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
}

/* Widescreen Live Lecture Screen */
.live-lecture-container {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.live-badge-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.live-icon-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(var(--destructive));
    box-shadow: 0 0 10px hsl(var(--destructive));
}

/* Embedded Class Room for Zoom / Meet / Jitsi */
.embed-live-screen {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111b27;
    border-radius: var(--radius);
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    border: 2px dashed hsl(var(--primary) / 0.4);
}

/* Countdown Clock */
.countdown-clock {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 24px 0;
}
.countdown-box {
    padding: 16px 20px;
    border-radius: var(--radius);
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    min-width: 80px;
    text-align: center;
}
.countdown-number {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: hsl(var(--primary));
}
.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: hsl(var(--muted-foreground));
}

/* 8. Admin Control Panel Dashboard styles */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.admin-stat-card {
    padding: 24px;
    border-radius: var(--radius);
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-sm);
}

.admin-stat-card h4 {
    font-size: 13px;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    margin-bottom: 8px;
    font-weight: 600;
}
.admin-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: hsl(var(--primary));
    font-family: 'Outfit', sans-serif;
}

/* Interactive tables */
.table-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 40px;
}

.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid hsl(var(--border));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

table.admin-table th {
    padding: 16px 24px;
    border-bottom: 2px solid hsl(var(--border));
    font-size: 13px;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    font-weight: 700;
}

table.admin-table td {
    padding: 16px 24px;
    border-bottom: 1px solid hsl(var(--border));
    font-size: 14px;
}

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

table.admin-table tr:hover td {
    background: hsl(var(--muted) / 0.2);
}

/* Badge status indicators */
.badge-status {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-approved {
    background: rgb(220, 252, 231);
    color: rgb(22, 163, 74);
}
.status-pending {
    background: rgb(254, 243, 199);
    color: rgb(217, 119, 6);
}
.status-rejected {
    background: rgb(254, 226, 226);
    color: rgb(220, 38, 38);
}

/* Modal form popup style */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}
.modal.open {
    display: flex;
}
.modal-content {
    background: hsl(var(--card));
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    padding: 36px;
    box-shadow: var(--shadow-xl);
    position: relative;
    border: 1px solid hsl(var(--border));
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: hsl(var(--muted-foreground));
}

/* Footer Section */
.footer {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: 60px 0 30px 0;
    font-size: 15px;
    border-top: 1px solid hsl(var(--border) / 0.1);
}

.footer-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.footer-col p {
    color: hsl(var(--secondary-foreground) / 0.7);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: hsl(var(--secondary-foreground) / 0.7);
    transition: color 0.2s;
}
.footer-link:hover {
    color: hsl(var(--primary));
}

.footer-bottom {
    border-top: 1px solid hsl(var(--secondary-foreground) / 0.1);
    padding-top: 30px;
    text-align: center;
    color: hsl(var(--secondary-foreground) / 0.5);
    font-size: 14px;
}

/* Responsive adjustments */
@media(max-width: 991px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-text p {
        margin: 0 auto 36px auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .footer-layout {
        grid-template-columns: 1fr 1fr;
    }
    body.lms-body {
        overflow: auto !important;
        height: auto !important;
    }
    .lms-layout {
        grid-template-columns: 1fr;
        height: auto !important;
        flex-grow: 0 !important;
        overflow: visible !important;
    }
    .lms-sidebar {
        border-right: none;
        border-bottom: 1px solid hsl(var(--border));
        height: auto !important;
        overflow-y: visible !important;
    }
    .lms-content {
        height: auto !important;
        overflow-y: visible !important;
    }
    .lecture-player-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 767px) {
    .hero-text h1 {
        font-size: 38px;
    }
    .footer-layout {
        grid-template-columns: 1fr;
    }
    .form-card {
        padding: 24px;
    }
    .lms-content {
        padding: 20px 16px;
    }
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}
