/* ============================================
   Uniq English - Main Stylesheet
   ============================================ */


/* CSS Variables */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --black: #000000;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-orange: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-red: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --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 -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}


/* Reset & Base */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}


/* Container */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}


/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    transition: var(--transition);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.header.scrolled .btn-ghost {
    color: var(--gray-600);
}

.header.scrolled .btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

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

.btn-white:hover {
    background: var(--gray-100);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.btn-full {
    width: 100%;
}


/* Spinner */

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

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


/* ============================================
   Header
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 1rem 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0.75rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.header.scrolled .logo-text {
    color: var(--gray-900);
}

.nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    transition: var(--transition);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.nav-link.active {
    color: var(--white);
    text-decoration: underline;
}

.header.scrolled .nav-link {
    color: var(--gray-600);
}

.header.scrolled .nav-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.header.scrolled .nav-link.active {
    color: var(--primary);
    text-decoration: underline;
}

.auth-buttons {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.user-menu {
    position: relative;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* On mobile, user avatar acts as menu toggle */
@media (max-width: 767px) {
    .user-menu .dropdown {
        display: none !important;
    }
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

/* Desktop: hover to show dropdown */
@media (min-width: 768px) {
    .user-menu:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown a {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    transition: var(--transition);
}

.dropdown a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1.25rem;
    color: var(--gray-700);
    box-shadow: var(--shadow);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 5rem 1.5rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Mobile menu overlay - blur background */
.mobile-menu.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 50%;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
    animation: fadeIn 0.3s ease;
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.mobile-auth {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-user-menu {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-200);
}

.mobile-user-menu .btn {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
}

.mobile-user-menu .btn i {
    font-size: 1rem;
}

@media (min-width: 768px) {

    .nav,
    .auth-buttons,
    .user-menu {
        display: flex;
    }

    .mobile-menu-btn {
        display: none !important;
    }
}


/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 8rem;
}

@media (max-width: 768px) {
    .hero {
        padding-bottom: 10rem;
    }
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.floating-shape {
    position: absolute;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(4px);
}

.shape-1 {
    top: 5rem;
    right: 5rem;
    width: 8rem;
    height: 8rem;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    bottom: 10rem;
    right: 10rem;
    width: 6rem;
    height: 6rem;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    top: 10rem;
    left: 5rem;
    width: 4rem;
    height: 4rem;
    background: rgba(59, 130, 246, 0.2);
    animation: pulse-scale 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-scale {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-text {
        text-align: left;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.pulse {
    width: 0.5rem;
    height: 0.5rem;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }
}

.gradient-text {
    background: linear-gradient(90deg, #fcd34d, #fb923c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 2rem;
}

@media (min-width: 1024px) {
    .hero p {
        margin: 0 0 2rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Refund Badge in Hero */
.refund-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.refund-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.refund-badge i {
    font-size: 1.1rem;
}

.refund-badge span {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .refund-badge {
        justify-content: center;
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
    }

    .refund-badge span {
        white-space: normal;
        text-align: center;
    }
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .hero-stats {
        justify-content: flex-start;
        margin-bottom: 0;
    }
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat i {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat>div {
    display: flex;
    flex-direction: column;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}


.hero-image {
    display: none;
    position: relative;
}

@media (min-width: 1024px) {
    .hero-image {
        display: block;
    }
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: float 4s ease-in-out infinite;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.floating-card i {
    width: 3rem;
    height: 3rem;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary);
}

.floating-card strong {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-900);
}

.floating-card span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.card-1 {
    bottom: -1.5rem;
    left: -1.5rem;
    animation: fade-in-up 0.6s ease 0.8s both;
}

.card-2 {
    top: -1.5rem;
    right: -1.5rem;
    animation: fade-in-up 0.6s ease 1s both;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 1;
}

.hero-wave svg {
    width: 100%;
    height: auto;
    display: block;
}


/* ============================================
   Section Header
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-header h2 {
        font-size: 2.5rem;
    }
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}


/* ============================================
   Courses Section
   ============================================ */

.courses {
    padding: 5rem 0;
    background: var(--white);
}

@media (max-width: 767px) {
    .courses {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .courses {
        padding: 2rem 0;
    }
}

/* Course Search Bar */
.course-search-wrapper {
    margin-bottom: 1.5rem;
}

.course-search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.course-search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.course-search-bar i.fa-search {
    color: var(--gray-400);
    margin-right: 0.75rem;
    font-size: 1rem;
}

.course-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--gray-800);
    background: transparent;
}

.course-search-bar input::placeholder {
    color: var(--gray-400);
}

.course-search-bar .clear-search {
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: 0.5rem;
}

.course-search-bar .clear-search:hover {
    color: var(--gray-600);
}

.filter-tabs {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.filter-tabs.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-transform: capitalize;
}

.filter-btn:hover {
    background: var(--gray-200);
}

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

@media (max-width: 767px) {
    .course-search-wrapper {
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .course-search-bar {
        max-width: 100%;
        padding: 0.625rem 0.75rem;
        border-radius: var(--radius-md);
    }

    .course-search-bar i.fa-search {
        margin-right: 0.5rem;
        font-size: 0.9rem;
    }

    .course-search-bar input {
        font-size: 0.95rem;
    }

    .course-search-bar .clear-search {
        padding: 0.2rem;
        margin-left: 0.375rem;
    }

    .filter-tabs {
        gap: 0.375rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .course-search-wrapper {
        margin-bottom: 0.75rem;
        padding: 0 0.75rem;
    }

    .course-search-bar {
        padding: 0.5rem 0.625rem;
        border-radius: var(--radius);
    }

    .course-search-bar i.fa-search {
        margin-right: 0.375rem;
        font-size: 0.85rem;
    }

    .course-search-bar input {
        font-size: 0.9rem;
    }

    .course-search-bar input::placeholder {
        font-size: 0.85rem;
    }

    .filter-tabs {
        gap: 0.25rem;
        margin-bottom: 1rem;
        padding: 0 0.75rem;
    }

    .filter-btn {
        padding: 0.35rem 0.625rem;
        font-size: 0.75rem;
    }
}

/* Courses Loading Animation */
.courses-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    min-height: 400px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 10px 0;
}

.loading-subtext {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

.courses-grid {
    display: grid;
    gap: 2rem;
}

/* Mobile: 2 columns with proper sizing - prevent shrinking */
@media (max-width: 767px) {
    .courses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .course-card {
        min-width: 0;
        width: 100%;
    }

    .course-thumbnail {
        aspect-ratio: 4 / 3;
        min-height: 120px;
    }

    .course-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .course-content {
        padding: 0.75rem;
        min-width: 0;
    }

    .course-title {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.25rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    .course-description {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .course-meta {
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .course-category {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
    }

    .course-rating {
        font-size: 0.7rem !important;
    }

    .course-stats {
        font-size: 0.7rem !important;
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .course-stats span {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        white-space: nowrap;
    }

    .course-footer {
        padding-top: 0.5rem !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .course-instructor {
        gap: 0.35rem !important;
        min-width: 0;
        flex: 1;
    }

    .instructor-avatar {
        width: 1.5rem !important;
        height: 1.5rem !important;
        font-size: 0.65rem !important;
        flex-shrink: 0;
    }

    .course-instructor span {
        font-size: 0.7rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .course-footer .btn {
        font-size: 0.7rem !important;
        padding: 0.35rem 0.5rem !important;
        white-space: nowrap;
    }

    .course-badges {
        gap: 0.25rem !important;
    }

    .course-badges .badge {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}

/* Small mobile devices */
@media (max-width: 374px) {
    .courses-grid {
        gap: 0.5rem;
    }

    .course-title {
        font-size: 0.8rem !important;
    }

    .course-description {
        font-size: 0.7rem !important;
    }
}

/* Tablet and up: 3 columns */
@media (min-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* View More Button Container */
.view-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-more-container .btn {
    min-width: 200px;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

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

.course-thumbnail {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-thumbnail::after {
    opacity: 1;
}

.course-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

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

.badge-paid {
    background: var(--primary);
    color: var(--white);
}

.badge-level {
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-700);
    text-transform: capitalize;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.course-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.course-content {
    padding: 1.5rem;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.course-category {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #f59e0b;
    font-size: 0.875rem;
    font-weight: 500;
}

.course-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card:hover .course-title {
    color: var(--primary);
}

.course-description {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.course-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instructor-avatar {
    width: 2rem;
    height: 2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
}

.course-instructor span {
    font-size: 0.875rem;
    color: var(--gray-600);
}


/* ============================================
   Gallery Section
   ============================================ */

.gallery {
    padding: 5rem 0;
    background: var(--gray-50);
}

.gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 2;
}

.gallery-item.large {
    aspect-ratio: 1;
}

@media (min-width: 768px) {
    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.gallery-overlay i {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-800);
    font-size: 1.25rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    opacity: 1;
    transform: scale(1);
}


/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    color: var(--white);
    font-size: 0.875rem;
}


/* ============================================
   About Section
   ============================================ */

.about {
    padding: 5rem 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.experience-card {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
}

.experience-card i {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.experience-card strong {
    display: block;
    font-size: 1.5rem;
    color: var(--gray-900);
}

.experience-card span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.circle-1 {
    top: -1rem;
    left: -1rem;
    width: 6rem;
    height: 6rem;
    background: #dbeafe;
}

.circle-2 {
    bottom: -2rem;
    left: 25%;
    width: 4rem;
    height: 4rem;
    background: #ede9fe;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .about-content h2 {
        font-size: 2.5rem;
    }
}

.about-content>p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.feature-list {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--gray-700);
}

.feature-list i {
    color: var(--success);
    font-size: 1.25rem;
}


/* Stats Grid */

.stats-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

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

.stat-card i {
    width: 3.5rem;
    height: 3.5rem;
    background: #dbeafe;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.stat-number {
    display: inline;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-card p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}


/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Mobile: 3 columns in same row */
@media (max-width: 767px) {
    .footer {
        padding: 2rem 0 1.5rem;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 0.5rem;
        margin-bottom: 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 0.75rem;
        padding: 0 0.5rem;
    }

    .footer-brand .logo {
        justify-content: center;
        margin-bottom: 0.75rem;
    }

    .footer-brand .logo-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .footer-brand .logo-text {
        font-size: 1.125rem;
    }

    .footer-brand p {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0.875rem;
        color: var(--gray-400);
    }

    .social-links {
        justify-content: center;
        gap: 0.5rem;
    }

    .social-links a {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }

    /* All three sections in same row with equal spacing */
    .footer-links:nth-of-type(1),
    .footer-links:nth-of-type(2),
    .footer-contact {
        padding: 0 0.25rem;
    }

    .footer-links h3,
    .footer-contact h3 {
        font-size: 0.8125rem;
        margin-bottom: 0.625rem;
        font-weight: 700;
        color: var(--white);
        text-align: left;
    }

    .footer-links ul {
        gap: 0.375rem;
        text-align: left;
    }

    .footer-links a {
        font-size: 0.6875rem;
        padding: 0.125rem 0;
        display: block;
        line-height: 1.3;
    }

    .footer-contact ul {
        gap: 0.5rem;
        text-align: left;
    }

    .footer-contact li {
        font-size: 0.625rem;
        line-height: 1.3;
        gap: 0.25rem;
        word-break: break-word;
    }

    .footer-contact i {
        font-size: 0.6875rem;
        margin-top: 0.125rem;
        min-width: 0.875rem;
    }

    .footer-bottom {
        padding-top: 1.25rem;
        font-size: 0.6875rem;
        line-height: 1.4;
    }
}

/* Small mobile devices - even more compact */
@media (max-width: 374px) {
    .footer-grid {
        gap: 1.25rem 0.375rem;
    }

    .footer-brand p {
        font-size: 0.6875rem;
    }

    .footer-links h3,
    .footer-contact h3 {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        font-size: 0.625rem;
    }

    .footer-contact li {
        font-size: 0.5625rem;
    }

    .footer-contact i {
        font-size: 0.625rem;
    }
}

/* Tablet: 3 columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Desktop: 4 columns (Brand + 3 sections) */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 3rem;
    }
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 0.25rem;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--gray-400);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
    font-size: 0.875rem;
}


/* ============================================
   Auth Pages
   ============================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    padding: 2rem 1rem;
    position: relative;
}

.auth-page .back-to-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: var(--transition);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-left: 0;
}

.auth-page .back-to-home:hover {
    color: var(--primary);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(-4px);
}

.auth-page .back-to-home i {
    font-size: 1.125rem;
    color: var(--primary);
}

.auth-page .back-to-home span {
    white-space: nowrap;
    font-size: 0.9375rem;
}

@media (max-width: 767px) {
    .auth-page .back-to-home {
        top: 1rem;
        left: 1rem;
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .auth-page .back-to-home i {
        font-size: 1rem;
    }

    .auth-page .back-to-home span {
        font-size: 0.875rem;
    }
}

.back-to-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.625rem;
    font-weight: 500;
    transition: var(--transition);
    background: transparent;
    border-radius: 0.5rem;
    margin-left: auto;
}

.back-to-home:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.back-to-home i {
    font-size: 1rem;
    color: var(--primary);
}

.back-to-home span {
    white-space: nowrap;
    font-size: 0.625rem;
}

@media (max-width: 767px) {
    .back-to-home {
        padding: 0.375rem;
        font-size: 0.5625rem;
    }

    .back-to-home i {
        font-size: 0.875rem;
    }
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
}

@media (max-width: 767px) {
    .auth-card {
        padding: 1.75rem;
        border-radius: var(--radius-lg);
    }

    .auth-logo span {
        font-size: 1.25rem;
    }

    .auth-card h1 {
        font-size: 1.5rem;
        margin-bottom: 0.375rem;
    }

    .auth-card>p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
    }

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

    .auth-logo span {
        font-size: 1.125rem;
    }

    .auth-card h1 {
        font-size: 1.25rem;
    }

    .auth-card>p {
        font-size: 0.85rem;
    }
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.auth-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.auth-card h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: 0.5rem;
}

.auth-card>p {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-with-icon i {
    font-size: 1rem;
    color: var(--gray-400);
    flex-shrink: 0;
}

.input-with-icon input,
.input-with-icon textarea,
.input-with-icon select {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: var(--transition);
}

.input-with-icon input:focus,
.input-with-icon textarea:focus,
.input-with-icon select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-with-icon.textarea {
    flex-direction: column;
    align-items: flex-start;
}

.input-with-icon.textarea i {
    align-self: flex-start;
}

.toggle-password {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--gray-600);
}

.form-options {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 0.875rem;
    gap: 1rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox input {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    min-height: 1rem;
    margin-top: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox span {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-600);
}

.checkbox-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-600);
}

.checkbox a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.checkbox a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.forgot-password {
    color: var(--primary);
}

.forgot-password:hover {
    text-decoration: underline;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.demo-credentials {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    font-size: 0.75rem;
    color: var(--gray-600);
}

.demo-credentials strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.demo-credentials span {
    font-weight: 500;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Mobile-only Google Auth Hint */
.mobile-google-hint {
    display: none;
    font-size: 0.75rem;
    color: var(--danger);
    text-align: center;
    margin-top: 0.75rem;
    font-weight: 500;
}

/* Show hint only on mobile devices */
@media (max-width: 768px) {
    .mobile-google-hint {
        display: block;
    }
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.auth-divider span {
    padding: 0 1rem;
}

/* Google Button Styling */
.btn-google {
    background: white;
    color: #3c4043;
    border: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #d2d3d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-google:active {
    background: #f1f3f4;
}

.btn-google:disabled {
    background: #f8f9fa;
    color: #9aa0a6;
    border-color: #dadce0;
}

.google-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-google span {
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .btn-google {
        padding: 0.75rem 1rem !important;
        gap: 0.5rem;
    }

    .google-icon {
        width: 18px;
        height: 18px;
    }

    .btn-google span {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .btn-google {
        padding: 0.625rem 0.75rem !important;
        gap: 0.375rem;
    }

    .google-icon {
        width: 16px;
        height: 16px;
    }

    .btn-google span {
        font-size: 0.8rem;
    }
}


/* ============================================
   Dashboard Pages
   ============================================ */

.dashboard-page {
    min-height: 100vh;
    display: flex;
}


/* Sidebar */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar.active {
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .sidebar {
        position: sticky;
        transform: none;
    }
}

.back-to-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.625rem;
    font-weight: 500;
    transition: var(--transition);
    background: transparent;
    border-radius: 0.5rem;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
}

.back-to-home:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.back-to-home i {
    font-size: 1rem;
    color: var(--primary);
}

.back-to-home span {
    white-space: nowrap;
    font-size: 0.625rem;
}

@media (max-width: 767px) {
    .back-to-home {
        padding: 0.375rem;
        font-size: 0.5625rem;
    }

    .back-to-home i {
        font-size: 0.875rem;
    }
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-user>div:first-of-type {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.sidebar-user .user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: 2px solid var(--white);
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-word;
}

.user-role {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: capitalize;
}

.sidebar-user .back-to-home {
    flex-shrink: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 0.25rem;
}

.nav-item:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.nav-item.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.nav-item i {
    width: 1.25rem;
    text-align: center;
}

i .sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.logout-btn {
    width: 100%;
    color: var(--danger);
}

.logout-btn:hover {
    background: #fef2f2;
}

.mobile-sidebar-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: auto;
    z-index: 100;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--white);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--gray-700);
}

@media (min-width: 1024px) {
    .mobile-sidebar-btn {
        display: none;
    }
}


/* Main Content */

.main-content {
    flex: 1;
    padding: 1.5rem;
    margin-left: 0;
}

@media (min-width: 1024px) {
    .main-content {
        margin-left: 0;
        padding: 2rem;
    }
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .page-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

@media (min-width: 640px) {
    .page-header h1 {
        font-size: 1.875rem;
    }
}

.page-header p {
    color: var(--gray-500);
}


/* Dashboard Stats */

.dashboard-stats {
    margin-bottom: 2rem;
}

.dashboard-stats .stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 1.5rem;
    background: var(--white);
    box-shadow: var(--shadow);
}

@media (max-width: 767px) {
    .dashboard-stats {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .dashboard-stats .stat-card {
        padding: 1.25rem;
    }

    .dashboard-stats .stat-label {
        font-size: 0.85rem;
    }

    .dashboard-stats .stat-value {
        font-size: 1.5rem;
    }

    .dashboard-stats .stat-icon {
        font-size: 2rem;
    }
}

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

    .dashboard-stats .stat-value {
        font-size: 1.25rem;
    }

    .dashboard-stats .stat-icon {
        font-size: 1.75rem;
    }
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-label {
    font-size: 1.25rem;
    color: #000000;
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 600;
    line-height: 1.4;
}

.dashboard-stats .stat-label {
    color: #666666;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.stat-trend.up {
    color: var(--success);
}

.stat-trend.down {
    color: var(--danger);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
}

.gradient-blue .stat-icon {
    background: var(--gradient-blue);
}

.gradient-purple .stat-icon {
    background: var(--gradient-purple);
}

.gradient-green .stat-icon {
    background: var(--gradient-green);
}

.gradient-orange .stat-icon {
    background: var(--gradient-orange);
}

.gradient-red .stat-icon {
    background: var(--gradient-red);
}


/* Dashboard Grid */

.dashboard-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.card-header h3 i {
    color: var(--primary);
}

.card-body {
    padding: 1.25rem;
}


/* Enrollment List */

.enrollment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.enrollment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.enrollment-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.enrollment-info p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.enrollment-meta {
    text-align: right;
}

.enrollment-meta p {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 9999px;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-in-progress {
    background: #dbeafe;
    color: #1e40af;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}


/* Popular List */

.popular-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.popular-rank {
    width: 2rem;
    height: 2rem;
    background: var(--gradient-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.875rem;
}

.popular-item img {
    width: 4rem;
    height: 3rem;
    object-fit: cover;
    border-radius: var(--radius);
}

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

.popular-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-info p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.popular-count {
    text-align: right;
}

.popular-count strong {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-900);
}

.popular-count span {
    font-size: 0.75rem;
    color: var(--gray-500);
}


/* Filter Bar */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-box input {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-bar select {
    padding: 0.625rem 2rem 0.625rem 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: var(--white);
    cursor: pointer;
}

.filter-bar select:focus {
    outline: none;
    border-color: var(--primary);
}


/* Table */

.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.data-table th,
.data-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.875rem;
}

.data-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.data-table td {
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table .course-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.data-table .course-cell img {
    width: 4rem;
    height: 3rem;
    object-fit: cover;
    border-radius: var(--radius);
}

.data-table .course-cell h4 {
    font-weight: 600;
    color: var(--gray-900);
}

.data-table .course-cell span {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: capitalize;
}

.data-table .badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.data-table code {
    padding: 0.25rem 0.5rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-family: monospace;
}

/* Mobile Responsive Table */
@media (max-width: 767px) {
    .table-container {
        padding: 0;
        box-shadow: none;
    }

    .data-table {
        display: block;
        border: none;
    }

    .data-table thead {
        display: none;
    }

    .data-table tbody {
        display: block;
    }

    .data-table tr {
        display: block;
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-lg);
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-sm);
    }

    .data-table tr:hover {
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border: none;
        border-bottom: 1px solid var(--gray-100);
    }

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

    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-700);
        min-width: 100px;
    }

    .data-table .course-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .data-table .course-cell img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .data-table .course-cell h4 {
        font-size: 1rem;
        margin: 0;
    }

    .data-table .badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }

    .data-table code {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
        word-break: break-all;
    }

    .data-table .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .data-table tr {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .data-table td {
        padding: 0.6rem 0;
        font-size: 0.85rem;
    }

    .data-table td::before {
        min-width: 80px;
        font-size: 0.85rem;
    }

    .data-table .course-cell h4 {
        font-size: 0.95rem;
    }

    .data-table .badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .data-table code {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

.progress-bar {
    width: 100px;
    height: 0.5rem;
    background: var(--gray-200);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 9999px;
    transition: width 0.3s ease;
}


/* Tabs */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--white);
    padding: 0.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tab-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    background: var(--gray-100);
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 767px) {
    .tabs {
        gap: 0.35rem;
        padding: 0.35rem;
        margin-bottom: 1rem;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .tabs {
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .tab-btn {
        padding: 0.45rem 0.6rem;
        font-size: 0.75rem;
    }
}


/* Form Tabs */

.form-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.form-tabs .tab-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.form-tabs .tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    box-shadow: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* Course Form */

.course-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}

.form-grid .full-width {
    grid-column: span 2;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .full-width {
        grid-column: span 1;
    }
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.thumbnail-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.upload-preview {
    width: 160px;
    height: 112px;
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.upload-preview:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview i {
    font-size: 2rem;
}

.upload-preview span {
    font-size: 0.875rem;
}

.thumbnail-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.thumbnail-delete-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.thumbnail-delete-btn:active {
    transform: scale(0.95);
}

.thumbnail-delete-btn i {
    font-size: 0.875rem;
}

.upload-info {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.upload-info p {
    margin-bottom: 0.25rem;
}


/* Video Form */

.video-form {
    margin-bottom: 1.5rem;
}

.video-form h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-row .form-group.flex-2 {
    flex: 2;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
}

.input-group input.small {
    width: 100px;
    flex: none;
}

.video-list-container {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1rem;
    min-height: 200px;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.video-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.video-number {
    width: 2rem;
    height: 2rem;
    background: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.video-info {
    flex: 1;
}

.video-info h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.video-info p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

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

.video-actions button {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.video-actions button:hover {
    background: var(--gray-200);
    color: var(--primary);
}

.video-actions .preview-video {
    color: var(--primary);
}

.video-actions .preview-video:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-dark);
}

.video-actions button.delete:hover {
    color: var(--danger);
}

.video-actions .edit-video {
    color: var(--warning);
}

.video-actions .edit-video:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}


/* Form Actions */

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}


/* Profile Form */

.profile-form-container,
.password-form-container {
    max-width: 600px;
}

.profile-form,
.password-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.avatar-upload {
    position: relative;
}

.avatar-preview {
    width: 8rem;
    height: 8rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    font-weight: 600;
    overflow: hidden;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.avatar-edit-btn:hover {
    background: var(--primary-dark);
}

.avatar-hint {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}


/* Progress Card */

.progress-card {
    position: relative;
}

.progress-card .course-thumbnail::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.progress-card .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 2;
    transition: width 0.3s ease;
}

.progress-info {
    margin-bottom: 1rem;
}

.progress-info .label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.progress-info .progress-track {
    height: 0.5rem;
    background: var(--gray-200);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-info .progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 9999px;
}

.last-accessed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .progress-info {
        margin-bottom: 0.75rem;
    }

    .progress-info .label {
        font-size: 0.8rem;
        margin-bottom: 0.35rem;
    }

    .progress-info .progress-track {
        height: 0.4rem;
    }

    .last-accessed {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .progress-card .course-content {
        padding: 0.75rem;
    }

    .progress-card .course-content .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .progress-info .label {
        font-size: 0.75rem;
    }

    .last-accessed {
        font-size: 0.7rem;
    }
}


/* Empty State */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

@media (max-width: 767px) {
    .empty-state {
        padding: 2rem 1.5rem;
        min-height: 350px;
    }

    .empty-state i {
        font-size: 3rem;
        margin-bottom: 0.75rem;
    }

    .empty-state h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .empty-state p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .empty-state {
        padding: 1.5rem 1rem;
        min-height: 300px;
    }

    .empty-state i {
        font-size: 2.5rem;
    }

    .empty-state h3 {
        font-size: 1.125rem;
    }

    .empty-state p {
        font-size: 0.875rem;
    }
}


/* Modals */

.modal .modal-actions,
.modal .modal-footer,
.modal .modal-content .center-buttons,
.modal .modal-content .modal-buttons,
.modal .modal-content .modal-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5em;
}

.modal .btn,
.modal button {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    float: none;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
}

.modal-content.modal-sm {
    max-width: 450px;
}

.modal-content.modal-xs {
    max-width: 380px;
    padding: 2rem;
    text-align: center;
}

/* Delete Confirmation Modal Styles */
.modal-content.modal-xs h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    text-align: center;
}

.modal-content.modal-xs p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
}

.modal-content.modal-xs .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.modal-content.modal-xs .form-actions .btn {
    flex: 1;
    max-width: 150px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.modal-header {
    position: relative;
}

.modal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.modal-content .form-group {
    margin-bottom: 1.5rem;
}

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

.modal-content .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: var(--transition);
}

.modal-content .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-header img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.modal-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.modal-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 1;
}

.modal-header h2 {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-tabs .tab-btn {
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.modal-tabs .tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.modal-body .course-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.modal-body .course-stats>div {
    text-align: center;
}

.modal-body .course-stats i {
    color: #f59e0b;
    margin-right: 0.25rem;
}

.learn-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.learn-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.learn-list i {
    color: var(--success);
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.video-list-item .number {
    width: 2rem;
    height: 2rem;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    box-shadow: var(--shadow-sm);
}

.video-list-item .info {
    flex: 1;
}

.video-list-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.video-list-item p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.video-list-item i {
    color: var(--gray-400);
}

.instructor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.instructor-avatar {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.instructor-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.instructor-info p {
    color: var(--gray-500);
}

.modal-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}


/* Payment Modal */

.payment-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.payment-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
}

.payment-summary {
    padding: 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    margin: 1rem;
    border-radius: var(--radius);
}

.payment-summary p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.25rem;
}

.payment-summary h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.payment-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.payment-amount .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

#paymentForm {
    padding: 0 1.5rem 1.5rem;
}

.payment-security {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin: 1rem 0;
}

.payment-security i {
    color: var(--success);
}

.payment-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-400);
    padding: 0 1.5rem 1.5rem;
}


/* Success Modal */

.success-icon {
    width: 5rem;
    height: 5rem;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon i {
    font-size: 2.5rem;
    color: var(--success);
}

.text-center {
    text-align: center;
}

.text-center h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.text-center p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}


/* Video Container */

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-top: 1.5rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
}


/* Video Preview Modal */

#videoPreviewModal .modal-content {
    max-width: 900px;
    padding: 2rem;
}

#videoPreviewModal h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--gray-900);
}


/* Toast */

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: slide-in 0.3s ease;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

.toast.info {
    border-left: 4px solid var(--info);
}

.toast i {
    font-size: 1.25rem;
}

.toast.success i {
    color: var(--success);
}

.toast.error i {
    color: var(--danger);
}

.toast.warning i {
    color: var(--warning);
}

.toast.info i {
    color: var(--info);
}

.toast-message {
    font-size: 0.875rem;
    color: var(--gray-700);
}


/* Scrollbar */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}


/* Utilities */

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ============================================
   Course Player
   ============================================ */

.course-player-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
}

.course-player-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .course-player-header h1 {
        font-size: 1.5rem;
    }
}

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

.course-progress-header .progress-track {
    flex: 1;
    height: 0.5rem;
    background: var(--gray-200);
    border-radius: 9999px;
    overflow: hidden;
}

.course-progress-header .progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.course-progress-header span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    white-space: nowrap;
}


/* Player Layout */

.player-layout {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .player-layout {
        grid-template-columns: 1fr 350px;
    }
}


/* Video Section */

.video-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.player-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    /* Security: Prevent right-click and text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: auto;
    /* Security: Prevent iframe inspection */
    -webkit-touch-callout: none;
}

/* Block the pop-out/picture-in-picture button specifically */
/* The PiP button is typically the 3rd icon from the right in YouTube controls */
.player-container::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 88px;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.01);
    z-index: 999999;
    pointer-events: all;
    cursor: not-allowed;
}

/* Additional overlay for smaller screens where button position might differ */
@media (max-width: 768px) {
    .player-container::after {
        bottom: 8px;
        right: 80px;
        width: 44px;
        height: 44px;
    }
}

/* Block top-right area where "Watch on YouTube" link appears on hover */
.player-container::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 120px;
    height: 50px;
    background: transparent;
    z-index: 999999;
    pointer-events: all;
}

.video-info {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.video-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.video-meta i {
    color: var(--primary);
}

.video-info p {
    color: var(--gray-600);
    line-height: 1.6;
}


/* Video Navigation */

.video-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.video-navigation .btn {
    flex: 1;
}

.video-navigation .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--gray-200) !important;
    color: var(--gray-400) !important;
    border-color: var(--gray-300) !important;
}

#markCompleteBtn.completed {
    background: var(--success);
    cursor: default;
}


/* Playlist Sidebar */

.playlist-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

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

.playlist-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.playlist-header h3 i {
    color: var(--primary);
}

.playlist-header span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.playlist {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: var(--radius);
    cursor: default;
    transition: var(--transition);
    pointer-events: none;
    user-select: none;
}

.playlist-item:hover {
    background: transparent;
}

.playlist-item.active {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.playlist-item.completed {
    opacity: 0.7;
}

.playlist-item.completed.active {
    opacity: 1;
}

.playlist-item.locked {
    opacity: 0.5;
}

.playlist-item.locked:hover {
    background: transparent;
}

.playlist-item.locked .playlist-number {
    background: var(--gray-200);
    color: var(--gray-400);
}

.locked-icon {
    color: var(--gray-400);
    font-size: 1rem;
}

.playlist-number {
    width: 2rem;
    height: 2rem;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    flex-shrink: 0;
}

.playlist-item.active .playlist-number {
    background: var(--primary);
    color: var(--white);
}

.playlist-item.completed .playlist-number {
    background: var(--success);
    color: var(--white);
}

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

.playlist-info h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.playlist-info span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.playlist-info span i {
    font-size: 0.625rem;
}

.completed-icon {
    color: var(--success);
    font-size: 1.125rem;
}


/* Trophy Icon for Completion */

.success-icon i.fa-trophy {
    color: #f59e0b;
}


/* Responsive */

@media (max-width: 1023px) {
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 98;
        display: none;
        cursor: pointer;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

@media (max-width: 639px) {
    .data-table {
        display: block;
        overflow-x: auto;
    }

    .filter-bar {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }

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

    .form-actions .btn {
        width: 100%;
    }

    .video-navigation {
        flex-direction: column;
    }

    .playlist-sidebar {
        max-height: 400px;
    }
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
}


/* Payment Modal */

.payment-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.payment-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.payment-summary {
    padding: 1.5rem;
    background: var(--gray-50);
}

.payment-summary p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.payment-summary h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.payment-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.payment-amount .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.payment-security {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #ecfdf5;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.payment-security i {
    color: var(--success);
}

.payment-security span {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.payment-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 1rem;
}


/* Success Modal */

.success-icon {
    width: 5rem;
    height: 5rem;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon i {
    font-size: 2.5rem;
    color: var(--success);
}

.text-center {
    text-align: center;
}

.text-center h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.text-center p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}


/* Toast */

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slide-in 0.3s ease;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast i {
    font-size: 1.25rem;
}

.toast.success i {
    color: var(--success);
}

.toast.error i {
    color: var(--danger);
}

.toast.warning i {
    color: var(--warning);
}

.toast.info i {
    color: var(--info);
}

.toast-message {
    flex: 1;
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* ============================================
   Skeleton Loading Styles
   ============================================ */

/* Skeleton Card */
.skeleton-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: skeleton-fade-in 0.3s ease-in-out;
}

@keyframes skeleton-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton Shimmer Effect */
.skeleton {
    background: linear-gradient(90deg,
            #f0f0f0 0%,
            #e0e0e0 20%,
            #f0f0f0 40%,
            #f0f0f0 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Skeleton Thumbnail */
.skeleton-thumbnail {
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
}

.skeleton-thumbnail .skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Skeleton Content */
.skeleton-content {
    padding: 1.25rem;
}

.skeleton-category {
    width: 80px;
    height: 14px;
    margin-bottom: 0.75rem;
}

.skeleton-title {
    width: 100%;
    height: 20px;
    margin-bottom: 0.5rem;
}

.skeleton-title-short {
    width: 70%;
    height: 20px;
    margin-bottom: 0.75rem;
}

.skeleton-description {
    width: 100%;
    height: 14px;
    margin-bottom: 0.5rem;
}

.skeleton-description:last-of-type {
    width: 80%;
    margin-bottom: 1rem;
}

.skeleton-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-stat {
    width: 80px;
    height: 14px;
}

.skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.skeleton-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.skeleton-instructor-name {
    width: 80px;
    height: 14px;
}

.skeleton-button {
    width: 100px;
    height: 36px;
    border-radius: var(--radius-md);
}

/* Mobile Skeleton Adjustments */
@media (max-width: 767px) {
    .skeleton-content {
        padding: 0.875rem;
    }

    .skeleton-title {
        height: 16px;
    }

    .skeleton-title-short {
        height: 16px;
    }

    .skeleton-description {
        height: 12px;
    }

    .skeleton-stat {
        width: 60px;
        height: 12px;
    }

    .skeleton-avatar {
        width: 28px;
        height: 28px;
    }

    .skeleton-instructor-name {
        width: 60px;
        height: 12px;
    }

    .skeleton-button {
        width: 80px;
        height: 32px;
    }
}

/* ============================================
   Skeleton Loading - User Dashboard Progress Cards
   ============================================ */

.skeleton-progress-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: skeleton-fade-in 0.3s ease-in-out;
}

.skeleton-progress-thumbnail {
    width: 100%;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
}

.skeleton-progress-thumbnail .skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.skeleton-progress-content {
    padding: 1.25rem;
}

.skeleton-progress-badge {
    width: 100px;
    height: 24px;
    margin-bottom: 0.75rem;
    border-radius: 12px;
}

.skeleton-progress-title {
    width: 100%;
    height: 22px;
    margin-bottom: 0.75rem;
}

.skeleton-progress-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skeleton-progress-meta-item {
    width: 70px;
    height: 14px;
}

.skeleton-progress-bar-container {
    margin-bottom: 0.5rem;
}

.skeleton-progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 4px;
}

.skeleton-progress-text {
    width: 80px;
    height: 14px;
    margin-bottom: 1rem;
}

.skeleton-progress-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.skeleton-progress-date {
    width: 120px;
    height: 14px;
}

.skeleton-progress-button {
    width: 120px;
    height: 40px;
    border-radius: var(--radius-md);
}

/* ============================================
   Skeleton Loading - Video Player
   ============================================ */

.skeleton-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.skeleton-video-content {
    text-align: center;
    color: var(--gray-400);
}

.skeleton-video-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.05) 40%,
            rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skeleton-video-icon i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.skeleton-video-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.skeleton-video-subtext {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Skeleton Playlist Items */
.skeleton-playlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    animation: skeleton-fade-in 0.3s ease-in-out;
}

.skeleton-playlist-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-playlist-info {
    flex: 1;
}

.skeleton-playlist-title {
    width: 100%;
    height: 16px;
    margin-bottom: 0.5rem;
}

.skeleton-playlist-duration {
    width: 80px;
    height: 14px;
}

/* Mobile adjustments for video player skeleton */
@media (max-width: 767px) {
    .skeleton-video-icon {
        width: 60px;
        height: 60px;
    }

    .skeleton-video-icon i {
        font-size: 2rem;
    }

    .skeleton-video-text {
        font-size: 0.875rem;
    }

    .skeleton-video-subtext {
        font-size: 0.75rem;
    }

    .skeleton-playlist-item {
        padding: 0.75rem;
    }

    .skeleton-playlist-number {
        width: 32px;
        height: 32px;
    }

    .skeleton-playlist-title {
        height: 14px;
    }

    .skeleton-playlist-duration {
        height: 12px;
    }
}

/* ============================================
   Skeleton Loading - Video Info Section
   ============================================ */

.skeleton-video-info {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    animation: skeleton-fade-in 0.3s ease-in-out;
}

.skeleton-video-title {
    width: 70%;
    height: 28px;
    margin-bottom: 1rem;
}

.skeleton-video-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.skeleton-video-meta-item {
    width: 100px;
    height: 16px;
}

.skeleton-video-description {
    width: 100%;
    height: 16px;
    margin-bottom: 0.5rem;
}

.skeleton-video-description:last-of-type {
    width: 85%;
}

/* Skeleton Navigation Buttons */
.skeleton-video-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.skeleton-nav-button {
    height: 44px;
    border-radius: var(--radius-md);
}

.skeleton-nav-button.small {
    width: 120px;
}

.skeleton-nav-button.large {
    flex: 1;
    max-width: 200px;
}

/* Mobile adjustments for video info skeleton */
@media (max-width: 767px) {
    .skeleton-video-info {
        padding: 1rem;
    }

    .skeleton-video-title {
        height: 22px;
        width: 80%;
    }

    .skeleton-video-meta {
        gap: 1rem;
    }

    .skeleton-video-meta-item {
        width: 80px;
        height: 14px;
    }

    .skeleton-video-description {
        height: 14px;
    }

    .skeleton-video-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }

    .skeleton-nav-button {
        width: 100%;
        height: 40px;
    }

    .skeleton-nav-button.small,
    .skeleton-nav-button.large {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================
   Skeleton Loading - Dashboard Header & Tabs
   ============================================ */

.skeleton-page-header {
    margin-bottom: 2rem;
}

.skeleton-header-title {
    width: 200px;
    height: 32px;
    margin-bottom: 0.5rem;
}

.skeleton-header-subtitle {
    width: 250px;
    height: 18px;
}

.skeleton-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.skeleton-tab {
    height: 44px;
    border-radius: var(--radius-md);
    flex: 1;
    min-width: 120px;
}

/* Mobile adjustments for dashboard skeleton */
@media (max-width: 767px) {
    .skeleton-header-title {
        width: 150px;
        height: 28px;
    }

    .skeleton-header-subtitle {
        width: 200px;
        height: 16px;
    }

    .skeleton-tabs {
        gap: 0.5rem;
    }

    .skeleton-tab {
        height: 40px;
        min-width: 100px;
    }
}

/* ============================================
   Skeleton Loading - Payment History Page
   ============================================ */

.skeleton-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skeleton-stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    animation: skeleton-fade-in 0.3s ease-in-out;
}

.skeleton-stat-label {
    width: 100px;
    height: 16px;
    margin-bottom: 0.75rem;
}

.skeleton-stat-value {
    width: 80px;
    height: 32px;
}

.skeleton-table {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    animation: skeleton-fade-in 0.3s ease-in-out;
}

.skeleton-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 1rem;
}

.skeleton-table-header-item {
    height: 18px;
}

.skeleton-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.skeleton-table-cell {
    height: 16px;
}

.skeleton-table-cell.large {
    height: 20px;
}

/* ============================================
   Skeleton Loading - Profile & Password Forms
   ============================================ */

.skeleton-form-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    animation: skeleton-fade-in 0.3s ease-in-out;
}

.skeleton-avatar-section {
    text-align: center;
    margin-bottom: 2rem;
}

.skeleton-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.skeleton-form-group {
    margin-bottom: 1.5rem;
}

.skeleton-label {
    width: 120px;
    height: 16px;
    margin-bottom: 0.5rem;
}

.skeleton-input {
    width: 100%;
    height: 48px;
    border-radius: var(--radius-md);
}

.skeleton-hint {
    width: 200px;
    height: 14px;
    margin-top: 0.5rem;
}

.skeleton-button {
    width: 150px;
    height: 48px;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .skeleton-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skeleton-table-header,
    .skeleton-table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .skeleton-table-header {
        display: none;
    }

    .skeleton-form-container {
        padding: 1.5rem;
    }

    .skeleton-avatar {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   Skeleton Loading - Sidebar User Section
   ============================================ */

.skeleton-sidebar-user {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.skeleton-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.skeleton-user-name {
    width: 120px;
    height: 20px;
    margin: 0 auto 0.5rem;
}

.skeleton-user-role {
    width: 80px;
    height: 16px;
    margin: 0 auto 1rem;
}

.skeleton-back-link {
    width: 140px;
    height: 18px;
    margin: 0 auto;
}

/* Mobile adjustments for sidebar skeleton */
@media (max-width: 767px) {
    .skeleton-sidebar-user {
        padding: 1.5rem 1rem;
    }

    .skeleton-user-avatar {
        width: 60px;
        height: 60px;
    }

    .skeleton-user-name {
        width: 100px;
        height: 18px;
    }

    .skeleton-user-role {
        width: 70px;
        height: 14px;
    }

    .skeleton-back-link {
        width: 120px;
        height: 16px;
    }
}


/* ============================================
   Skeleton Loading - Admin Dashboard
   ============================================ */

/* Admin Stats Skeleton */
.skeleton-stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    animation: skeleton-fade-in 0.3s ease-in-out;
}

.skeleton-stat-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-stat-info {
    flex: 1;
}

.skeleton-stat-label {
    width: 100px;
    height: 14px;
    margin-bottom: 0.75rem;
}

.skeleton-stat-value {
    width: 80px;
    height: 32px;
    margin-bottom: 0.5rem;
}

.skeleton-stat-trend {
    width: 120px;
    height: 14px;
}

.skeleton-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
}

/* Admin Table Skeleton */
.skeleton-table-row {
    display: table-row;
    animation: skeleton-fade-in 0.3s ease-in-out;
}

.skeleton-table-cell {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.skeleton-table-course-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.skeleton-table-img {
    width: 60px;
    height: 45px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.skeleton-table-text-group {
    flex: 1;
}

.skeleton-table-title {
    width: 180px;
    height: 16px;
    margin-bottom: 0.5rem;
}

.skeleton-table-subtitle {
    width: 100px;
    height: 12px;
}

.skeleton-table-text {
    width: 100px;
    height: 14px;
}

.skeleton-table-text-short {
    width: 60px;
    height: 14px;
}

.skeleton-table-badge {
    width: 80px;
    height: 24px;
    border-radius: 12px;
}

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

.skeleton-table-action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.skeleton-table-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-table-progress-bar {
    width: 120px;
    height: 8px;
    border-radius: 4px;
}

.skeleton-table-progress-text {
    width: 40px;
    height: 14px;
}

/* Admin Dashboard Cards Skeleton */
.skeleton-dashboard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    animation: skeleton-fade-in 0.3s ease-in-out;
}

.skeleton-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.skeleton-card-header-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
}

.skeleton-card-header-title {
    width: 150px;
    height: 20px;
}

.skeleton-enrollment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.skeleton-enrollment-info {
    flex: 1;
}

.skeleton-enrollment-name {
    width: 140px;
    height: 16px;
    margin-bottom: 0.5rem;
}

.skeleton-enrollment-course {
    width: 180px;
    height: 14px;
}

.skeleton-enrollment-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.skeleton-enrollment-date {
    width: 80px;
    height: 12px;
}

.skeleton-enrollment-badge {
    width: 70px;
    height: 20px;
    border-radius: 10px;
}

.skeleton-popular-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.skeleton-popular-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-popular-img {
    width: 60px;
    height: 45px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.skeleton-popular-info {
    flex: 1;
}

.skeleton-popular-title {
    width: 160px;
    height: 16px;
    margin-bottom: 0.5rem;
}

.skeleton-popular-instructor {
    width: 100px;
    height: 12px;
}

.skeleton-popular-count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.skeleton-popular-number {
    width: 40px;
    height: 20px;
}

.skeleton-popular-label {
    width: 50px;
    height: 12px;
}

/* Mobile Adjustments for Admin Skeleton */
@media (max-width: 767px) {
    .skeleton-stat-card {
        padding: 1rem;
    }

    .skeleton-stat-value {
        height: 28px;
    }

    .skeleton-stat-icon {
        width: 50px;
        height: 50px;
    }

    .skeleton-table-img {
        width: 50px;
        height: 38px;
    }

    .skeleton-table-title {
        width: 140px;
        height: 14px;
    }

    .skeleton-enrollment-item,
    .skeleton-popular-item {
        padding: 0.75rem 0;
    }
}

/* Contact Modal */
.contact-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Hide scrollbar in contact modal */
#contactModal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

#contactModal .modal-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Adjust modal size for contact */
#contactModal .modal-content.modal-sm {
    max-width: 500px;
    padding: 2rem;
}

#contactModal .modal-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s ease-out;
}

.contact-icon i {
    font-size: 2rem;
    color: white;
}

.contact-modal-header h2 {
    font-size: 1.75rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.contact-modal-header p {
    color: #666;
    font-size: 0.95rem;
}

.contact-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9ff;
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease-out backwards;
}

.contact-item:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-item:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-item:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-item:hover {
    background: #eef2ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-item-icon i {
    font-size: 1.25rem;
    color: #6366f1;
}

.contact-item-content {
    flex: 1;
}

.contact-item-content h4 {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item-content a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item-content a:hover {
    color: #6366f1;
}

.contact-item-content p {
    color: #1a1a1a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.contact-social {
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    animation: slideInUp 0.5s ease-out 0.4s backwards;
}

.contact-social h4 {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact-social-links a {
    width: 48px;
    height: 48px;
    background: #f8f9ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.contact-social-links a:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-icon {
        width: 64px;
        height: 64px;
    }

    .contact-icon i {
        font-size: 1.5rem;
    }

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

    .contact-modal-header p {
        font-size: 0.875rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-item-icon {
        width: 40px;
        height: 40px;
    }

    .contact-item-icon i {
        font-size: 1rem;
    }

    .contact-item-content h4 {
        font-size: 0.75rem;
    }

    .contact-item-content a,
    .contact-item-content p {
        font-size: 0.875rem;
    }

    .contact-social-links a {
        width: 44px;
        height: 44px;
        font-size: 1.125rem;
    }
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 400px;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: pulse-soft 2s ease-in-out infinite;
}

.empty-state-icon i {
    font-size: 3rem;
    color: #6366f1;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.empty-state p {
    font-size: 1rem;
    color: #666;
    max-width: 400px;
    line-height: 1.6;
}

@keyframes pulse-soft {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(99, 102, 241, 0);
    }
}

@media (max-width: 768px) {
    .empty-state {
        padding: 3rem 1.5rem;
        min-height: 300px;
    }

    .empty-state-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }

    .empty-state-icon i {
        font-size: 2.5rem;
    }

    .empty-state h3 {
        font-size: 1.25rem;
    }

    .empty-state p {
        font-size: 0.95rem;
    }
}



/* Unenroll Modal Styles */
#unenrollModal {
    display: none;
}

#unenrollModal.active {
    display: flex;
}

#unenrollModal .modal-content {
    max-width: 450px;
    position: relative;
}

#unenrollModal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#unenrollModal .modal-close:hover {
    color: var(--gray-900);
}

#unenrollModal .unenroll-icon {
    text-align: center;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

#unenrollModal .unenroll-icon i {
    font-size: 3rem;
    color: var(--danger);
}

#unenrollModal h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

#unenrollModal>.modal-content>p {
    text-align: center;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    padding: 0 1.5rem;
}

#unenrollModal .unenroll-info {
    background: var(--gray-50);
    border-left: 4px solid var(--danger);
    padding: 1rem;
    border-radius: var(--radius);
    margin: 0 1.5rem 1.5rem 1.5rem;
}

#unenrollModal .unenroll-info p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
}

#unenrollModal .unenroll-info ul {
    margin: 0.75rem 0 0 0;
    padding-left: 0;
    list-style: none;
}

#unenrollModal .unenroll-info ul li {
    margin: 0.5rem 0;
    color: var(--gray-700);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

#unenrollModal .unenroll-info ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--danger);
    font-weight: bold;
}

#unenrollModal .form-group {
    margin: 0 1.5rem 1.5rem 1.5rem;
}

#unenrollModal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.95rem;
}

#unenrollModal .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
    box-sizing: border-box;
}

#unenrollModal .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#unenrollModal .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

#unenrollModal .form-actions .btn {
    flex: 1;
    max-width: 150px;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

#unenrollModal .form-actions .btn-outline {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

#unenrollModal .form-actions .btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

#unenrollModal .form-actions .btn-danger {
    background: var(--gradient-red);
    color: var(--white);
}

#unenrollModal .form-actions .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Unenroll button in table */
.unenroll-btn {
    background: var(--gradient-red);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
    font-weight: 500;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

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

.unenroll-btn:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    #unenrollModal .modal-content {
        max-width: 90%;
    }

    #unenrollModal .form-actions {
        flex-direction: column;
    }

    #unenrollModal .form-actions .btn {
        max-width: 100%;
    }

    #unenrollModal .unenroll-icon i {
        font-size: 2.5rem;
    }

    #unenrollModal h2 {
        font-size: 1.25rem;
    }
}


/* Quiz Styles */
.quiz-form {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.quiz-form h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--gray-900);
}

.quiz-list-container {
    margin-top: 2rem;
}

.quiz-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.quiz-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.quiz-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    font-weight: 600;
    flex-shrink: 0;
}

.quiz-info {
    flex: 1;
}

.quiz-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    color: var(--gray-900);
}

.quiz-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.quiz-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.quiz-actions .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

#quizVideoSelect {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
}

#quizVideoSelect:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#quizFormUrl {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
}

#quizFormUrl:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


/* ============================================
   Quiz Modal Styles
   ============================================ */

.quiz-modal-header {
    text-align: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.quiz-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
    color: var(--white);
}

.quiz-modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.quiz-modal-header p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.quiz-modal-content {
    padding: 1rem 1.5rem;
}

.quiz-modal-content p {
    color: var(--gray-700);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.quiz-info-box {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--success);
    font-size: 1rem;
    flex-shrink: 0;
}

.info-item i.fa-exclamation-circle {
    color: var(--warning);
}

.modal-content.modal-sm {
    padding: 0;
    max-width: 420px;
}

.modal-content.modal-sm .form-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.75rem;
}

.modal-content.modal-sm .form-actions .btn {
    flex: 1;
}

/* ============================================
   View More Courses Section
   ============================================ */

.view-more-courses-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #f8f5ff 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary);
}

/* View More Courses Section (after courses grid) */
#viewMoreContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

/* View More Courses Section (at bottom of page) */
.view-more-courses-section .view-more-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.view-more-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.view-more-content p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    #viewMoreContainer {
        flex-direction: column;
        text-align: center;
    }

    .view-more-courses-section .view-more-container {
        flex-direction: column;
        text-align: center;
    }

    .view-more-content h3 {
        font-size: 1.25rem;
    }

    .btn-lg {
        width: 100%;
    }

    .view-more-courses-section {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .view-more-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .view-more-courses-section {
        margin-top: 1.5rem;
        padding: 1rem;
    }

    .view-more-content h3 {
        font-size: 1.1rem;
    }

    .view-more-content p {
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    #unenrolledCoursesGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }
}

/* Unenrolled Courses Grid Mobile Responsive */
#unenrolledCoursesGrid {
    display: grid;
    gap: 2rem;
}

@media (max-width: 767px) {
    #unenrolledCoursesGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    #unenrolledCoursesGrid .course-card {
        min-width: 0;
        width: 100%;
    }

    #unenrolledCoursesGrid .course-thumbnail {
        aspect-ratio: 4 / 3;
        min-height: 120px;
    }

    #unenrolledCoursesGrid .course-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #unenrolledCoursesGrid .course-content {
        padding: 0.75rem;
        min-width: 0;
    }

    #unenrolledCoursesGrid .course-title {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.25rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    #unenrolledCoursesGrid .course-description {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #unenrolledCoursesGrid .course-stats {
        gap: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        font-size: 0.7rem !important;
    }

    #unenrolledCoursesGrid .course-stats span {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        white-space: nowrap;
    }

    #unenrolledCoursesGrid .course-badges {
        gap: 0.25rem !important;
    }

    #unenrolledCoursesGrid .course-badges .badge {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.4rem !important;
    }

    #unenrolledCoursesGrid .btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
    }
}

@media (max-width: 374px) {
    #unenrolledCoursesGrid {
        gap: 0.5rem;
    }

    #unenrolledCoursesGrid .course-title {
        font-size: 0.8rem !important;
    }

    #unenrolledCoursesGrid .course-description {
        font-size: 0.7rem !important;
    }
}


/* ============================================
   Courses Page Styles
   ============================================ */

.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.courses-page {
    padding: 3rem 0;
}



.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    flex: 0 0 280px;
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-bar i {
    color: var(--gray-400);
    font-size: 1.1rem;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
}

.search-bar input::placeholder {
    color: var(--gray-400);
}

.clear-search {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.clear-search:hover {
    color: var(--gray-600);
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.filter-dropdown-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-dropdown-btn i:last-child {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    min-width: 200px;
    margin-top: 0.5rem;
    display: none;
    flex-direction: column;
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-item {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--gray-700);
    transition: var(--transition);
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.dropdown-item.active {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.results-info {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-500);
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

#loadMoreBtn {
    min-width: 200px;
}

@media (max-width: 767px) {
    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .courses-filter-section {
        gap: 1rem;
    }

    .filter-controls {
        gap: 0.75rem;
    }

    .filter-dropdown-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .search-bar {
        padding: 0.6rem 1rem;
    }

    .dropdown-menu {
        min-width: 150px;
    }

    .dropdown-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 2rem 0;
    }

    .page-hero h1 {
        font-size: 1.5rem;
    }

    .page-hero p {
        font-size: 0.95rem;
    }

    .courses-page {
        padding: 1.5rem 0;
    }

    .courses-filter-section {
        gap: 0.75rem;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-dropdown-btn {
        width: 100%;
        justify-content: space-between;
    }

    .search-bar {
        padding: 0.5rem 0.75rem;
    }

    .search-bar input {
        font-size: 0.95rem;
    }
}

/* ============================================
   Filter Popup Modal Styles
   ============================================ */

.filter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none !important;
    visibility: hidden;
    opacity: 0;
    z-index: 999;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-popup.active {
    display: flex !important;
    visibility: visible;
    opacity: 1;
}

.filter-popup-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 450px;
    width: 90%;
    max-height: auto;
    overflow-y: visible;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.filter-popup-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.filter-popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-popup-close:hover {
    color: var(--gray-600);
    background: var(--gray-100);
    border-radius: var(--radius);
}

.filter-popup-body {
    padding: 1rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
    cursor: pointer;
    transition: var(--transition);
}

.filter-option:hover {
    color: var(--primary);
}

.filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.filter-option span {
    font-size: 0.9rem;
    color: var(--gray-700);
    user-select: none;
}

.filter-option input[type="radio"]:checked+span {
    color: var(--primary);
    font-weight: 500;
}

.filter-popup-footer {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.filter-popup-footer .btn {
    flex: 1;
}

/* Filter Icon Button */
.filter-icon-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-icon-btn:hover {
    color: var(--primary);
}

/* Courses Search Container */
.courses-search-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    flex: 0 0 280px;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-bar i {
    color: var(--gray-400);
    font-size: 1.1rem;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--gray-800);
    background: transparent;
}

.search-bar input::placeholder {
    color: var(--gray-400);
}

/* Mobile Responsive Filter Popup */
@media (max-width: 767px) {
    .filter-popup-content {
        width: 95%;
        max-height: 85vh;
    }

    .filter-popup-header {
        padding: 1.25rem;
    }

    .filter-popup-body {
        padding: 1.25rem;
    }

    .filter-popup-footer {
        padding: 1.25rem;
        flex-direction: column;
    }

    .filter-popup-footer .btn {
        width: 100%;
    }

    .search-bar {
        padding: 0.6rem 1rem;
    }

    .search-bar input {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .filter-popup-content {
        width: 100%;
        max-height: 80vh;
        border-radius: var(--radius-md);
    }

    .filter-popup-header {
        padding: 1rem;
    }

    .filter-popup-body {
        padding: 1rem;
    }

    .filter-popup-footer {
        padding: 1rem;
    }

    .search-bar {
        padding: 0.5rem 0.75rem;
    }

    .search-bar input {
        font-size: 0.85rem;
    }

    .filter-group h4 {
        font-size: 0.85rem;
    }

    .filter-option span {
        font-size: 0.85rem;
    }
}




/* ============================================
   Courses Filter Section Styles
   ============================================ */

.courses-filter-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    flex: 0 1 400px;
    min-width: 250px;
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-bar i {
    color: var(--gray-400);
    font-size: 1.1rem;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--gray-800);
    background: transparent;
}

.search-bar input::placeholder {
    color: var(--gray-400);
}

.filter-dropdown {
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    flex: 0 0 160px;
    white-space: nowrap;
}

.filter-dropdown:hover {
    border-color: var(--primary);
}

.filter-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-dropdown option {
    padding: 0.5rem;
    color: var(--gray-800);
    background: var(--white);
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .courses-filter-section {
        flex-wrap: wrap;
        gap: 0.75rem;
        align-items: center;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }

    .search-bar {
        flex: 1 1 100%;
        min-width: 100%;
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }

    .search-bar i {
        font-size: 1rem;
        margin-right: 0.5rem;
    }

    .search-bar input {
        font-size: 0.9rem;
    }

    .filters-group {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        width: 100%;
    }

    .filter-dropdown {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 120px;
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .courses-filter-section {
        gap: 0.5rem;
        flex-wrap: wrap;
        align-items: center;
        margin-bottom: 1rem;
        padding: 0 0.75rem;
    }

    .search-bar {
        padding: 0.5rem 0.75rem;
        flex: 1 1 100%;
        min-width: 100%;
    }

    .search-bar input {
        font-size: 0.85rem;
    }

    .search-bar i {
        font-size: 0.9rem;
        margin-right: 0.375rem;
    }

    .filters-group {
        display: flex;
        gap: 0.375rem;
        flex-wrap: wrap;
        width: 100%;
    }

    .filter-dropdown {
        flex: 1 1 calc(50% - 0.1875rem);
        min-width: 100px;
        padding: 0.5rem 0.625rem;
        font-size: 0.8rem;
    }

    .filter-dropdown option {
        font-size: 0.8rem;
    }
}


/* ============================================
   Password Validator Styles
   ============================================ */

.password-strength-container {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.strength-bar-wrapper {
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.375rem;
}

.strength-bar {
    height: 100%;
    width: 0%;
    background: var(--danger);
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--gray-600);
    transition: color 0.3s ease;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.requirement-item.missing {
    color: #dc2626;
}

.requirement-item.met {
    color: var(--success);
    font-weight: 600;
}

.requirement-icon {
    font-size: 0.5rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.requirement-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.password-match-error {
    display: none;
    padding: 0.375rem;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    color: #dc2626;
    font-size: 0.7rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1.1;
}

.password-match-error i {
    font-size: 0.6rem;
    flex-shrink: 0;
}

.input-with-icon input.error {
    border-color: var(--danger) !important;
    background-color: #fef2f2;
}

.input-with-icon input.error:focus {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Confirm password field styling */
.confirm-password-group {
    margin-top: 1rem;
}

.confirm-password-group .input-with-icon input {
    border-color: var(--gray-300);
}

.confirm-password-group .input-with-icon input.error {
    border-color: var(--danger);
    background-color: #fef2f2;
}