/* ============================================
   Programming E-Learning System - Light Theme
   Fresh, Modern & Clean Design
   ============================================ */

/* ============ Root Variables - Light Colors ============ */
:root {
    /* Primary Colors */
    --primary-color: #5c6bc0;
    --primary-light: #8e99f3;
    --primary-dark: #26418f;

    /* Secondary Colors */
    --secondary-color: #78909c;
    --secondary-light: #a7c0cd;

    /* Accent Colors */
    --accent-blue: #42a5f5;
    --accent-green: #66bb6a;
    --accent-yellow: #ffca28;
    --accent-orange: #ffa726;
    --accent-pink: #ec407a;
    --accent-purple: #ab47bc;
    --accent-teal: #26a69a;
    --accent-red: #ef5350;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fe;
    --bg-tertiary: #f0f4ff;
    --bg-card: #ffffff;

    /* Text Colors */
    --text-primary: #37474f;
    --text-secondary: #607d8b;
    --text-muted: #90a4ae;
    --text-light: #b0bec5;

    /* Border Colors */
    --border-color: #e8eaf6;
    --border-light: #f0f2f8;

    /* Status Colors */
    --success-color: #66bb6a;
    --success-light: #e8f5e9;
    --info-color: #42a5f5;
    --info-light: #e3f2fd;
    --warning-color: #ffca28;
    --warning-light: #fff8e1;
    --danger-color: #ef5350;
    --danger-light: #ffebee;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, blue 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-info: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-light: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    --gradient-fresh: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-sunny: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --gradient-cool: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    --gradient-mint: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(90, 108, 234, 0.07);
    --shadow: 0 4px 15px rgba(90, 108, 234, 0.1);
    --shadow-lg: 0 10px 40px rgba(90, 108, 234, 0.15);
    --shadow-hover: 0 8px 25px rgba(90, 108, 234, 0.18);
    --shadow-card: 0 2px 20px rgba(90, 108, 234, 0.08);

    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes pageLoadFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* ============ Base Styles ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: pageLoadFadeIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

main {
    flex: 1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

/* ============ Typography ============ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

.display-1 {
    font-size: 4.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.display-4 {
    font-size: 3rem;
    font-weight: 600;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ============ Navbar - Premium Glassmorphism Theme ============ */
.navbar,
.premium-navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    padding: 0.7rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 9999 !important;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 30px rgba(90, 108, 234, 0.1);
    padding: 0.5rem 2rem;
    z-index: 9999 !important;
}

/* Fix Modal Overlay on top of Navbar */
.modal-backdrop {
    z-index: 10000 !important;
}

.modal {
    z-index: 10001 !important;
}


.navbar.scrolled .navbar-brand {
    color: #1565C0;
    /* Solid blue */
}

.navbar.scrolled .nav-link {
    color: var(--text-primary) !important;
}

.navbar.scrolled .nav-link i {
    color: var(--primary-color) !important;
    -webkit-text-fill-color: var(--primary-color) !important;
    background: none !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: #1565C0;
    /* Solid blue */
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.navbar-brand img {
    transition: var(--transition);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

/* Nav Links Premium Styling */
.navbar .navbar-nav .nav-link {
    color: var(--text-primary) !important;
    padding: 0.6rem 1rem !important;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin: 0 0.1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.navbar .navbar-nav .nav-link i {
    font-size: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(92, 107, 192, 0.05);
}

.navbar .navbar-nav .nav-link:hover i {
    transform: translateY(-2px);
}

.navbar .navbar-nav .nav-link:hover::after {
    width: 60%;
}

.navbar .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(92, 107, 192, 0.08);
}

.navbar .navbar-nav .nav-link.active::after {
    width: 60%;
}

/* User Profile Dropdown */
.navbar .nav-item.dropdown .nav-link {
    background: var(--bg-tertiary);
    margin-left: 0.5rem;
    padding: 0.5rem 1.2rem !important;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
}

.navbar .nav-item.dropdown .nav-link:hover {
    background: var(--border-light);
    border-color: var(--primary-light);
}

.navbar .nav-item.dropdown .nav-link i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Dropdown Menu */
.dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    margin-top: 1rem;
    min-width: 220px;
    z-index: 10000 !important;
    animation: dropdownFade 0.3s ease-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.7rem 1rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item i {
    font-size: 1.1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 6px;
    color: var(--primary-color);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item:hover i {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(5deg);
}

.dropdown-divider {
    border-color: var(--border-light);
    margin: 0.5rem 0.2rem;
}

/* Toggler Styling */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-toggler:focus {
    box-shadow: none;
    background: var(--bg-tertiary);
}

.navbar-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* ============ Cards - Clean & Elevated ============ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
}

/* Colorful Card Headers */
.card-header.bg-primary {
    background: var(--gradient-primary) !important;
    color: #fff;
    border: none;
}

.card-header.bg-success {
    background: var(--gradient-success) !important;
    color: #fff;
    border: none;
}

.card-header.bg-info {
    background: var(--gradient-info) !important;
    color: #fff;
    border: none;
}

.card-header.bg-warning {
    background: var(--gradient-sunny) !important;
    color: var(--text-primary);
    border: none;
}

.card-header.bg-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%) !important;
    color: #fff;
    border: none;
}

.card-header.bg-secondary {
    background: var(--gradient-cool) !important;
    color: var(--text-primary);
    border: none;
}

.card-header.bg-dark {
    background: linear-gradient(135deg, #667eea 0%, #5c6bc0 100%) !important;
    color: #fff;
    border: none;
}

.card-body {
    padding: 1.5rem;
    background: var(--bg-card);
}

.card-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
}

.card-img-top {
    border-radius: var(--radius) var(--radius) 0 0;
}

/* ============ Stat Cards - Colorful ============ */
.card.bg-primary {
    background: var(--gradient-primary) !important;
    border: none;
}

.card.bg-success {
    background: var(--gradient-success) !important;
    border: none;
}

.card.bg-info {
    background: var(--gradient-info) !important;
    border: none;
}

.card.bg-warning {
    background: var(--gradient-sunny) !important;
    border: none;
    color: var(--text-primary) !important;
}

.card.bg-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%) !important;
    border: none;
}

.card.bg-dark {
    background: var(--gradient-primary) !important;
    border: none;
}

/* Card Border Accents */
.border-left-primary {
    border-left: 4px solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 4px solid var(--success-color) !important;
}

.border-left-info {
    border-left: 4px solid var(--info-color) !important;
}

.border-left-warning {
    border-left: 4px solid var(--warning-color) !important;
}

.border-left-danger {
    border-left: 4px solid var(--danger-color) !important;
}

/* ============ Buttons - Rounded & Colorful ============ */
.btn {
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.btn-success {
    background: var(--gradient-success);
    color: #fff;
}

.btn-success:hover {
    background: linear-gradient(135deg, #0f8a80 0%, #2de572 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.35);
}

.btn-info {
    background: var(--gradient-info);
    color: #fff;
}

.btn-info:hover {
    background: linear-gradient(135deg, #3d9ee8 0%, #00d4e8 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.35);
}

.btn-warning {
    background: var(--gradient-sunny);
    color: var(--text-primary);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f0c14b 0%, #f5956c 100%);
    color: var(--text-primary);
    box-shadow: 0 8px 25px rgba(246, 211, 101, 0.35);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(239, 83, 80, 0.35);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.btn-light {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-light:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

/* Outline Buttons */
.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-outline-success {
    background: transparent;
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.btn-outline-success:hover {
    background: var(--success-color);
    color: #fff;
}

.btn-outline-info {
    background: transparent;
    color: var(--info-color);
    border: 2px solid var(--info-color);
}

.btn-outline-info:hover {
    background: var(--info-color);
    color: #fff;
}

.btn-outline-warning {
    background: transparent;
    color: var(--warning-color);
    border: 2px solid var(--warning-color);
}

.btn-outline-warning:hover {
    background: var(--warning-color);
    color: var(--text-primary);
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: #fff;
}

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-outline-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

/* Button Sizes */
.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* ============ Forms - Clean & Modern ============ */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.75rem 1.2rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(92, 107, 192, 0.15);
    background: #fff;
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.75rem 1.2rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--transition);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(92, 107, 192, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(92, 107, 192, 0.15);
}

.form-switch .form-check-input {
    width: 2.5rem;
    height: 1.3rem;
    border-radius: var(--radius-full);
}

.input-group-text {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-right: none;
    color: var(--text-secondary);
    border-radius: var(--radius) 0 0 var(--radius);
}

/* ============ Tables - Clean & Striped ============ */
.table {
    margin-bottom: 0;
    color: var(--text-primary);
}

.table thead th {
    border-top: none;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding: 1rem;
    background: var(--bg-tertiary);
}

.table td {
    vertical-align: middle;
    padding: 1rem;
    border-color: var(--border-light);
    color: var(--text-primary);
}

.table-hover tbody tr:hover {
    background-color: var(--bg-tertiary);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bg-secondary);
}

.table-dark {
    background: var(--primary-color) !important;
}

.table-dark th {
    background: transparent !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ============ Badges - Soft Colors ============ */
.badge {
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.badge.bg-primary {
    background: var(--primary-light) !important;
    color: var(--primary-dark);
}

.badge.bg-success {
    background: var(--success-light) !important;
    color: var(--success-color);
}

.badge.bg-info {
    background: var(--info-light) !important;
    color: var(--info-color);
}

.badge.bg-warning {
    background: var(--warning-light) !important;
    color: #e65100;
}

.badge.bg-danger {
    background: var(--danger-light) !important;
    color: var(--danger-color);
}

.badge.bg-secondary {
    background: var(--bg-tertiary) !important;
    color: var(--text-secondary);
}

.badge.bg-dark {
    background: var(--primary-color) !important;
    color: #fff;
}

.badge.bg-light {
    background: #fff !important;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* ============ Progress Bars - Gradient ============ */
.progress {
    height: 0.8rem;
    border-radius: var(--radius-full);
    background-color: var(--bg-tertiary);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.progress-bar {
    background: var(--gradient-primary);
    font-weight: 600;
    font-size: 0.7rem;
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

.progress-bar.bg-success {
    background: var(--gradient-success) !important;
}

.progress-bar.bg-info {
    background: var(--gradient-info) !important;
}

.progress-bar.bg-warning {
    background: var(--gradient-sunny) !important;
}

.progress-bar.bg-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%) !important;
}

.progress-bar-striped {
    background-image: linear-gradient(45deg,
            rgba(255, 255, 255, 0.2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.2) 75%,
            transparent 75%,
            transparent);
    background-size: 1rem 1rem;
}

/* ============ Alerts - Soft Background ============ */
.alert {
    border: none;
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    border-left: 4px solid;
}

.alert-primary {
    background: rgba(92, 107, 192, 0.1);
    color: var(--primary-dark);
    border-left-color: var(--primary-color);
}

.alert-success {
    background: var(--success-light);
    color: #2e7d32;
    border-left-color: var(--success-color);
}

.alert-info {
    background: var(--info-light);
    color: #0277bd;
    border-left-color: var(--info-color);
}

.alert-warning {
    background: var(--warning-light);
    color: #e65100;
    border-left-color: var(--warning-color);
}

.alert-danger {
    background: var(--danger-light);
    color: #c62828;
    border-left-color: var(--danger-color);
}

.alert-dismissible .btn-close {
    padding: 1.25rem;
}

/* ============ Modals - Clean Design ============ */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: 1.2rem 1.5rem;
    background: var(--bg-tertiary);
}

.modal-header.bg-primary,
.modal-header.bg-success,
.modal-header.bg-info,
.modal-header.bg-warning,
.modal-header.bg-danger {
    background: var(--gradient-primary) !important;
    color: #fff;
    border: none;
}

.modal-header.bg-success {
    background: var(--gradient-success) !important;
}

.modal-header.bg-info {
    background: var(--gradient-info) !important;
}

.modal-header.bg-warning {
    background: var(--gradient-sunny) !important;
    color: var(--text-primary);
}

.modal-header.bg-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%) !important;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(100vh - 210px);
    overflow-y: auto;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

/* ============ List Groups - Clean ============ */
.list-group-item {
    border: 1px solid var(--border-light);
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
}

.list-group-item:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
}

.list-group-item:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
}

.list-group-item:hover {
    background: var(--bg-tertiary);
}

.list-group-item.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

.list-group-item-action:hover {
    color: var(--primary-color);
    background: var(--bg-tertiary);
}

.list-group-flush .list-group-item {
    border-radius: 0;
}

/* ============ Tabs - Modern Style ============ */
.nav-tabs {
    border-bottom: 2px solid var(--border-light);
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    margin-bottom: -2px;
    border-radius: 0;
    transition: var(--transition);
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary-color);
    background: var(--bg-tertiary);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.nav-tabs .nav-link i {
    margin-right: 0.5rem;
}

.tab-content {
    padding-top: 1.5rem;
}

/* ============ Pills ============ */
.nav-pills .nav-link {
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-pills .nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.nav-pills .nav-link.active {
    background: var(--gradient-primary);
    color: #fff;
}

/* ============ Breadcrumbs ============ */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--text-light);
}

/* ============ Avatars ============ */
.avatar-sm {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
}

.avatar-lg {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
}

/* ============ Code Blocks - Light Theme ============ */
pre {
    background: #f8f9fe;
    border-radius: var(--radius);
    padding: 1.2rem;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

pre code {
    color: var(--text-primary);
    font-family: 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.9rem;
}

.font-monospace {
    font-family: 'Fira Code', 'JetBrains Mono', 'Consolas', monospace !important;
}

code {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ============ Video Container ============ */
.ratio-16x9 {
    --bs-aspect-ratio: 56.25%;
}

.ratio iframe,
.ratio video {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ============ Footer - Light Gradient ============ */
footer {
    background: var(--gradient-primary);
    margin-top: auto;
    color: #fff;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

footer a:hover {
    color: #fff;
    transform: scale(1.1);
}

footer p {
    color: rgba(255, 255, 255, 0.9);
}

/* ============ Course Cards ============ */
.course-card {
    overflow: hidden;
    border: none;
}

.course-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .card-img-top {
    transform: scale(1.05);
}

.course-card .card-body {
    position: relative;
}

/* ============ Quiz Styles ============ */
.question-card {
    transition: var(--transition);
    border: 2px solid var(--border-light);
}

.question-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.timer-display {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============ Dashboard Stat Cards ============ */
.stat-card {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    transform: scale(1.5);
}

.stat-card i {
    font-size: 3rem;
    opacity: 0.3;
}

/* ============ Lesson Content ============ */
.lesson-content {
    line-height: 1.9;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.lesson-content h1,
.lesson-content h2,
.lesson-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.lesson-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.lesson-content ul,
.lesson-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.lesson-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
    box-shadow: var(--shadow);
}

/* ============ Pagination ============ */
.pagination {
    gap: 0.3rem;
}

.page-link {
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--primary-light);
    color: #fff;
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    color: #fff;
}

.page-item.disabled .page-link {
    background: var(--bg-secondary);
    color: var(--text-light);
}

/* ============ Tooltips ============ */
.tooltip-inner {
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.8rem;
    font-weight: 500;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: var(--primary-color);
}

/* ============ Animations ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

.bounce-in {
    animation: bounceIn 0.5s ease forwards;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, var(--bg-tertiary) 0%, #fff 50%, var(--bg-tertiary) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* ============ Utility Classes ============ */
.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

.bg-gradient-info {
    background: var(--gradient-info) !important;
}

.bg-gradient-light {
    background: var(--gradient-light) !important;
}

.bg-gradient-fresh {
    background: var(--gradient-fresh) !important;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.02);
}

.shadow-soft {
    box-shadow: var(--shadow-card);
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

.border-gradient {
    border: 3px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
        var(--gradient-primary) border-box;
}

/* ============ Loading Spinner ============ */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading Dots */
.loading-dots {
    display: flex;
    gap: 0.5rem;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: loadingDots 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDots {

    0%,
    100% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    50% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============ Empty State ============ */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
}

/* ============ Hero Section ============ */
.hero-section {
    background: var(--gradient-primary);
    color: #fff;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(-15deg);
}

/* ============ Feature Icons ============ */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.feature-icon.primary {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.feature-icon.gradient {
    background: var(--gradient-primary);
    color: #fff;
}

/* ============ Timeline ============ */
.timeline-item {
    position: relative;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 30px;
    bottom: -20px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item .badge {
    position: relative;
    z-index: 1;
}

/* ============ Print Styles ============ */
@media print {

    .navbar,
    footer,
    .btn,
    .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }

    body {
        background: white !important;
        color: #000 !important;
    }

    a {
        color: #000 !important;
    }
}

/* ============ Responsive Styles ============ */
@media (max-width: 1200px) {
    .display-1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .display-1 {
        font-size: 3rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .display-1 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
    }

    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card i {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .display-1 {
        font-size: 2rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .card {
        border-radius: var(--radius-sm);
    }

    .btn {
        font-size: 0.9rem;
    }

    .table-responsive-stack tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        background: #fff;
    }

    .table-responsive-stack td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 1rem;
        border: none;
        border-bottom: 1px solid var(--border-light);
    }

    .table-responsive-stack td:last-child {
        border-bottom: none;
    }

    .table-responsive-stack td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-primary);
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ============ Custom Scrollbar ============ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ============ Selection ============ */
::selection {
    background-color: var(--primary-light);
    color: #fff;
}

/* ============ Focus Styles for Accessibility ============ */
:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* ============ Backdrop Blur for Modern Browsers ============ */
@supports (backdrop-filter: blur(10px)) {

    .navbar,
    .premium-navbar {
        background: rgba(102, 126, 234, 0.95) !important;
        backdrop-filter: blur(10px);
        z-index: 9999 !important;
    }

    .navbar:not(.scrolled) .navbar-brand {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }

    .navbar:not(.scrolled) .nav-link {
        color: #fff !important;
    }

    .navbar:not(.scrolled) .nav-link i {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        background: none !important;
    }

    .navbar:not(.scrolled) .nav-link::after {
        background: #fff !important;
    }

    /* Specific fix for dropdown pills on blue navbar */
    .navbar:not(.scrolled) .nav-item.dropdown .nav-link {
        color: var(--primary-color) !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border: none !important;
    }

    .navbar:not(.scrolled) .nav-item.dropdown .nav-link i {
        color: var(--primary-color) !important;
        -webkit-text-fill-color: var(--primary-color) !important;
    }

    .modal-content {
        backdrop-filter: blur(10px);
    }
}

/* ============ Smooth Color Transitions ============ */
*,
*::before,
*::after {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ============ Card Gradient Borders ============ */
.card-gradient-border {
    position: relative;
    background: #fff;
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: calc(var(--radius) + 2px);
    z-index: -1;
}

/* ============ Floating Labels ============ */
.form-floating>.form-control,
.form-floating>.form-select {
    border-radius: var(--radius);
}

.form-floating>label {
    color: var(--text-muted);
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--primary-color);
}

/* ============ Icon Containers ============ */
.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.icon-circle-sm {
    width: 35px;
    height: 35px;
    font-size: 1rem;
}

.icon-circle-lg {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
}

.icon-circle.primary {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.icon-circle.success {
    background: var(--success-light);
    color: var(--success-color);
}

.icon-circle.info {
    background: var(--info-light);
    color: var(--info-color);
}

.icon-circle.warning {
    background: var(--warning-light);
    color: var(--warning-color);
}

.icon-circle.danger {
    background: var(--danger-light);
    color: var(--danger-color);
}

/* ============ Footer - Premium Theme ============ */
.premium-footer {
    background: var(--gradient-primary);
    color: #fff;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
}

.premium-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.premium-footer .footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.premium-footer .footer-logo img {
    filter: brightness(0) invert(1);
    height: 40px;
}

.premium-footer p {
    color: rgba(255, 255, 255, 0.8);
}

.premium-footer .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.premium-footer .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-footer .social-link:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    color: #fff;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-navbar,
.premium-footer {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============ Instructor Portal Redesign ============ */
.instructor-hero {
    background: var(--gradient-primary);
    color: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.instructor-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.instructor-hero h2 {
    color: #fff;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.instructor-hero p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Stat Cards Premium styling */
.stat-card-premium {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    height: 100%;
}

.stat-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.stat-card-premium.primary::before {
    background: var(--gradient-primary);
}

.stat-card-premium.success::before {
    background: var(--gradient-success);
}

.stat-card-premium.warning::before {
    background: var(--gradient-sunny);
}

.stat-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: var(--transition);
}

.stat-card-premium.primary .stat-card-icon-wrapper {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.stat-card-premium.success .stat-card-icon-wrapper {
    background: var(--success-light);
    color: var(--success-color);
}

.stat-card-premium.warning .stat-card-icon-wrapper {
    background: var(--warning-light);
    color: var(--warning-color);
}

.stat-card-premium:hover .stat-card-icon-wrapper {
    transform: rotate(-10deg) scale(1.1);
}

.stat-card-premium .card-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

/* Announcements Overhaul */
.announcement-card-premium {
    border-left: 5px solid var(--warning-color) !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
}

.announcement-card-premium .announcement-header {
    background: var(--warning-light) !important;
    border-bottom: 1px solid var(--border-light);
    padding: 1.2rem 1.5rem;
}

.announcement-card-premium .announcement-header h5 {
    color: var(--text-primary);
    font-weight: 700;
}

.announcement-item {
    transition: var(--transition-fast);
}

.announcement-item:hover {
    background: var(--bg-secondary);
}

/* Quick Actions Grid */
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

.quick-action-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    height: 100%;
}

.quick-action-tile i {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.quick-action-tile span {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.quick-action-tile.primary i {
    color: var(--primary-color);
}

.quick-action-tile.warning i {
    color: #f5956c;
}

.quick-action-tile.success i {
    color: var(--accent-green);
}

.quick-action-tile.danger i {
    color: var(--danger-color);
}

.quick-action-tile.info i {
    color: var(--info-color);
}

.quick-action-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(92, 107, 192, 0.3);
    color: var(--primary-color);
}

.quick-action-tile.primary:hover {
    background: rgba(92, 107, 192, 0.03);
}

.quick-action-tile.warning:hover {
    background: rgba(255, 202, 40, 0.03);
}

.quick-action-tile.success:hover {
    background: rgba(102, 187, 106, 0.03);
}

.quick-action-tile.danger:hover {
    background: rgba(239, 83, 80, 0.03);
}

.quick-action-tile.info:hover {
    background: rgba(66, 165, 245, 0.03);
}

.quick-action-tile:hover i {
    transform: scale(1.15) translateY(-2px);
}

/* Premium Recent Course Item */
.recent-course-item {
    padding: 1.25rem 1.5rem;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    display: block;
    color: var(--text-primary);
}

.recent-course-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.recent-course-item:last-child {
    border-bottom: none;
}

/* Premium Course Card */
.course-card-premium {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.course-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.course-card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 190px;
}

.course-card-image-wrapper img,
.course-card-image-wrapper .course-card-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.course-card-premium:hover .course-card-image-wrapper img,
.course-card-premium:hover .course-card-image-wrapper .course-card-placeholder {
    transform: scale(1.08);
}

.course-card-badge-container {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 2;
}

.course-card-badge-status {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.course-card-badge-status.published {
    background: var(--gradient-success);
    color: #fff;
}

.course-card-badge-status.draft {
    background: var(--gradient-light);
    color: var(--text-primary);
}

.course-card-badge-status.archived {
    background: linear-gradient(135deg, #78909c 0%, #455a64 100%);
    color: #fff;
}

.course-card-stats-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 0.75rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.course-card-stats-item {
    text-align: center;
    flex: 1;
}

.course-card-stats-item strong {
    font-size: 1.1rem;
    color: var(--text-primary);
    display: block;
}

.course-card-stats-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.course-card-stats-divider {
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
}

.empty-state-premium {
    padding: 4.5rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}

.empty-state-icon {
    font-size: 4.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: bounceSlow 3s infinite ease-in-out;
}

@keyframes bounceSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}