/* Modern Dark Teal Theme - IREN Web Application */

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

/* Custom Properties */
:root {
    --primary-50: #f0fdfa;
    --primary-100: #ccfbf1;
    --primary-200: #99f6e4;
    --primary-300: #5eead4;
    --primary-400: #2dd4bf;
    --primary-500: #14b8a6;
    --primary-600: #0d9488;
    --primary-700: #0f766e;
    --primary-800: #115e59;
    --primary-900: #134e4a;
    
    /* Additional color variables */
    --light-teal-primary: #14b8a6;
    --light-teal-secondary: #0d9488;
    --light-teal-accent: #5eead4;
    --dark-teal-primary: #0f766e;
    --dark-teal-secondary: #115e59;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-primary: #334155;
    --border-secondary: #475569;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --teal-primary: #14b8a6;
    --teal-dark: #0f766e;
    --blue-primary: #3b82f6;
    --blue-dark: #1d4ed8;
    --green-primary: #10b981;
    --green-dark: #059669;
    --red-primary: #ef4444;
    --red-dark: #dc2626;
    --shadow-soft: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 20px rgba(20, 184, 166, 0.3);
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition-smooth: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #5eead4 100%);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Feature Icon Background */
.feature-icon {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

/* Modal Animations */
.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

.modal-exit {
    animation: modalExit 0.3s ease-in;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalExit {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #14b8a6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

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

/* Form Focus States */
.form-input:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Navigation Hover Effects */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #14b8a6;
    transition: width 0.3s ease;
}

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

/* Team Card Hover */
.team-card:hover .team-avatar {
    transform: scale(1.1);
}

.team-avatar {
    transition: transform 0.3s ease;
}

/* Contact Form Styles */
.contact-form input,
.contact-form textarea {
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    transform: translateY(-1px);
}

/* Footer Links */
.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #14b8a6;
}

/* Social Media Icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(20, 184, 166, 0.3);
}

/* Fade In Animation */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

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

/* Modal Backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Enhanced Card Shadows */
.enhanced-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.enhanced-shadow:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Text Selection */
::selection {
    background-color: #14b8a6;
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Focus Visible */
.focus-visible:focus {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* CSS Variables - Dark Teal Theme */
:root {
    /* Core Dark Teal Colors */
    --dark-teal-primary: hsl(180, 100%, 12%);
    --dark-teal-secondary: hsl(180, 100%, 15%);
    --dark-teal-accent: hsl(180, 100%, 18%);
    
    /* Light Teal Accents */
    --light-teal-primary: hsl(180, 85%, 35%);
    --light-teal-secondary: hsl(180, 85%, 45%);
    --light-teal-accent: hsl(180, 71%, 48%);
    
    /* Teal Gradients */
    --teal-gradient-primary: linear-gradient(135deg, var(--dark-teal-primary), var(--dark-teal-secondary));
    --teal-gradient-accent: linear-gradient(135deg, var(--light-teal-primary), var(--light-teal-secondary));
    
    /* Background Colors */
    --bg-primary: hsl(180, 85%, 13%);
    --bg-secondary: hsl(180, 100%, 10%);
    --bg-card: hsl(180, 68%, 11%);
    --bg-hover: hsl(180, 100%, 14%);
    
    /* Text Colors - Fixed for better contrast */
    --text-primary: hsl(0, 0%, 95%); /* Light white for dark backgrounds */
    --text-secondary: hsl(180, 59%, 75%); /* Light teal for secondary text */
    --text-muted: hsl(180, 84%, 70%); /* Brighter teal for muted text */
    
    /* Border Colors */
    --border-primary: hsl(180, 100%, 20%);
    --border-secondary: hsl(180, 100%, 25%);
    
    /* Status Colors */
    --success: hsl(140, 65%, 48%);
    --warning: hsl(35, 85%, 50%);
    --error: hsl(4, 75%, 57%);
    --info: hsl(200, 85%, 50%);
    
    /* Status Color Light Variants */
    --success-light: hsl(140, 65%, 90%);
    --warning-light: hsl(35, 85%, 90%);
    --error-light: hsl(4, 75%, 90%);
    --info-light: hsl(200, 85%, 90%);
    
    /* Status Color Dark Variants */
    --success-dark: hsl(140, 65%, 35%);
    --warning-dark: hsl(35, 85%, 35%);
    --error-dark: hsl(4, 75%, 35%);
    --info-dark: hsl(200, 85%, 35%);
    
    /* Shadows and Effects */
    --shadow-soft: 0 4px 20px -2px hsl(180 100% 8% / 0.3);
    --shadow-small: 0 2px 8px -1px hsl(180 100% 8% / 0.2);
    --shadow-medium: 0 8px 30px -4px hsl(180 100% 8% / 0.4);
    --shadow-glow: 0 0 20px hsl(180 85% 35% / 0.3);
    --shadow-large: 0 8px 24px rgba(0, 128, 128, 0.4);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
    --transition-medium: all 0.5s ease-out;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Modern Navigation Styles */
.modern-nav {
    position: relative;
    z-index: 1000;
}

/* Floating Toggle Button */
.floating-toggle-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 3rem;
    height: 3rem;
    background: var(--teal-gradient-primary);
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

/* Mobile positioning for floating toggle button */
@media (max-width: 1023px) {
    .floating-toggle-btn {
        top: 5rem; /* Below mobile header */
        left: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .floating-toggle-btn i {
        width: 1.25rem;
        height: 1.25rem;
    }
}

.floating-toggle-btn:hover {
    background: var(--teal-gradient-accent);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.floating-toggle-btn i {
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile Header */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: var(--teal-gradient-primary);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    z-index: 50;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
}

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

.nav-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.nav-toggle i {
    width: 1.25rem;
    height: 1.25rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.brand-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--teal-gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.25rem;
    box-shadow: var(--shadow-glow);
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.nav-btn i {
    width: 1.25rem;
    height: 1.25rem;
}

.notification-btn {
    position: relative;
}

.notification-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    background: var(--teal-gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1rem;
    box-shadow: var(--shadow-glow);
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 30;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(4px);
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1024px) {
    .nav-overlay {
        display: none;
    }
}

/* Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--teal-gradient-primary);
    border-right: 1px solid var(--border-primary);
    z-index: 40;
    overflow-y: auto;
    transition: width 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
}

.sidebar-nav.open {
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .sidebar-nav {
        transform: translateX(0);
    }
}

.sidebar-nav.collapsed {
    width: 80px;
}

.sidebar-nav.collapsed .brand-info,
.sidebar-nav.collapsed .profile-info,
.sidebar-nav.collapsed .nav-label,
.sidebar-nav.collapsed .security-badge span {
    display: none;
}

.sidebar-nav.collapsed .brand-section {
    justify-content: center;
    padding: var(--spacing-md);
    border-bottom: none;
}

.sidebar-nav.collapsed .brand-icon-large {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
}

.sidebar-nav.collapsed .user-profile {
    justify-content: center;
    padding: var(--spacing-md);
    border-bottom: none;
}

.sidebar-nav.collapsed .profile-avatar {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
}

.sidebar-nav.collapsed .nav-link {
    justify-content: center;
    padding: var(--spacing-md);
    margin: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
}

.sidebar-nav.collapsed .nav-link:hover {
    transform: translateX(0);
}

.sidebar-nav.collapsed .nav-link::before {
    display: none;
}

.sidebar-nav.collapsed .nav-icon {
    margin: 0;
    width: 1.5rem;
    height: 1.5rem;
}

.sidebar-nav.collapsed .sidebar-footer {
    padding: var(--spacing-md);
    border-top: none;
}

.sidebar-nav.collapsed .security-badge {
    justify-content: center;
    padding: var(--spacing-sm);
}

.sidebar-nav.collapsed .security-badge span {
    display: none;
}

.sidebar-nav.collapsed .security-badge i {
    font-size: 1.25rem;
}

/* Sidebar Header */
.sidebar-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--teal-gradient-accent);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    min-height: 4rem;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.brand-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-primary);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.brand-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.brand-icon-large {
    width: 3rem;
    height: 3rem;
    background: var(--teal-gradient-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

.brand-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.brand-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.collapse-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
}

.collapse-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.collapse-btn i {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.collapse-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-primary);
    background: rgba(255, 255, 255, 0.03);
}

.profile-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--teal-gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
}

.profile-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.profile-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Navigation Menu */
.nav-menu {
    flex: 1;
    padding: var(--spacing-lg) var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    position: relative;
    margin: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--light-teal-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transform: scaleY(0);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-color: var(--border-secondary);
    transform: translateX(4px);
}

.nav-link:hover::before {
    transform: scaleY(1);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-color: var(--light-teal-primary);
}

.nav-link.active::before {
    transform: scaleY(1);
}

.nav-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-teal-secondary);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.nav-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

.nav-link:hover .nav-icon {
    color: var(--light-teal-accent);
    transform: scale(1.1);
}

.nav-label {
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.nav-divider {
    height: 1px;
    background: var(--border-primary);
    margin: var(--spacing-md) var(--spacing-sm);
    opacity: 0.5;
}

.logout-link {
    color: var(--error) !important;
    border-color: var(--error) !important;
}

.logout-link:hover {
    background: var(--error) !important;
    color: var(--text-primary) !important;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-primary);
    background: rgba(255, 255, 255, 0.02);
}

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

.security-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.security-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--light-teal-secondary);
    color: var(--text-primary);
}

.security-badge i {
    color: var(--light-teal-secondary);
}

/* Main Content Area */
.main-content {
    min-height: 100vh;
    background: var(--bg-primary);
    transition: var(--transition-smooth);
}

@media (min-width: 1024px) {
    .main-content {
        margin-left: 290px;
        width: calc(100% - 290px);
    }
}

/* Mobile header spacing */
@media (max-width: 1023px) {
    .main-content {
        margin-top: 4rem; /* Account for fixed mobile header */
        margin-left: 0;
        width: 100%;
    }
}

.sidebar-nav.collapsed + .main-content {
    margin-left: 80px;
    width: calc(100% - 80px);
}

/* Ensure smooth transitions for content area */
.main-content {
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.content-wrapper {
    padding: var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .content-wrapper {
        padding: var(--spacing-2xl);
    }
}

/* Collapsed Sidebar Styles */
.sidebar-nav.collapsed .brand-info,
.sidebar-nav.collapsed .profile-info,
.sidebar-nav.collapsed .nav-label,
.sidebar-nav.collapsed .security-badge span {
    display: none;
}

.sidebar-nav.collapsed .brand-section {
    justify-content: center;
}

.sidebar-nav.collapsed .user-profile {
    padding: var(--spacing-lg);
    text-align: center;
}

.sidebar-nav.collapsed .nav-link {
    justify-content: center;
    padding: var(--spacing-md);
}

.sidebar-nav.collapsed .nav-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Page Headers */
.page-header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-primary);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-teal-primary);
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.2;
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--teal-gradient-accent);
    opacity: 0;
    transition: var(--transition-smooth);
}

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

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: var(--spacing-xs) 0 0 0;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--teal-gradient-accent);
    opacity: 0;
    transition: var(--transition-smooth);
}

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

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

.stats-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.stats-icon {
    width: 3rem;
    height: 3rem;
    background: var(--teal-gradient-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--spacing-sm) 0;
    line-height: 1.2;
}

.stats-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.stats-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.stats-change {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

.stats-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.stats-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.stats-change.neutral {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(156, 163, 175, 0.2);
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.quick-action-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--teal-gradient-accent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

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

.quick-action-card:hover::before {
    transform: scaleX(1);
}

.quick-action-card:hover .quick-action-icon {
    transform: scale(1.1);
}

.quick-action-icon {
    width: 3rem;
    height: 3rem;
    background: var(--teal-gradient-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
}

.quick-action-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.quick-action-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Activities List */
.activities-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

.activity-item:hover {
    background: var(--bg-card);
    transform: translateX(4px);
}

.activity-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
}

.activity-icon.success {
    background: var(--success);
}

.activity-icon.primary {
    background: var(--teal-gradient-accent);
}

.activity-icon.warning {
    background: var(--warning);
}

.activity-icon.info {
    background: var(--light-teal-accent);
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-xs) 0;
}

.activity-content p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1.4;
    white-space: nowrap;
    justify-content: center;
    min-height: 2.5rem;
}

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

.btn-primary {
    background: var(--teal-gradient-accent);
    color: var(--text-primary);
    border-color: var(--light-teal-primary);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-card);
    border-color: var(--border-secondary);
    transform: translateY(-1px);
}

/* Forms */
.form-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--light-teal-accent);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--dark-teal-primary), var(--dark-teal-secondary));
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: var(--light-teal-primary);
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.2), 0 4px 12px rgba(32, 201, 151, 0.15);
    background: linear-gradient(135deg, var(--dark-teal-secondary), var(--light-teal-accent));
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: var(--light-teal-accent);
    opacity: 0.8;
}

/* Tables */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

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

.table th {
    background: linear-gradient(135deg, var(--dark-teal-primary), var(--dark-teal-secondary));
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    padding: var(--spacing-md);
    border-bottom: 2px solid var(--light-teal-accent);
    font-size: 0.875rem;
    line-height: 1.4;
}

.table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    background: var(--bg-card);
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-header {
        padding: 0 var(--spacing-md);
    }
    
    .nav-brand {
        gap: var(--spacing-sm);
    }
    
    .brand-text h1 {
        font-size: 1.125rem;
    }
    
    .user-menu {
        padding: var(--spacing-xs);
    }
    
    .content-wrapper {
        padding: var(--spacing-md);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .card {
        padding: var(--spacing-md);
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .table th,
    .table td {
        padding: var(--spacing-sm);
        font-size: 0.8rem;
    }
}

/* Utility Classes */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-card { background-color: var(--bg-card); }

.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-medium { box-shadow: var(--shadow-medium); }
.shadow-glow { box-shadow: var(--shadow-glow); }

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Missing CSS Classes */
.professional-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    overflow: hidden;
}

.professional-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
    border-color: var(--light-teal-primary);
}

/* Breadcrumb Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.breadcrumb-item:hover {
    color: var(--light-teal-primary);
    background: var(--bg-hover);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
    background: var(--bg-secondary);
}

.breadcrumb-separator {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Search and Filter Styles */
.search-filter-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--dark-teal-accent), var(--dark-teal-secondary));
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--light-teal-accent);
    box-shadow: 0 4px 20px rgba(32, 201, 151, 0.15);
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-teal-primary);
    width: 16px;
    height: 16px;
    z-index: 2;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--light-teal-accent);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.1);
}

.search-box input:focus {
    outline: none;
    border-color: var(--light-teal-primary);
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.2), 0 4px 12px rgba(32, 201, 151, 0.15);
    background: var(--dark-teal-primary);
}

.search-box input::placeholder {
    color: var(--light-teal-accent);
    opacity: 0.7;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--light-teal-primary), var(--light-teal-secondary));
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.3);
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--light-teal-secondary), var(--light-teal-accent));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.4);
}

.filter-dropdown select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--light-teal-accent);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.1);
}

.filter-dropdown select:focus {
    outline: none;
    border-color: var(--light-teal-primary);
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.2), 0 4px 12px rgba(32, 201, 151, 0.15);
    background: var(--dark-teal-primary);
}

.filter-dropdown select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-completed {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-incomplete {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Item Lists */
.topics-list,
.subtopics-list,
.competencies-list,
.sections-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Professional card styling for the sections container */
.professional-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.professional-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--light-teal-primary), var(--light-teal-secondary), var(--light-teal-accent));
}

.professional-card .card-header {
    background: linear-gradient(135deg, var(--dark-teal-primary), var(--dark-teal-secondary));
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-primary);
}

.professional-card .card-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.professional-card .p-6 {
    padding: 2rem;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--light-teal-primary), var(--light-teal-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.empty-state h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.empty-state p {
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.topic-item,
.subtopic-item,
.competency-item,
.section-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-small);
}

.topic-item:hover,
.subtopic-item:hover,
.competency-item:hover,
.section-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--light-teal-primary);
}

.topic-info,
.subtopic-info,
.competency-info,
.section-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.topic-icon,
.subtopic-icon,
.competency-icon,
.section-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.topic-details,
.subtopic-details,
.competency-details,
.section-details {
    flex: 1;
}

.topic-details h3,
.subtopic-details h3,
.competency-details h3,
.section-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.topic-description,
.subtopic-description,
.competency-description,
.section-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.topic-meta,
.subtopic-meta,
.competency-meta,
.section-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.created-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.audio-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--light-teal-primary);
}

.topic-actions,
.subtopic-actions,
.competency-actions,
.section-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Modal Styles - Enhanced with Teal Theme */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 128, 128, 0.3);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(135deg, var(--dark-teal-primary), var(--dark-teal-secondary));
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(32, 201, 151, 0.3), 0 0 0 1px var(--light-teal-accent);
    animation: modalSlideIn 0.3s ease-out;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid var(--light-teal-accent);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--light-teal-accent);
    background: linear-gradient(135deg, var(--light-teal-primary), var(--light-teal-secondary));
    border-radius: 14px 14px 0 0;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    line-height: 1;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem;
    background: var(--bg-card);
}

/* Enhanced Audio Player Styles */
.audio-player {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--border-primary);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.audio-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--light-teal-primary), var(--light-teal-secondary), var(--light-teal-accent));
}

.audio-info {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.audio-info h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.audio-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.audio-controls {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.audio-progress {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-secondary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--light-teal-primary), var(--light-teal-secondary));
    border-radius: 4px;
    transition: width 0.1s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--light-teal-accent);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.control-btn {
    background: linear-gradient(135deg, var(--light-teal-primary), var(--light-teal-secondary));
    border: 2px solid var(--light-teal-accent);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.control-btn:hover::before {
    left: 100%;
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.4);
    border-color: var(--light-teal-accent);
}

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

.control-btn.play-pause {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-teal-accent), var(--light-teal-primary));
    border-color: var(--light-teal-accent);
}

.control-btn.play-pause:hover {
    background: linear-gradient(135deg, var(--light-teal-primary), var(--light-teal-accent));
}

.control-btn i {
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.control-btn.play-pause i {
    font-size: 2rem;
}

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

.control-btn:disabled:hover {
    transform: none;
    box-shadow: var(--shadow-medium);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.volume-control label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 60px;
}

.volume-slider {
    width: 120px;
    height: 6px;
    background: var(--border-secondary);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--light-teal-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--light-teal-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.audio-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.audio-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.audio-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.audio-actions .btn i {
    font-size: 1.1rem;
}

/* Audio Player Responsive Design */
@media (max-width: 768px) {
    .audio-player {
        padding: 1.5rem;
    }
    
    .control-buttons {
        gap: 0.75rem;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
    }
    
    .control-btn.play-pause {
        width: 70px;
        height: 70px;
    }
    
    .control-btn i {
        font-size: 1.25rem;
    }
    
    .control-btn.play-pause i {
        font-size: 1.75rem;
    }
    
    .audio-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .audio-actions .btn {
        width: 100%;
        max-width: 200px;
    }
    
    /* Enhanced Mobile Modal Styles */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 1.25rem;
        border-radius: 18px 18px 0 0;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .modal-close {
        padding: 0.75rem;
        font-size: 1.25rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    /* Mobile Audio Player Enhancements */
    .audio-player {
        padding: 1.25rem;
        border-radius: 20px;
    }
    
    .audio-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .audio-info p {
        font-size: 0.9rem;
    }
    
    .audio-progress {
        margin-bottom: 1.25rem;
    }
    
    .progress-bar {
        height: 10px;
        border-radius: 5px;
        margin-bottom: 0.75rem;
    }
    
    .progress-fill::after {
        width: 20px;
        height: 20px;
        border: 3px solid white;
    }
    
    .time-display {
        font-size: 0.8rem;
        font-weight: 600;
    }
    
    .control-buttons {
        gap: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .control-btn {
        width: 55px;
        height: 55px;
        min-width: 55px;
        min-height: 55px;
    }
    
    .control-btn.play-pause {
        width: 75px;
        height: 75px;
        min-width: 75px;
        min-height: 75px;
    }
    
    .control-btn i {
        font-size: 1.4rem;
    }
    
    .control-btn.play-pause i {
        font-size: 1.9rem;
    }
    
    .volume-control {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .volume-control label {
        font-size: 0.85rem;
        min-width: auto;
    }
    
    .volume-slider {
        width: 150px;
        height: 8px;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
        border: 3px solid white;
    }
    
    .volume-slider::-moz-range-thumb {
        width: 22px;
        height: 22px;
        border: 3px solid white;
    }
    
    .audio-actions .btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 15px;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .audio-player {
        padding: 1rem;
    }
    
    .control-buttons {
        gap: 0.5rem;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }
    
    .control-btn.play-pause {
        width: 65px;
        height: 65px;
        min-width: 65px;
        min-height: 65px;
    }
    
    .control-btn i {
        font-size: 1.2rem;
    }
    
    .control-btn.play-pause i {
        font-size: 1.6rem;
    }
    
    .volume-slider {
        width: 120px;
    }
    
    .audio-actions .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Audio Player Animation States */
.audio-player.playing .control-btn.play-pause {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(94, 234, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(94, 234, 212, 0);
    }
}

.audio-player.loading .control-btn {
    opacity: 0.7;
    cursor: wait;
}

.audio-player.loading .control-btn:hover {
    transform: none;
}

/* Mobile Touch Enhancements */
@media (max-width: 768px) {
    /* Improve touch targets */
    .control-btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }
    
    .control-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    /* Progress bar touch improvements */
    .progress-bar {
        -webkit-tap-highlight-color: transparent;
        touch-action: pan-x;
        cursor: pointer;
    }
    
    .progress-bar:active {
        transform: scale(1.02);
        transition: transform 0.1s ease;
    }
    
    /* Volume slider touch improvements */
    .volume-slider {
        -webkit-tap-highlight-color: transparent;
        touch-action: pan-x;
    }
    
    /* Modal touch improvements */
    .modal-content {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* Prevent text selection on mobile */
    .audio-player {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }
    
    /* Better visual feedback for touch interactions */
    .control-btn:active::before {
        animation: touchRipple 0.3s ease-out;
    }
    
    @keyframes touchRipple {
        0% {
            transform: scale(0);
            opacity: 0.3;
        }
        100% {
            transform: scale(1);
            opacity: 0;
        }
    }
    
    /* Improved loading states for mobile */
    .audio-player.loading .control-btn {
        pointer-events: none;
        opacity: 0.6;
    }
    
    /* Better error handling display on mobile */
    .audio-player.error {
        border-color: #ef4444;
        background: linear-gradient(135deg, #fef2f2, #fee2e2);
    }
    
    .audio-player.error .audio-info h3 {
        color: #dc2626;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        max-height: 85vh;
        margin: 2% auto;
    }
    
    .audio-player {
        padding: 1rem;
    }
    
    .control-buttons {
        gap: 0.5rem;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
    }
    
    .control-btn.play-pause {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
    }
    
    .audio-info h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .audio-info p {
        font-size: 0.85rem;
    }
}

/* Mobile Optimized Class */
.audio-player.mobile-optimized {
    /* Enhanced mobile experience */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.audio-player.mobile-optimized .control-btn {
    /* Ensure minimum touch target size */
    min-width: 44px !important;
    min-height: 44px !important;
    /* Better touch feedback */
    -webkit-tap-highlight-color: rgba(94, 234, 212, 0.3);
}

.audio-player.mobile-optimized .progress-bar {
    /* Better touch interaction */
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-x;
    /* Larger touch area */
    min-height: 12px;
}

.audio-player.mobile-optimized .volume-slider {
    /* Better touch interaction */
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-x;
    /* Larger touch area */
    min-height: 10px;
}

.audio-player.mobile-optimized .modal-content {
    /* Better mobile modal */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    /* Prevent zoom on input focus */
    touch-action: manipulation;
}

/* High DPI Mobile Devices */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .audio-player.mobile-optimized .control-btn {
        /* Crisp icons on high DPI screens */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .audio-player.mobile-optimized .progress-fill::after {
        /* Crisp progress thumb */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--light-teal-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Form-group specific styles - using comprehensive form styling above */

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-teal-accent);
}

/* Enhanced Button Styles for Modal */
.modal .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    min-width: 120px;
    justify-content: center;
}

.modal .btn-primary {
    background: linear-gradient(135deg, var(--light-teal-primary), var(--light-teal-secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.3);
}

.modal .btn-primary:hover {
    background: linear-gradient(135deg, var(--light-teal-secondary), var(--light-teal-accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 201, 151, 0.4);
}

.modal .btn-secondary {
    background: linear-gradient(135deg, var(--dark-teal-accent), var(--dark-teal-secondary));
    color: var(--light-teal-primary);
    border: 2px solid var(--light-teal-accent);
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.2);
}

.modal .btn-secondary:hover {
    background: linear-gradient(135deg, var(--dark-teal-secondary), var(--light-teal-accent));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.3);
}

.modal .btn i {
    width: 18px;
    height: 18px;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
}

/* Button Variants */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-height: 2rem;
}

.btn-danger {
    background: var(--error);
    color: white;
    border: 1px solid var(--error);
}

.btn-danger:hover {
    background: hsl(4, 75%, 47%);
    border-color: hsl(4, 75%, 47%);
}

.btn-success {
    background: var(--success);
    color: white;
    border: 1px solid var(--success);
}

.btn-success:hover {
    background: hsl(140, 65%, 38%);
    border-color: hsl(140, 65%, 38%);
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .search-filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .topic-actions,
    .subtopic-actions,
    .competency-actions,
    .section-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .topic-item,
    .subtopic-item,
    .competency-item,
    .section-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .topic-info,
    .subtopic-info,
    .competency-info,
    .section-info {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Student Management Styles */
.selection-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--light-teal-primary);
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.1);
}

.student-management-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .student-management-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.student-lists {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.student-list-section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-small);
}

.list-header {
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.student-count {
    background: var(--light-teal-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.student-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.student-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.student-item:hover {
    border-color: var(--light-teal-primary);
    box-shadow: var(--shadow-small);
}

.student-item:last-child {
    margin-bottom: 0;
}

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

.student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-teal-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.student-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.student-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.student-level {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.student-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Loading States */
.loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-primary);
    border-top: 2px solid var(--light-teal-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Header Content and Actions */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

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

/* Breadcrumb Enhancements */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
}

.breadcrumb-item:hover {
    color: var(--light-teal-primary);
    background: var(--bg-hover);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
    background: var(--bg-secondary);
}

.breadcrumb-separator {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    opacity: 0.7;
    flex-shrink: 0;
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 2.5rem;
    white-space: nowrap;
    user-select: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--light-teal-secondary);
    border-color: var(--light-teal-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--light-teal-primary);
    color: var(--light-teal-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-height: 2rem;
}

.btn-danger {
    background: var(--error);
    color: white;
    border: 1px solid var(--error);
}

.btn-danger:hover:not(:disabled) {
    background: hsl(4, 75%, 47%);
    border-color: hsl(4, 75%, 47%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

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

.btn-success:hover:not(:disabled) {
    background: hsl(140, 65%, 38%);
    border-color: hsl(140, 65%, 38%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

/* Enhanced Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-small);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--light-teal-primary), var(--light-teal-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--light-teal-primary);
}

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

.stats-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.stats-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--light-teal-primary), var(--light-teal-secondary));
    flex-shrink: 0;
}

.stats-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.stats-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.stats-change.neutral {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stats-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Enhanced Professional Card */
.professional-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    overflow: hidden;
}

.professional-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
    border-color: var(--light-teal-primary);
}

.professional-card .p-6 {
    padding: 1.5rem;
}

.professional-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Utility Classes */
.mb-6 {
    margin-bottom: 1.5rem;
}

.text-xl {
    font-size: 1.25rem;
}

.font-semibold {
    font-weight: 600;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Enhanced Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 0.9rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .header-actions {
        justify-content: stretch;
    }
    
    .header-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .selection-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .student-management-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .student-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .student-info {
        width: 100%;
    }
    
    .student-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .student-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* Card Styles for Headteacher Templates */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-small);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--light-teal-primary);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-secondary);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.card-body {
    padding: 1.5rem;
}

/* Breadcrumb Link Styles */
.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-link:hover {
    color: var(--light-teal-primary);
    background: var(--bg-hover);
}

/* Header Main Styles */
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-main h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.header-main p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Curriculum Styles */
.curriculum-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.curriculum-section {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    min-height: 400px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-primary);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 0.5rem 0;
}

/* Button grouping for better organization */
.section-actions .btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Primary action buttons (Edit Details - highlighted) */
.section-actions .btn-primary {
    background: linear-gradient(135deg, var(--light-teal-primary), var(--light-teal-secondary));
    color: white;
    border: 2px solid var(--light-teal-primary);
    font-weight: 600;
    padding: 0.625rem 1rem;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
    transition: all 0.3s ease;
}

.section-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.4);
    border-color: var(--light-teal-secondary);
}

/* Secondary action buttons (Edit Content) */
.section-actions .btn-secondary {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    padding: 0.625rem 1rem;
    transition: all 0.3s ease;
}

.section-actions .btn-secondary:hover {
    background: linear-gradient(135deg, var(--bg-card), var(--border-primary));
    border-color: var(--light-teal-accent);
    transform: translateY(-1px);
}

/* Info buttons (Listen/Generate Audio) */
.section-actions .btn-info {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border: 1px solid #0ea5e9;
    padding: 0.625rem 1rem;
    transition: all 0.3s ease;
}

.section-actions .btn-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Success buttons (Post Section) */
.section-actions .btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border: 1px solid var(--success);
    padding: 0.625rem 1rem;
    transition: all 0.3s ease;
}

.section-actions .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Warning buttons (Regenerate Audio) */
.section-actions .btn-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
    border: 1px solid var(--warning);
    padding: 0.625rem 1rem;
    transition: all 0.3s ease;
}

.section-actions .btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Danger buttons (Delete) */
.section-actions .btn-danger {
    background: linear-gradient(135deg, var(--error), #dc2626);
    color: white;
    border: 1px solid var(--error);
    padding: 0.625rem 1rem;
    transition: all 0.3s ease;
}

.section-actions .btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Small button size adjustments */
.section-actions .btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    min-height: 2.25rem;
}

/* Button icon spacing */
.section-actions .btn i {
    margin-right: 0.375rem;
    font-size: 0.9rem;
}

/* Responsive button layout */
@media (max-width: 768px) {
    .section-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .section-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-actions .btn-group {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section-actions {
        padding: 0.75rem 0;
    }
    
    .section-actions .btn-sm {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        min-height: 2.5rem;
    }
}

/* Activities List Styles */
.activities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    background: var(--bg-card);
    transition: all 0.3s ease;
}

.activity-item:hover {
    border-color: var(--light-teal-primary);
    box-shadow: var(--shadow-small);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.activity-icon.success {
    background: var(--success);
}

.activity-icon.primary {
    background: var(--light-teal-primary);
}

.activity-icon.warning {
    background: var(--warning);
}

.activity-icon.info {
    background: var(--light-teal-secondary);
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.activity-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Competencies Section Styles */
.competencies-section {
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    min-height: 100vh;
}

/* Competencies List Styles */
.competencies-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.competency-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.competency-item:hover {
    border-color: var(--light-teal-primary);
    box-shadow: var(--shadow-small);
    transform: translateY(-2px);
}

.competency-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
}

.competency-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.competency-details {
    flex: 1;
}

.competency-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.competency-details p {
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.competency-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.competency-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

/* Status Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-active {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-badge.status-inactive {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.status-badge.status-pending {
    background: var(--info-light);
    color: var(--info);
    border: 1px solid var(--info);
}

.status-badge.status-completed {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

/* Created Date Styles */
.created-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-large);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-primary);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
}

/* Form Group Styles */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--light-teal-primary);
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.1);
}

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

/* Form Actions Styles */
.form-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    margin-top: var(--spacing-lg);
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

/* Button Variants */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
}

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

.btn-danger:hover {
    background: var(--error-dark);
    border-color: var(--error-dark);
}

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

.btn-success:hover {
    background: var(--success-dark);
    border-color: var(--success-dark);
}

.btn-secondary {
    background: var(--bg-secondary);
    border-color: var(--border-primary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--light-teal-primary);
    color: var(--light-teal-primary);
}

/* Sections Section Styles */
.sections-section {
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    min-height: 100vh;
}

/* Teacher Overview Specific Styles */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.subject-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.subject-card:hover {
    border-color: var(--light-teal-primary);
    box-shadow: var(--shadow-small);
    transform: translateY(-2px);
}

.subject-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.subject-info {
    flex: 1;
}

.subject-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.subject-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

.subject-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.stat {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.subject-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.quick-action-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-teal-primary), var(--light-teal-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.quick-action-card:hover {
    border-color: var(--light-teal-primary);
    box-shadow: var(--shadow-small);
    transform: translateY(-2px);
}

.quick-action-card:hover::before {
    opacity: 0.05;
}

.quick-action-card:hover .action-icon {
    background: var(--light-teal-primary);
    color: white;
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--light-teal-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.action-content {
    flex: 1;
    z-index: 1;
    position: relative;
}

.action-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.action-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

.action-arrow {
    color: var(--light-teal-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    z-index: 1;
    position: relative;
}

/* Professional Card Styles */
.professional-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.professional-card:hover {
    box-shadow: var(--shadow-medium);
    border-color: var(--light-teal-primary);
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

/* Enhanced Form Styling for All Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
textarea,
select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--light-teal-accent);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--dark-teal-primary), var(--dark-teal-secondary));
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(32, 201, 151, 0.1);
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--light-teal-primary);
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.2), 0 4px 12px rgba(32, 201, 151, 0.15);
    background: linear-gradient(135deg, var(--dark-teal-secondary), var(--light-teal-accent));
    transform: translateY(-1px);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
    color: var(--light-teal-accent);
    opacity: 0.8;
}

/* Form Labels */
label {
    display: block;
    font-weight: 600;
    color: var(--light-teal-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Form Groups */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-col {
    flex: 1;
}

/* Checkbox and Radio Styles */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: var(--light-teal-primary);
}

/* File Input Styling */
input[type="file"] {
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--dark-teal-primary), var(--dark-teal-secondary));
    border: 2px dashed var(--light-teal-accent);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: var(--light-teal-primary);
    background: linear-gradient(135deg, var(--dark-teal-secondary), var(--light-teal-accent));
}

/* Select Dropdown Styling */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2320c997' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

select option {
    background: var(--dark-teal-primary);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* Textarea Specific Styling */
textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* Form Validation Styles */
input:invalid,
textarea:invalid,
select:invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

input:valid,
textarea:valid,
select:valid {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Form Section Styling */
.form-section {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.form-section-title {
    color: var(--light-teal-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-teal-accent);
}

/* Form Help Text */
.form-help {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Form Error Messages */
.form-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-error::before {
    content: "⚠";
    font-size: 1rem;
}

/* Form Success Messages */
.form-success {
    color: var(--success);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-success::before {
    content: "✓";
    font-size: 1rem;
}

/* Students Page Styles */
.students-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.student-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.student-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--light-teal-primary);
}

.student-item.available-student {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

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

.student-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-teal-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.student-details {
    flex: 1;
}

.student-details h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.student-email {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.student-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.performance-score {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.student-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

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

.student-select-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.student-select-item:hover {
    background: var(--bg-card);
    border-color: var(--light-teal-primary);
}

.student-action {
    flex-shrink: 0;
}

/* Enhanced Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: var(--shadow-glow);
}

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

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

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--light-teal-primary);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--light-teal-primary);
    color: var(--text-primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--light-teal-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-primary);
    border-color: var(--light-teal-primary);
}

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

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

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
}

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

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

/* Enhanced Search and Filter Styles */
.search-filter-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    flex: 1;
    min-width: 300px;
}

.search-box i {
    color: var(--text-secondary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    flex: 1;
    font-size: 0.875rem;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--light-teal-primary);
    color: var(--text-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--light-teal-secondary);
    transform: translateY(-1px);
}

.filter-dropdown select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    outline: none;
    font-size: 0.875rem;
    min-width: 150px;
    cursor: pointer;
}

.filter-dropdown select:focus {
    border-color: var(--light-teal-primary);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .student-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .student-actions {
        justify-content: stretch;
    }
    
    .student-actions .btn {
        flex: 1;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Subtopics and Competencies Lists */
.subtopics-list,
.competencies-list {
    margin-top: 1rem;
}

.subtopic-item,
.competency-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subtopic-item::before,
.competency-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--light-teal-primary), var(--light-teal-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.subtopic-item:hover::before,
.competency-item:hover::before {
    opacity: 1;
}

.subtopic-item:hover,
.competency-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    border-color: var(--light-teal-primary);
}

.subtopic-info,
.competency-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.subtopic-icon,
.competency-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.subtopic-details,
.competency-details {
    flex: 1;
}

.subtopic-details h3,
.competency-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.subtopic-description,
.competency-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.subtopic-meta,
.competency-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.subtopic-actions,
.competency-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.subtopic-actions .btn,
.competency-actions .btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.subtopic-actions .btn:hover,
.competency-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.status-completed {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.status-incomplete {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.created-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .subtopic-info,
    .competency-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .subtopic-icon,
    .competency-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .subtopic-actions,
    .competency-actions {
        justify-content: flex-start;
    }
    
    .subtopic-meta,
    .competency-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.section-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-small);
    position: relative;
    overflow: hidden;
}

.section-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--light-teal-primary), var(--light-teal-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-item:hover::before {
    opacity: 1;
}

.section-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--light-teal-primary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.section-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: fit-content;
}

.section-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

.status-completed {
    background: linear-gradient(135deg, var(--light-teal-primary), var(--light-teal-secondary));
    color: white;
}

.status-incomplete {
    background: linear-gradient(135deg, var(--warning), #d97706);
    color: white;
}

.created-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.section-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Button icon spacing */
.section-actions .btn i {
    margin-right: 0.375rem;
    font-size: 0.9rem;
}

/* Button focus states for accessibility */
.section-actions .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.3);
}

/* Button active states */
.section-actions .btn:active {
    transform: translateY(0);
}

/* Button disabled states */
.section-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Special styling for the primary action button (Edit Details) */
.section-actions .btn-primary {
    position: relative;
    overflow: hidden;
}

.section-actions .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.section-actions .btn-primary:hover::before {
    left: 100%;
}

/* Responsive button layout */