@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

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

:root {
    /* Color Palette */
    --primary-color: #0f172a;       /* Deep Obsidian Slate */
    --primary-light: #1e293b;       /* Dark Navy Surface */
    --secondary-color: #0d9488;     /* Premium Teal */
    --secondary-light: #14b8a6;     /* Vibrant Mint Teal */
    --accent-color: #d97706;        /* Rich Amber / Gold */
    --accent-light: #f59e0b;        /* Glowing Gold */
    --light-bg: #f8fafc;            /* Clean light grey-blue */
    --dark-text: #0f172a;           /* Obsidian Text */
    --light-text: #64748b;          /* Cool Slate Text */
    --white: #ffffff;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0d9488 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
    --gradient-teal: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 8px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 0 15px rgba(20, 184, 166, 0.15);
    
    /* Layout */
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo img {
    height: 44px;
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
    border: 2px solid var(--secondary-light);
}

.logo span {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-teal);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(217, 119, 6, 0.4);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(15, 23, 42, 0.2);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(15, 23, 42, 0.3);
}

.btn-danger {
    background-color: #ef4444;
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero img {
    max-width: 100%;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.hero img:hover {
    transform: scale(1.02);
    border-color: rgba(20, 184, 166, 0.4);
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 60px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

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

.feature-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(226, 232, 240, 0.5);
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-teal);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: inline-block;
    padding: 12px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotate(10deg);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    margin-bottom: 24px;
    font-size: 1.3rem;
    font-family: 'Outfit', sans-serif;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-light);
    border-radius: 2px;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 14px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-light);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-light);
    color: var(--primary-color);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 80px auto;
    background: var(--white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 32px;
    color: var(--primary-color);
    font-size: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-light);
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dark-text);
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-light);
    box-shadow: var(--shadow-glow);
}

/* Dashboard Layout */
.dashboard {
    padding: 60px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.dashboard-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 800;
}

/* Card */
.card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 32px;
}

.card h3 {
    margin-bottom: 24px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* Custom Table Layout */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

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

.table th, .table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.table tr:hover {
    background-color: var(--light-bg);
}

/* Video Player Wrapper */
.video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 0;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Course Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.course-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.course-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
    transition: var(--transition);
    position: relative;
}

.course-card:hover .course-thumbnail {
    filter: brightness(1.1);
}

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

.course-content h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.course-content p {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Alerts & Badges */
.alert {
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* Status Badges */
.badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.badge-active {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-inactive {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-expired {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Modal Layout */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-overlay .form-container {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .form-container {
    transform: scale(1);
}

.centered-card {
    max-width: 600px;
    margin: 0 auto;
}

/* Course Sidebar Viewer Styles */
.sidebar {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    max-height: 560px;
    overflow-y: auto;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-md);
}

.video-list-item {
    display: block;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    text-decoration: none;
    color: var(--dark-text);
    transition: var(--transition);
    border: 1px solid transparent;
}

.video-list-item:hover {
    background: var(--light-bg);
    border-color: #e2e8f0;
}

.video-list-item.active {
    background: var(--gradient-teal);
    color: white;
    box-shadow: var(--shadow-glow);
}

.course-container {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 32px;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        margin: 0 auto 36px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .course-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .dashboard-header .btn {
        width: 100%;
    }
    
    .form-container {
        padding: 30px 20px;
    }
}
