/* ============================================
   DIGITAL LIBRARY & LMS — PREMIUM DESIGN SYSTEM
   ============================================ */

/* ---------- Google Fonts Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Primary palette */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.25);

    /* Accent */
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-dark: #7c3aed;

    /* Secondary */
    --secondary: #06b6d4;
    --secondary-light: #22d3ee;

    /* Success / Warning / Danger */
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --danger: #ef4444;

    /* Neutrals */
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    --gradient-success: linear-gradient(135deg, #10b981, #06b6d4);
    --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
    --gradient-cool: linear-gradient(135deg, #06b6d4, #6366f1);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ---------- Global Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    background-color: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: color var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* Animation utility classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.6s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Gradient text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-cool {
    background: var(--gradient-cool);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-white {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover lift effect */
.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-hero {
    background: var(--gradient-hero) !important;
}

.bg-gradient-cool {
    background: var(--gradient-cool) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

.bg-gradient-warm {
    background: var(--gradient-warm) !important;
}

/* Section spacing */
.section-padding {
    padding: var(--space-3xl) 0;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-500);
    margin-bottom: var(--space-2xl);
}

/* ============================================
   NAVBAR — GLASSMORPHISM
   ============================================ */

.navbar-custom {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 0;
    transition: all var(--transition-base);
    z-index: 1050;
}

.navbar-custom.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.navbar-custom .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-custom .navbar-brand .brand-icon {
    background: var(--gradient-primary);
    padding: 0.4rem 0.55rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.08);
}

.navbar-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

.navbar-custom .dropdown-menu {
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: slideDown 0.2s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.navbar-custom .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

.navbar-custom .dropdown-item:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--white);
}

.navbar-custom .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-custom .btn-nav-cta {
    background: var(--gradient-primary);
    color: var(--white) !important;
    font-weight: 600;
    font-size: var(--font-size-sm);
    padding: 0.45rem 1.2rem !important;
    border-radius: var(--radius-full);
    border: none;
    transition: all var(--transition-base);
}

.navbar-custom .btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: var(--gradient-hero);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary-gradient {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--primary-glow);
    color: var(--white);
}

.btn-outline-light-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    padding: 0.7rem 2rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-outline-light-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm-gradient {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.btn-sm-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
    color: var(--white);
}

.btn-success-gradient {
    background: var(--gradient-success);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-success-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
    color: var(--white);
}

/* ============================================
   CARDS
   ============================================ */

.card-modern {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--primary-light);
}

.card-modern .card-body {
    padding: var(--space-lg);
}

.card-modern .card-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-100));
}

.card-modern .card-cover-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    opacity: 0.9;
}

.card-modern .card-title {
    font-weight: 700;
    font-size: var(--font-size-lg);
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.card-modern .card-meta {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

/* ============================================
   STAT CARDS
   ============================================ */

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.stat-card .stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-card .stat-label {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    color: inherit;
}

.category-card .category-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
    color: var(--white);
    transition: transform var(--transition-base);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card .category-name {
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--dark);
    margin-bottom: var(--space-xs);
}

.category-card .category-count {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
}

/* ============================================
   BADGES
   ============================================ */

.badge-modern {
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
}

.badge-level-beginner {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-level-intermediate {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-level-advanced {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* ============================================
   RATING STARS
   ============================================ */

.rating-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--warning);
    font-size: var(--font-size-sm);
}

.rating-stars .star-empty {
    color: var(--gray-300);
}

.rating-value {
    font-weight: 700;
    color: var(--dark);
    margin-left: 0.3rem;
}

/* ============================================
   PROGRESS BARS & RINGS
   ============================================ */

.progress-modern {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-modern .progress-bar {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.8s ease;
}

.progress-ring {
    position: relative;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.progress-ring svg {
    transform: rotate(-90deg);
    position: absolute;
    top: 0;
    left: 0;
}

.progress-ring .progress-ring-circle {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 4;
}

.progress-ring .progress-ring-fill {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
}

.progress-ring .progress-value {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--dark);
}

/* ============================================
   SKILL TAGS
   ============================================ */

.skill-tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin: 0.2rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all var(--transition-base);
}

.skill-tag:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   SEARCH BAR
   ============================================ */

.search-bar {
    position: relative;
    max-width: 500px;
}

.search-bar input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    transition: all var(--transition-base);
    background: var(--white);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-bar .search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: var(--font-size-base);
}

/* ============================================
   FOOTER
   ============================================ */

.footer-modern {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-3xl) 0 0;
}

.footer-modern h5 {
    color: var(--white);
    font-weight: 700;
    font-size: var(--font-size-base);
    margin-bottom: var(--space-lg);
    position: relative;
}

.footer-modern h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.footer-modern .footer-brand {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-modern .footer-brand .brand-icon {
    background: var(--gradient-primary);
    padding: 0.3rem 0.45rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.footer-modern .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-modern .footer-links li {
    margin-bottom: 0.6rem;
}

.footer-modern .footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-modern .footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    margin-right: 0.5rem;
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-lg) 0;
    margin-top: var(--space-2xl);
    font-size: var(--font-size-sm);
}

/* ============================================
   FILTER SIDEBAR
   ============================================ */

.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.filter-sidebar h5 {
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--dark);
    margin-bottom: var(--space-md);
}

.filter-sidebar .form-select,
.filter-sidebar .form-control {
    border-radius: var(--radius-md);
    border: 1.5px solid var(--gray-200);
    padding: 0.6rem 1rem;
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
}

.filter-sidebar .form-select:focus,
.filter-sidebar .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ============================================
   PAGE HEADERS
   ============================================ */

.page-header {
    background: var(--gradient-hero);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-2xl);
    position: relative;
    overflow: hidden;
    margin-top: -1.5rem;
    margin-bottom: var(--space-2xl);
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header h1 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    position: relative;
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-lg);
    position: relative;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb-modern {
    background: transparent;
    padding: 0;
    margin-bottom: var(--space-lg);
}

.breadcrumb-modern .breadcrumb-item a {
    color: var(--primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.breadcrumb-modern .breadcrumb-item.active {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-modern .form-control,
.form-modern .form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}

.form-modern .form-control:focus,
.form-modern .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-modern label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.4rem;
    font-size: var(--font-size-sm);
}

.form-modern textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   MESSAGES / ALERTS
   ============================================ */

.alert-modern {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: var(--font-size-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

.alert-modern.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-modern.alert-danger,
.alert-modern.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-modern.alert-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    border-left: 4px solid var(--secondary);
}

.alert-modern.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border-left: 4px solid var(--warning);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination-modern .page-link {
    border: none;
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-md) !important;
    margin: 0 0.15rem;
    font-size: var(--font-size-sm);
    transition: all var(--transition-base);
}

.pagination-modern .page-link:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.pagination-modern .page-item.active .page-link {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ============================================
   STICKY SIDEBAR
   ============================================ */

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.sidebar-card .sidebar-header {
    background: var(--gradient-hero);
    color: var(--white);
    padding: var(--space-lg);
}

.sidebar-card .sidebar-body {
    padding: var(--space-lg);
}

/* ============================================
   LIST GROUP MODERN
   ============================================ */

.list-group-modern .list-group-item {
    border: none;
    border-bottom: 1px solid var(--gray-100);
    padding: 0.85rem 1rem;
    transition: all var(--transition-base);
    font-size: var(--font-size-sm);
}

.list-group-modern .list-group-item:hover {
    background: rgba(99, 102, 241, 0.05);
}

.list-group-modern .list-group-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-color: var(--gray-100);
    font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .page-header h1 {
        font-size: var(--font-size-2xl);
    }

    .stat-card {
        padding: var(--space-lg);
    }

    .stat-card .stat-number {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 576px) {
    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn-primary-gradient,
    .hero-cta .btn-outline-light-custom {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.empty-state .empty-icon {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: var(--space-lg);
}

.empty-state h3 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: var(--space-lg);
}
