/* =========================================================================
   iView Learning - Glassmorphism & Gradient Effects
   Version: 2.0
   Last Updated: February 2026
   
   Modern glass effects and brand gradient treatments
   ========================================================================= */

/* -------------------------------------------------------------------------
   GRADIENT TEXT EFFECTS
   ------------------------------------------------------------------------- */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-subtle {
    background: linear-gradient(135deg, #5057BE 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero heading styles like homepage */
h1.hero-title .gradient-text,
h2.hero-title .gradient-text {
    display: inline-block;
}

/* -------------------------------------------------------------------------
   GLASS CARDS - ENHANCED
   ------------------------------------------------------------------------- */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-slow);
}

.card-glass:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(80, 87, 190, 0.3);
    box-shadow: 0 12px 48px rgba(80, 87, 190, 0.25);
    transform: translateY(-6px);
}

.card-glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* -------------------------------------------------------------------------
   SIDEBAR WITH GLASS EFFECT
   ------------------------------------------------------------------------- */
.iq-sidebar-menu.glass-effect {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-right: 1px solid var(--glass-border) !important;
    box-shadow: 4px 0 24px rgba(91, 79, 217, 0.08) !important;
}

.iq-sidebar-menu.glass-effect .iq-menu li a {
    background: transparent !important;
    transition: all var(--transition-base) !important;
}

.iq-sidebar-menu.glass-effect .iq-menu li a:hover {
    background: rgba(91, 79, 217, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.iq-sidebar-menu.glass-effect .iq-menu li a.active,
.iq-sidebar-menu.glass-effect .iq-menu li a.iq-active {
    background: rgba(91, 79, 217, 0.12) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-left: 3px solid var(--brand-primary);
}

/* -------------------------------------------------------------------------
   TOP NAVBAR GLASS
   ------------------------------------------------------------------------- */
.iq-top-navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: 0 4px 24px rgba(91, 79, 217, 0.08) !important;
}

/* -------------------------------------------------------------------------
   ACCESSIBILITY PANEL GLASS
   ------------------------------------------------------------------------- */
#accessibility-panel.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-left: 1px solid var(--glass-border);
    box-shadow: -8px 0 32px rgba(91, 79, 217, 0.15);
}

#accessibility-panel.glass .accessibility-option button {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#accessibility-panel.glass .accessibility-option button:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(91, 79, 217, 0.3);
}

#accessibility-panel.glass .accessibility-option button.active {
    background: rgba(91, 79, 217, 0.15);
    border-color: var(--brand-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* -------------------------------------------------------------------------
   COURSE CARDS WITH GLASS
   ------------------------------------------------------------------------- */
.course-card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
}

.course-card.glass:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(91, 79, 217, 0.3);
    box-shadow: 0 16px 48px rgba(91, 79, 217, 0.2);
}

.course-card.glass .course-thumbnail {
    background: var(--gradient-brand);
    position: relative;
    overflow: hidden;
}

.course-card.glass .course-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* -------------------------------------------------------------------------
   STAT CARDS WITH GLASS
   ------------------------------------------------------------------------- */
.stat-card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
}

.stat-card.glass:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(91, 79, 217, 0.3);
    box-shadow: 0 12px 40px rgba(91, 79, 217, 0.2);
}

.stat-card.glass::before {
    background: var(--gradient-brand);
    opacity: 0.8;
}

/* -------------------------------------------------------------------------
   MODAL/DIALOG GLASS
   ------------------------------------------------------------------------- */
.modal-content.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 48px rgba(91, 79, 217, 0.2);
}

.modal-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(15, 23, 42, 0.5);
}

/* -------------------------------------------------------------------------
   BUTTON GLASS VARIANTS
   ------------------------------------------------------------------------- */
.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(91, 79, 217, 0.15);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(91, 79, 217, 0.4);
    box-shadow: 0 6px 20px rgba(91, 79, 217, 0.25);
    transform: translateY(-2px);
}

.btn-glass-primary {
    background: rgba(91, 79, 217, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(91, 79, 217, 0.3);
    color: var(--brand-primary);
}

.btn-glass-primary:hover {
    background: rgba(91, 79, 217, 0.3);
    border-color: var(--brand-primary);
}

/* -------------------------------------------------------------------------
   FORM INPUTS WITH GLASS
   ------------------------------------------------------------------------- */
.form-control.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.form-control.glass:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(91, 79, 217, 0.1);
}

.form-control.glass:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(91, 79, 217, 0.3);
}

/* -------------------------------------------------------------------------
   PROGRESS BAR WITH GRADIENT
   ------------------------------------------------------------------------- */
.progress-bar-fill.gradient {
    background: var(--gradient-brand);
    box-shadow: 0 2px 8px rgba(91, 79, 217, 0.3);
}

/* -------------------------------------------------------------------------
   BADGES WITH GLASS
   ------------------------------------------------------------------------- */
.badge.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
}

.badge-primary.glass {
    background: rgba(91, 79, 217, 0.2);
    border-color: rgba(91, 79, 217, 0.3);
    color: var(--brand-primary);
}

.badge-secondary.glass {
    background: rgba(236, 38, 100, 0.2);
    border-color: rgba(236, 38, 100, 0.3);
    color: var(--brand-secondary);
}

/* -------------------------------------------------------------------------
   DROPDOWN MENU GLASS
   ------------------------------------------------------------------------- */
.dropdown-menu.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 32px rgba(91, 79, 217, 0.15);
}

.dropdown-menu.glass .dropdown-item:hover {
    background: rgba(91, 79, 217, 0.1);
}

/* -------------------------------------------------------------------------
   TOOLTIP GLASS
   ------------------------------------------------------------------------- */
.tooltip.glass .tooltip-inner {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------------------------------
   UTILITIES
   ------------------------------------------------------------------------- */
.glass-bg {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-border {
    border: 1px solid var(--glass-border);
}

.gradient-bg {
    background: var(--gradient-brand);
}

.gradient-bg-subtle {
    background: var(--gradient-subtle);
}

/* Apply glass effect globally - Optional utility class */
body.glass-mode .card:not(.no-glass),
body.glass-mode .modal-content:not(.no-glass),
body.glass-mode .form-control:not(.no-glass) {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--glass-border);
}

/* -------------------------------------------------------------------------
   ANIMATION FOR GLASS ELEMENTS
   ------------------------------------------------------------------------- */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Shimmer effect for glass elements */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
}

/* -------------------------------------------------------------------------
   CARD VARIANTS
   ------------------------------------------------------------------------- */
.card-glass-accent-top {
    position: relative;
    overflow: hidden;
}



/* -------------------------------------------------------------------------
   CLEAN TOP TOOLBAR
   ------------------------------------------------------------------------- */
.navbar-list {
    display: flex;
    align-items: center;
    gap: 12px; /* Consistent spacing */
}

.nav-item.nav-icon {
    padding: 0 !important; /* Remove legacy padding */
}

.nav-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white !important;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2); /* Subtle glass border */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    cursor: pointer;
}

.nav-icon-btn i {
    color: white !important;
    font-size: 16px;
}

.nav-icon-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* Variant Colors using CSS Variables */
.nav-icon-btn.btn-guide { background-color: var(--success); }
.nav-icon-btn.btn-access { background-color: var(--warning); }
.nav-icon-btn.btn-chat { background-color: var(--brand-secondary); }
.nav-icon-btn.btn-ai { background-color: var(--brand-primary); }
.nav-icon-btn.btn-ai.disabled { background-color: var(--neutral-400); cursor: not-allowed; }

/* Profile Button */
.nav-icon-btn.btn-profile {
    background: var(--gradient-brand); /* Use gradient for profile to make it stand out */
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    color: white !important;
}
.nav-icon-btn.btn-profile:hover {
    color: white !important;
}

/* Vertical Divider */
.toolbar-divider {
    width: 1px;
    height: 24px;
    background-color: var(--neutral-300);
    margin: 0 4px;
}

/* Admin/Mirror Text */
.admin-mode-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
    background: rgba(80, 87, 190, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 12px;
}

/* -------------------------------------------------------------------------
   LMS LAYOUT STYLES
   ------------------------------------------------------------------------- */
.lms-layout-sidebar {
    position: sticky;
    top: 20px;
}

.module-list-item {
    border: none;
    background: transparent;
    color: #4a5568;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
}

.module-list-item:hover {
    background: rgba(80, 87, 190, 0.05);
    color: #5057BE;
    text-decoration: none;
}

.module-list-item.active {
    background: rgba(80, 87, 190, 0.1);
    color: #5057BE;
    font-weight: 600;
}

.module-list-item i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
}

.module-count {
    background: rgba(80, 87, 190, 0.1);
    color: #5057BE;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

.lesson-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
}

.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(80, 87, 190, 0.3);
}

.lesson-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #e2e8f0;
}

.lesson-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.lesson-content {
    padding: 16px;
}

.lesson-title {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.lesson-meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #718096;
    margin-top: 8px;
}

.lesson-status-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress-line {
    height: 4px;
    width: 100%;
    background: #edf2f7;
    position: absolute;
    bottom: 0;
    left: 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.type-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .lms-layout-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }
}

/* -------------------------------------------------------------------------
   BOOTSTRAP SELECT / DROPDOWN FIXES
   ------------------------------------------------------------------------- */
/* Ensure the dropdown menu has a solid (glass) background so text is visible */
.bootstrap-select .dropdown-menu,
.dropdown-menu.show {
    background: rgba(255, 255, 255, 0.95); /* High opacity for readability */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    padding: 8px 0;
}

/* Ensure the main button looks good */
.bootstrap-select .dropdown-toggle {
    background: var(--glass-bg);
    border: 1px solid #e0e0e0;
    border-radius: 8px; /* Matching the inline style in courses.php */
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem;
}

.bootstrap-select .dropdown-toggle:hover,
.bootstrap-select .dropdown-toggle:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--brand-primary) !important;
    outline: none !important;
}

/* Fix text color in the dropdown items */
.bootstrap-select .dropdown-menu li a,
.dropdown-menu.show li a {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 8px 16px;
    font-size: 0.95rem;
}

/* Hover state for items */
.bootstrap-select .dropdown-menu li a:hover,
.bootstrap-select .dropdown-menu li a:focus,
.bootstrap-select .dropdown-menu li.selected a,
.dropdown-menu.show li a:hover,
.dropdown-menu.show li a:focus {
    background: rgba(80, 87, 190, 0.1);
    color: var(--brand-primary) !important;
    text-decoration: none;
}

/* Search input inside bootstrap-select */
.bootstrap-select .bs-searchbox .form-control {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

.bootstrap-select .bs-searchbox .form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(80, 87, 190, 0.1);
}

/* Fix checkmark visibility if it exists */
.bootstrap-select .dropdown-menu li.selected a span.check-mark,
.dropdown-menu.show li.selected a span.check-mark {
    color: var(--brand-primary) !important;
}

/* Ensure filter option text is visible */
.bootstrap-select .filter-option {
    color: var(--text-primary);
}
.bootstrap-select .filter-option-inner-inner {
    color: var(--text-primary);
}

/* -------------------------------------------------------------------------
   SOFT BUTTONS (Custom Additions)
   ------------------------------------------------------------------------- */
.btn-play-soft {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-soft, rgba(124, 58, 237, 0.15)) !important;
    border-radius: 6px !important;
    transition: all 0.3s ease;
}

.btn-play-soft i {
    font-size: 14px;
    color: var(--primary-color, #7C3AED);
    margin-left: 0px; /* Optical centering */
}

.btn-play-soft:hover {
    background-color: var(--primary-color, #7C3AED) !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-play-soft:hover i {
    color: #ffffff;
}

/* SIDEBAR FOOTER SOFT BUTTONS */
.btn-soft-action { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; transition: all 0.3s ease; cursor: pointer; font-size: 16px; }
.btn-soft-success { background: rgba(16, 185, 129, 0.15) !important; color: #10B981 !important; }
.btn-soft-success:hover { background: #10B981 !important; color: white !important; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.btn-soft-warning { background: rgba(245, 158, 11, 0.15) !important; color: #F59E0B !important; }
.btn-soft-warning:hover { background: #F59E0B !important; color: white !important; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
.btn-soft-danger { background: rgba(239, 68, 68, 0.15) !important; color: #EF4444 !important; }
.btn-soft-danger:hover { background: #EF4444 !important; color: white !important; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }
.btn-soft-primary { background: var(--primary-soft, rgba(124, 58, 237, 0.15)) !important; color: var(--primary-color, #7C3AED) !important; }
.btn-soft-primary:hover { background: var(--primary-color, #7C3AED) !important; color: white !important; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0, 0.2); }

.btn-soft-info { background: rgba(59, 130, 246, 0.15) !important; color: #3B82F6 !important; }
.btn-soft-info:hover { background: #3B82F6 !important; color: white !important; transform: translateY(-3px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

/* SOFT BADGES - GLASSMORPHISM */
.badge-soft-success { background: rgba(16, 185, 129, 0.15) !important; color: #10B981 !important; }
.badge-soft-warning { background: rgba(245, 158, 11, 0.15) !important; color: #F59E0B !important; }
.badge-soft-danger { background: rgba(239, 68, 68, 0.15) !important; color: #EF4444 !important; }
.badge-soft-primary { background: rgba(124, 58, 237, 0.15) !important; color: #7C3AED !important; }
.badge-soft-info { background: rgba(59, 130, 246, 0.15) !important; color: #3B82F6 !important; }
.badge-soft-secondary { background: rgba(107, 114, 128, 0.15) !important; color: #4B5563 !important; }
.badge-soft-light { background: rgba(255, 255, 255, 0.2) !important; color: #ffffff !important; }

/* SOFT ALERTS - GLASSMORPHISM */
.alert-soft-success { background: rgba(16, 185, 129, 0.15); color: #065F46; border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 8px; padding: 1rem; }
.alert-soft-warning { background: rgba(245, 158, 11, 0.15); color: #92400E; border: 1px solid rgba(245, 158, 11, 0.2); border-radius: 8px; padding: 1rem; }
.alert-soft-danger { background: rgba(239, 68, 68, 0.15); color: #B91C1C; border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 8px; padding: 1rem; }
.alert-soft-info { background: rgba(6, 182, 212, 0.15); color: #0891B2; border: 1px solid rgba(6, 182, 212, 0.2); border-radius: 8px; padding: 1rem; }
.alert-soft-primary { background: rgba(124, 58, 237, 0.15); color: #5B21B6; border: 1px solid rgba(124, 58, 237, 0.2); border-radius: 8px; padding: 1rem; }


/* -------------------------------------------------------------------------
   HEADER CARDS - GRADIENT TOP BORDER
   ------------------------------------------------------------------------- */
.card-header,
.header-card {
    position: relative;
    overflow: hidden;
    border-top: none !important;
}

.card-header::before,
.header-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-brand);
    z-index: 5;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

/* LMS Layout Enhancements - Added Feb 2026 */
.module-list-item {
    background: transparent;
    border: none;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    color: #4b5563;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}
.module-list-item:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #5a6fd6;
    transform: translateX(4px);
}
.module-list-item.active {
    background: linear-gradient(135deg, rgba(90, 111, 214, 0.1) 0%, rgba(124, 58, 237, 0.05) 100%);
    color: #5a6fd6;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(90, 111, 214, 0.15);
    border: 1px solid rgba(90, 111, 214, 0.2);
}
.module-count {
    background: rgba(255, 255, 255, 0.6);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #6c757d;
}

/* Glass Search */
.glass-search-container {
    position: relative;
    z-index: 10;
}
.glass-search-input {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05) !important;
    color: #333;
    transition: all 0.3s ease;
    height: 60px;
    border-radius: 16px;
    font-size: 1.1rem;
    padding-left: 60px !important;
}
.glass-search-input:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 12px 40px rgba(90, 111, 214, 0.15) !important;
    border-color: rgba(90, 111, 214, 0.4) !important;
}
.glass-search-icon {
    position: absolute;
    top: 50%;
    left: 25px;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #a0aec0;
    transition: color 0.3s ease;
    z-index: 5;
}
.glass-search-input:focus + .glass-search-icon,
.glass-search-input:focus ~ .glass-search-icon {
    color: #5a6fd6;
}

/* Pulse Play Button */
.btn-play-pulse {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5a6fd6 0%, #7c3aed 100%);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(90, 111, 214, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    text-decoration: none !important;
    padding-left: 4px; /* Optical center adjustment for play icon */
}
.btn-play-pulse:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(90, 111, 214, 0.6);
    color: white !important;
}
.btn-play-pulse:active {
    transform: scale(0.95);
}

/* Lesson Card Enhancements */
.lesson-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.4);
}
.lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(90, 111, 214, 0.3);
}

/* Utility Classes */
.transition-all {
    transition: all 0.3s ease;
}

.hover-up { 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-up:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.badge-light-primary {
    background-color: var(--primary-soft, rgba(124, 58, 237, 0.06));
    color: var(--primary-color, #7C3AED);
    border: 0;
}

/* Soft Navigation Styles */
.bg-soft-primary {
    background-color: var(--primary-soft, rgba(124, 58, 237, 0.1)) !important;
    color: var(--primary-color, #7C3AED) !important;
}

.text-primary {
    color: var(--primary-color, #7C3AED) !important;
}

.nav-soft-primary .sw-nav-btn {
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    background: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
}

.nav-soft-primary .sw-nav-btn:focus,
.nav-soft-primary .sw-nav-btn:active {
    outline: none !important;
    box-shadow: none !important;
    background: none;
    color: #64748b;
}

.nav-soft-primary .sw-nav-btn:hover {
    color: var(--primary-color, #7C3AED);
    background-color: var(--primary-soft, rgba(124, 58, 237, 0.05));
}

.nav-soft-primary .sw-nav-btn.active {
    background-color: var(--primary-soft, #DDD6FE) !important;
    color: var(--primary-color, #5B21B6) !important;
    box-shadow: none !important;
}

.nav-soft-primary .sw-nav-btn i {
    width: 24px;
    text-align: center;
    margin-right: 12px;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.nav-soft-primary .sw-nav-btn.active i {
    color: var(--primary-color, #5B21B6) !important;
}

.bg-soft-info {
    background-color: rgba(6, 182, 212, 0.1) !important;
    color: #0891B2 !important;
}

.text-info {
    color: #0891B2 !important;
}

.bg-soft-danger {
    background-color: rgba(220, 38, 38, 0.1) !important;
    color: #DC2626 !important;
}

.bg-soft-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: #D97706 !important;
}

.bg-soft-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
}

/* Generic Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-mode .glass-effect {
    background: rgba(30, 30, 30, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Professional Dropdown Styles */
.profile-dropdown-glass {
    min-width: 280px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0,0,0,0.02) !important;
    padding: 8px;
    overflow: hidden;
}

body.dark-mode .profile-dropdown-glass {
    background: rgba(30, 32, 40, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Menu Item Container */
.profile-menu-item {
    margin-bottom: 2px;
}

/* Professional Link Styles */
.profile-menu-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #4A5568; /* Slate 700 */
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease-out;
    text-decoration: none !important;
    position: relative;
    border: 1px solid transparent;
}

body.dark-mode .profile-menu-link {
    color: #CBD5E1;
}

/* Hover State */
.profile-menu-link:hover {
    background: #F8FAFC;
    color: #5057BE; /* Brand Primary */
    border-color: rgba(80, 87, 190, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

body.dark-mode .profile-menu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #818CF8;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Icon Styles */
.profile-menu-link i {
    color: #94A3B8; /* Slate 400 */
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.profile-menu-link:hover i {
    color: #5057BE; /* Brand Primary */
    transform: scale(1.1);
}

body.dark-mode .profile-menu-link:hover i {
    color: #818CF8;
}

/* Sign Out Specifics */
.profile-menu-link.sign-out {
    margin-top: 4px;
    border-top: 1px solid transparent;
}

.profile-menu-link.sign-out:hover {
    background: #FEF2F2; /* Red 50 */
    color: #DC2626; /* Red 600 */
    border-color: rgba(220, 38, 38, 0.1);
}

.profile-menu-link.sign-out i {
    color: #CBD5E1;
}

.profile-menu-link.sign-out:hover i {
    color: #DC2626;
}

body.dark-mode .profile-menu-link.sign-out:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #F87171;
}

body.dark-mode .profile-menu-link.sign-out:hover i {
    color: #F87171;
}
