/* LVL UP Imaging Training OS - Premium Design System */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors - LVL UP Imaging */
    --color-navy: #0A1128;
    --color-navy-light: #111A35;
    --color-charcoal: #1A2332;
    --color-slate: #2D3B52;
    --color-slate-light: #3D4D68;
    --color-teal: #4A9D9E;
    --color-teal-light: #5BB5B6;
    --color-accent: #3F89A1;  /* LVL UP Blue */
    --color-accent-light: #5BA3BB;  /* LVL UP Light Blue */
    --color-accent-dark: #2B6A7D;  /* LVL UP Dark Blue */
    --color-white: #FFFFFF;
    --color-off-white: #F9FAFB;
    --color-gray-50: #F8F9FB;
    --color-gray-100: #EDF1F5;
    --color-gray-200: #E1E8EF;
    --color-gray-300: #CBD5E1;
    --color-gray-400: #94A3B8;
    --color-gray-500: #64748B;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1E293B;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    
    /* Premium Gradients */
    --gradient-hero: linear-gradient(135deg, #0A1128 0%, #1A2332 50%, #2D3B52 100%);
    --gradient-teal: linear-gradient(135deg, #4A9D9E 0%, #5BB5B6 100%);
    --gradient-blue: linear-gradient(135deg, #3F89A1 0%, #5BA3BB 100%);  /* LVL UP Blue Gradient */
    --gradient-slate: linear-gradient(135deg, #2D3B52 0%, #3D4D68 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Play', 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(10, 17, 40, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(10, 17, 40, 0.12);
    --shadow-lg: 0 10px 15px -3px rgba(10, 17, 40, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(10, 17, 40, 0.18);
    --shadow-2xl: 0 25px 50px -12px rgba(10, 17, 40, 0.30);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-family);
    background: var(--color-gray-50);
    color: var(--color-gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Logo System */
.logo-horizontal {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-vertical {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    height: 42px;
    width: 42px;
    object-fit: contain;
}

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

/* Section Titles - Editorial Style */
.section-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-navy);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

h1 { font-size: 2.75rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Decorative Line Accent */
.line-accent {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
}

.line-accent-tl {
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    border-radius: var(--radius-2xl) 0 0 0;
}

.line-accent-br {
    bottom: 0;
    right: 0;
    width: 180px;
    height: 180px;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-radius: 0 0 var(--radius-2xl) 0;
}

/* Premium Background Pattern */
.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(90, 163, 224, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(74, 157, 158, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Loading */
.loading {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 17, 40, 0.90);
    backdrop-filter: blur(12px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading.active { display: flex; }

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(91, 163, 224, 0.2);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Page Container */
.page {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active { display: block; }

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(91, 163, 224, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 163, 224, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--color-gray-700);
    border: 1.5px solid var(--color-gray-200);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
}

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

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

.btn-block { width: 100%; }
.btn-sm { padding: 0.625rem 1.125rem; font-size: 0.875rem; }
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-icon-sm { width: 32px; height: 32px; }

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-gray-700);
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: var(--font-family);
    transition: var(--transition);
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(91, 163, 224, 0.1);
}

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

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 1.125rem;
    padding-right: 2.75rem;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(91, 163, 224, 0.12) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}

.login-container {
    max-width: 440px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.login-brand {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.login-logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.login-tagline {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-heading);
}

.login-card {
    background: white;
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 2.75rem 2.5rem;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.login-header h1 {
    font-size: 1.875rem;
    margin-bottom: 0.625rem;
}

.login-header p {
    color: var(--color-gray-500);
    font-size: 0.9375rem;
}

.forgot-password {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password a {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.error-message, .success-message {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    display: none;
    align-items: center;
    gap: 0.625rem;
}

.error-message {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.success-message {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.error-message.show, .success-message.show {
    display: flex;
}

/* App Header */
.app-header {
    background: white;
    border-bottom: 1px solid var(--color-gray-200);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.company-badge {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-700);
}

/* Content Container */
.content-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

@media (max-width: 767px) {
    .content-container {
        padding: 1.25rem 1rem;
    }
}

/* Compact Hero - Mobile Optimized */
.dashboard-hero {
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: 2.5rem 1.75rem;
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 767px) {
    .dashboard-hero {
        padding: 1.5rem 1.25rem;
        margin-bottom: 1.5rem;
        border-radius: var(--radius-lg);
    }
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(91, 163, 224, 0.15) 0%, transparent 60%);
}

.dashboard-hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin-bottom: 1.5rem;
}

.hero-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.dashboard-hero h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

@media (max-width: 767px) {
    .dashboard-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

.dashboard-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
}

@media (max-width: 767px) {
    .dashboard-hero p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

/* Quick Stats - Grid Based on Mobile */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 767px) {
    .quick-stats {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
}

.stat-card {
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

@media (max-width: 767px) {
    .stat-card {
        padding: 1rem;
    }
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
}

@media (max-width: 767px) {
    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }
}

.stat-icon.blue { background: rgba(91, 163, 224, 0.12); color: var(--color-accent); }
.stat-icon.green { background: rgba(16, 185, 129, 0.12); color: var(--color-success); }
.stat-icon.gold { background: rgba(245, 158, 11, 0.12); color: var(--color-warning); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; }

.stat-value {
    font-size: 1.875rem;
    font-weight: 900;
    color: var(--color-navy);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

@media (max-width: 767px) {
    .stat-value {
        font-size: 1.5rem;
    }
}

.stat-label {
    color: var(--color-gray-500);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 767px) {
    .stat-label {
        font-size: 0.6875rem;
    }
}

/* Section Header - Editorial Style */
.section-header {
    margin-bottom: 1.75rem;
    position: relative;
}

@media (max-width: 767px) {
    .section-header {
        margin-bottom: 1rem;
    }
}

.section-header h2 {
    font-size: 1.625rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

@media (max-width: 767px) {
    .section-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
}

.section-header p {
    color: var(--color-gray-500);
    font-size: 0.9375rem;
}

@media (max-width: 767px) {
    .section-header p {
        font-size: 0.8125rem;
    }
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
    margin-bottom: 1.75rem;
}

/* Category Grid - Optimized for Mobile */
.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: row;
    height: 120px;
}

@media (max-width: 767px) {
    .category-card {
        height: 100px;
    }
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.category-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    position: relative;
}

@media (max-width: 767px) {
    .category-image {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
}

.category-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
}

.category-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 767px) {
    .category-content {
        padding: 0.875rem;
    }
}

.category-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .category-title {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
}

.category-description {
    color: var(--color-gray-600);
    font-size: 0.8125rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
    .category-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
        margin-bottom: 0.375rem;
    }
}

.category-lesson-count {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-gray-500);
}

/* Lesson List - Keep Mostly As-Is */
.lesson-list {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.lesson-card {
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.lesson-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-blue);
    transform: scaleY(0);
    transition: var(--transition);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.lesson-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.lesson-card:hover::before {
    transform: scaleY(1);
}

.lesson-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.lesson-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 17, 40, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.lesson-card:hover .lesson-play-overlay {
    opacity: 1;
}

.lesson-play-icon {
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    padding-left: 2px;
}

.lesson-info {
    flex: 1;
    min-width: 0;
}

.lesson-type {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(91, 163, 224, 0.12);
    color: var(--color-accent);
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.lesson-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.lesson-description {
    color: var(--color-gray-600);
    font-size: 0.8125rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 1.5rem 1.5rem 0;
    max-width: 1600px;
    margin: 0 auto;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.breadcrumb-item {
    color: var(--color-gray-500);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.breadcrumb-item:hover {
    color: var(--color-accent);
}

.breadcrumb-separator {
    color: var(--color-gray-400);
    font-size: 0.75rem;
}

.breadcrumb-current {
    color: var(--color-navy);
    font-weight: 700;
}

/* Lesson Player */
.lesson-player-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

.video-player {
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-xl);
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.lesson-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.lesson-main-content {
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-md);
}

.lesson-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-gray-200);
}

.lesson-header h1 {
    font-size: 1.875rem;
    margin-bottom: 0.875rem;
    line-height: 1.15;
}

.lesson-subtitle {
    color: var(--color-gray-600);
    font-size: 1rem;
    line-height: 1.6;
}

.content-block {
    margin-bottom: 2rem;
}

.content-block h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--color-navy);
}

.content-block p {
    color: var(--color-gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

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

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    margin-bottom: 0.625rem;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
}

.checklist-icon {
    color: var(--color-success);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.checklist-text {
    font-size: 0.9375rem;
    color: var(--color-gray-700);
    line-height: 1.5;
}

.warning-box {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-left: 3px solid var(--color-warning);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.warning-box h4 {
    color: #92400E;
    margin-bottom: 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
}

.warning-box p {
    color: #78350F;
    margin: 0;
    font-size: 0.9375rem;
}

.lesson-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.sidebar-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

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

.equipment-item {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.equipment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.equipment-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.equipment-value {
    color: var(--color-gray-800);
    font-weight: 600;
    font-size: 0.9375rem;
}

.lesson-navigation {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
}

.lesson-nav-btn {
    flex: 1;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.9375rem;
}

/* Admin Portal - Unchanged for now */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--color-gray-50);
}

.admin-sidebar {
    width: 280px;
    background: var(--gradient-hero);
    color: white;
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
    box-shadow: var(--shadow-xl);
}

.admin-logo {
    padding: 0 1.5rem;
    margin-bottom: 2.5rem;
}

.admin-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.admin-nav {
    list-style: none;
    padding: 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.875rem;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.admin-nav-link.active {
    background: rgba(91, 163, 224, 0.15);
    color: white;
    border-right: 3px solid var(--color-accent);
}

.admin-nav-icon {
    width: 20px;
    text-align: center;
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 2.5rem 2rem;
}

.admin-header {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1 {
    font-size: 2.25rem;
}

.admin-header-subtitle {
    color: var(--color-gray-500);
    font-size: 0.9375rem;
    margin-top: 0.375rem;
}

.admin-header-actions {
    display: flex;
    gap: 0.875rem;
}

/* Tables */
.data-table {
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.table-search {
    flex: 1;
    max-width: 360px;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1.5px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%2394A3B8"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /></svg>') no-repeat 0.875rem center;
    background-size: 1.125rem;
}

.search-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(91, 163, 224, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--color-gray-50);
}

th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-weight: 700;
    color: var(--color-gray-700);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--color-gray-200);
}

td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-gray-200);
    color: var(--color-gray-700);
    font-size: 0.875rem;
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: var(--color-gray-50);
}

tbody tr:last-child td {
    border-bottom: none;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--color-gray-500);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 17, 40, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal.active { display: flex; }

.modal-content {
    background: white;
    border-radius: var(--radius-2xl);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 1.625rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--color-gray-100);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-gray-600);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--color-gray-200);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--color-gray-200);
    display: flex;
    gap: 0.875rem;
    justify-content: flex-end;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #047857; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #B45309; }
.badge-info { background: rgba(91, 163, 224, 0.15); color: var(--color-accent-dark); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #B91C1C; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--color-gray-300);
    margin-bottom: 1.25rem;
}

.empty-state h3 {
    font-size: 1.375rem;
    margin-bottom: 0.625rem;
    color: var(--color-gray-700);
}

.empty-state p {
    color: var(--color-gray-500);
    font-size: 0.9375rem;
}

/* Responsive */
@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .category-card {
        flex-direction: column;
        height: auto;
    }
    
    .category-image {
        width: 100%;
        height: 180px;
        font-size: 4rem;
    }
    
    .category-content {
        padding: 1.75rem;
    }
    
    .category-title {
        font-size: 1.375rem;
        margin-bottom: 0.75rem;
    }
    
    .category-description {
        font-size: 0.9375rem;
        -webkit-line-clamp: 3;
        margin-bottom: 1rem;
    }
    
    .lesson-thumbnail {
        width: 120px;
        height: 120px;
        font-size: 2.75rem;
    }
    
    .lesson-title {
        font-size: 1.25rem;
    }
    
    .lesson-description {
        font-size: 0.9375rem;
    }
    
    .lesson-content-grid {
        grid-template-columns: 1fr 380px;
    }
}

@media (min-width: 1024px) {
    .dashboard-hero {
        padding: 3.5rem 3rem;
    }
    
    .dashboard-hero h1 {
        font-size: 2.75rem;
    }
    
    .dashboard-hero p {
        font-size: 1.125rem;
    }
    
    .quick-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.75rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.625rem; }
    
    .header-logo img {
        height: 42px !important;
    }
    
    .company-badge span {
        display: none;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .lesson-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lesson-thumbnail {
        width: 100%;
        height: 140px;
    }
    
    .login-logo img {
        height: 100px;
    }
    
    .hero-logo img {
        height: 60px;
    }
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }