/* ═══════════════════════════════════════════════════════════
   🎨 LETSMANAGE HUB - COMPLETE THEME SYSTEM
   Professional & Futuristic SaaS Dashboard Platform
   ═══════════════════════════════════════════════════════════
   
   DESIGN PHILOSOPHY:
   - Professional & futuristic aesthetic
   - Minimal but rich with intentional white space
   - Vivid feedback through colors and animations
   - Seamless responsiveness across all devices
   
   CREATED: November 2025
   VERSION: 2.0 Production Ready
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   📱 GOOGLE FONTS IMPORT
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    /* ═══════════════════════════════════════════════════════════
       🎨 LIGHT MODE COLORS
       ═══════════════════════════════════════════════════════════ */
    
    /* Primary Colors */
    --primary: #1E40AF;                    /* Royal Blue */
    --primary-light: #3B82F6;              /* Sky Blue */
    --primary-dark: #1E3A8A;               /* Deep Blue */
    --primary-50: #EFF6FF;
    --primary-100: #DBEAFE;
    --primary-200: #BFDBFE;
    --primary-300: #93C5FD;
    --primary-400: #60A5FA;
    --primary-500: #3B82F6;
    --primary-600: #2563EB;
    --primary-700: #1D4ED8;
    --primary-800: #1E40AF;
    --primary-900: #1E3A8A;
    
    /* Accent / CTA Gradient Colors */
    --accent-start: #FF6B00;               /* Orange Start */
    --accent-end: #FFB100;                 /* Orange End */
    --accent-gradient: linear-gradient(135deg, #FF6B00 0%, #FFB100 100%);
    --accent-gradient-hover: linear-gradient(135deg, #FF8000 0%, #FFC700 100%);
    
    /* Background Colors */
    --bg-app: #F8FAFC;                     /* Off-White Background */
    --bg-surface: #FFFFFF;                 /* Card/Surface White */
    --bg-elevated: #FFFFFF;
    --bg-overlay: rgba(15, 23, 42, 0.5);
    
    /* Text Colors */
    --text-primary: #0F172A;               /* Main Text */
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --text-inverse: #FFFFFF;
    
    /* State Colors */
    --success: #16A34A;                    /* Green - Approved, Active */
    --success-light: #22C55E;
    --success-bg: #F0FDF4;
    --warning: #EAB308;                    /* Yellow - Pending, Expiring */
    --warning-light: #FACC15;
    --warning-bg: #FEFCE8;
    --danger: #DC2626;                     /* Red - Errors, Expired */
    --danger-light: #F87171;
    --danger-bg: #FEF2F2;
    --info: #0284C7;                       /* Blue - Notifications */
    --info-light: #38BDF8;
    --info-bg: #F0F9FF;
    
    /* Neutral Grays */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* ═══════════════════════════════════════════════════════════
       🌙 DARK MODE COLORS
       ═══════════════════════════════════════════════════════════ */
    
    --dark-bg-app: #0F172A;                /* Deep Navy Background */
    --dark-bg-surface: #1E293B;            /* Card Surface */
    --dark-bg-elevated: #334155;
    --dark-text-primary: #E2E8F0;
    --dark-text-secondary: #CBD5E1;
    --dark-text-tertiary: #94A3B8;
    
    /* Dark Mode Accent */
    --dark-accent-start: #FFB300;
    --dark-accent-end: #FF8600;
    --dark-accent-gradient: linear-gradient(135deg, #FFB300 0%, #FF8600 100%);
    
    /* ═══════════════════════════════════════════════════════════
       📱 PLATFORM-SPECIFIC COLORS (Updated)
       ═══════════════════════════════════════════════════════════ */
    
    --platform-facebook: #1877F2;
    --platform-facebook-hover: #0C63D4;
    
    --platform-instagram: #E4405F;
    --platform-instagram-gradient: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
    
    --platform-linkedin: #0077B5;
    --platform-linkedin-hover: #006396;
    
    /* X (formerly Twitter) - Updated to black */
    --platform-x: #000000;
    --platform-x-hover: #1A1A1A;
    --platform-x-text: #FFFFFF;
    
    --platform-youtube: #FF0000;
    --platform-youtube-hover: #CC0000;
    
    --platform-tiktok: #000000;
    --platform-tiktok-hover: #EE1D52;
    
    --platform-pinterest: #E60023;
    --platform-pinterest-hover: #C8001F;
    
    /* Color Aliases (for backward compatibility) */
    --color-facebook: #1877F2;
    --color-instagram-gradient: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
    --color-linkedin: #0077B5;
    --color-twitter: #1DA1F2;
    --color-youtube: #FF0000;
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;
    --color-info: #3B82F6;
    --color-primary-blue: #1E40AF;
    --color-accent-orange: #FF6B00;
    
    /* ═══════════════════════════════════════════════════════════
       📏 SPACING SYSTEM
       ═══════════════════════════════════════════════════════════ */
    
    --space-1: 0.25rem;      /* 4px */
    --space-2: 0.5rem;       /* 8px */
    --space-3: 0.75rem;      /* 12px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px - Standard Gutter */
    --space-7: 1.75rem;      /* 28px */
    --space-8: 2rem;         /* 32px */
    --space-10: 2.5rem;      /* 40px */
    --space-12: 3rem;        /* 48px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    
    /* ═══════════════════════════════════════════════════════════
       🔘 BORDER RADIUS
       ═══════════════════════════════════════════════════════════ */
    
    --radius-sm: 0.375rem;    /* 6px */
    --radius-md: 0.5rem;      /* 8px */
    --radius-lg: 0.75rem;     /* 12px */
    --radius-xl: 1rem;        /* 16px */
    --radius-2xl: 1.25rem;    /* 20px - Card Standard */
    --radius-3xl: 1.5rem;     /* 24px - Modal */
    --radius-pill: 1.875rem;  /* 30px - Buttons */
    --radius-full: 9999px;    /* Circular */
    
    /* ═══════════════════════════════════════════════════════════
       🎭 SHADOWS & GLASS EFFECTS
       ═══════════════════════════════════════════════════════════ */
    
    --shadow-sm: 0 1px 2px 0 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-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --shadow-glow-orange: 0 0 20px rgba(255, 107, 0, 0.3);
    
    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-light: rgba(255, 255, 255, 0.15);
    --glass-bg-heavy: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);
    --glass-blur-heavy: blur(20px);
    
    /* Dark Mode Glass */
    --dark-glass-bg: rgba(30, 41, 59, 0.6);
    --dark-glass-border: rgba(255, 255, 255, 0.1);
    
    /* ═══════════════════════════════════════════════════════════
       ✒️ TYPOGRAPHY
       ═══════════════════════════════════════════════════════════ */
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-display: 'Poppins', 'Inter', sans-serif;
    --font-mono: 'Monaco', 'Consolas', 'Courier New', monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;       /* 12px */
    --text-sm: 0.875rem;      /* 14px */
    --text-base: 1rem;        /* 16px */
    --text-lg: 1.125rem;      /* 18px */
    --text-xl: 1.25rem;       /* 20px */
    --text-2xl: 1.5rem;       /* 24px */
    --text-3xl: 1.875rem;     /* 30px */
    --text-4xl: 2.25rem;      /* 36px */
    --text-5xl: 3rem;         /* 48px */
    --text-6xl: 3.75rem;      /* 60px */
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* ═══════════════════════════════════════════════════════════
       ⚡ TRANSITIONS & ANIMATIONS
       ═══════════════════════════════════════════════════════════ */
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* ═══════════════════════════════════════════════════════════
       📐 LAYOUT DIMENSIONS
       ═══════════════════════════════════════════════════════════ */
    
    --header-height: 64px;
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 72px;
    --container-max-width: 1400px;
    
    /* ═══════════════════════════════════════════════════════════
       🎚️ Z-INDEX LAYERS
       ═══════════════════════════════════════════════════════════ */
    
    --z-base: 0;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-notification: 1080;
}

/* ═══════════════════════════════════════════════════════════
   🌙 DARK MODE VARIABLES
   ═══════════════════════════════════════════════════════════ */

[data-theme="dark"] {
    --bg-app: var(--dark-bg-app);
    --bg-surface: var(--dark-bg-surface);
    --bg-elevated: var(--dark-bg-elevated);
    --text-primary: var(--dark-text-primary);
    --text-secondary: var(--dark-text-secondary);
    --text-tertiary: var(--dark-text-tertiary);
    --primary: var(--primary-light);
    --accent-gradient: var(--dark-accent-gradient);
    
    --glass-bg: var(--dark-glass-bg);
    --glass-border: var(--dark-glass-border);
}

/* ═══════════════════════════════════════════════════════════
   🎯 GLOBAL RESET & BASE STYLES
   ═══════════════════════════════════════════════════════════ */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--bg-app);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Light Mode Background */
body {
    background: var(--bg-app);
}

/* Dark Mode Background with Gradient */
[data-theme="dark"] body {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    background-attachment: fixed;
}

/* Subtle Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════
   🔤 TYPOGRAPHY STYLES
   ═══════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* ═══════════════════════════════════════════════════════════
   🎯 LAYOUT COMPONENTS
   ═══════════════════════════════════════════════════════════ */

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

/* Grid System - 12 Column */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* Grid Shorthand Classes (with built-in display and gap) */
.grid-1 { 
    display: grid; 
    grid-template-columns: repeat(1, minmax(0, 1fr)); 
    gap: var(--space-6); 
}
.grid-2 { 
    display: grid; 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: var(--space-6); 
}
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    gap: var(--space-6); 
}
.grid-4 { 
    display: grid; 
    grid-template-columns: repeat(4, minmax(0, 1fr)); 
    gap: var(--space-6); 
}
.grid-6 { 
    display: grid; 
    grid-template-columns: repeat(6, minmax(0, 1fr)); 
    gap: var(--space-6); 
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }


/* ═══════════════════════════════════════════════════════════
   👑 HEADER BAR (Fixed Top)
   ═══════════════════════════════════════════════════════════ */

.header-bar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-8);
    transition: all var(--transition-base);
}

[data-theme="dark"] .header-bar {
    background: var(--dark-glass-bg);
    border-bottom-color: var(--dark-glass-border);
}

/* Logo in Header */
.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    font-size: var(--text-xl);
    color: var(--primary);
    position: relative;
}

.header-logo .accent-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: 50%;
    box-shadow: var(--shadow-glow-orange);
    position: absolute;
    top: -4px;
    right: 20px;
}

/* Global Search */
.global-search {
    flex: 1;
    max-width: 500px;
    margin: 0 var(--space-8);
}

.search-input {
    width: 100%;
    padding: var(--space-3) var(--space-6);
    padding-left: var(--space-12);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    backdrop-filter: var(--glass-blur);
}

.search-input:focus {
    outline: none;
    background: var(--glass-bg-light);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Notification Bell */
.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.notification-bell:hover {
    background: var(--glass-bg-light);
    transform: scale(1.05);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* Theme Switcher */
.theme-switcher {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
}

.theme-switcher:hover {
    background: var(--glass-bg-light);
    transform: rotate(180deg);
}

/* Profile Avatar Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: var(--glass-bg);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid transparent;
}

.profile-trigger:hover {
    background: var(--glass-bg-light);
    border-color: var(--glass-border);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   📑 SIDEBAR NAVIGATION
   ═══════════════════════════════════════════════════════════ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--primary);
    background: linear-gradient(180deg, var(--primary-600) 0%, var(--primary-800) 100%);
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    overflow: hidden;
    transition: all var(--transition-medium);
}

[data-theme="dark"] .sidebar {
    background: linear-gradient(180deg, var(--primary-500) 0%, var(--primary-700) 100%);
}

/* Sidebar Header */
.sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: white;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    text-decoration: none;
    transition: all var(--transition-base);
}

.sidebar-logo:hover {
    transform: scale(1.02);
}

.sidebar-logo-icon {
    font-size: var(--text-2xl);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
}

/* Nav Section */
.nav-section {
    margin-bottom: var(--space-6);
}

.nav-section-title {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-2) var(--space-4);
    margin-bottom: var(--space-2);
}

/* Nav Items */
.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: var(--font-medium);
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    margin-bottom: var(--space-1);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left var(--transition-medium);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(4px) scale(1.02);
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: var(--font-semibold);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.nav-icon {
    font-size: var(--text-lg);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Sidebar Collapse */
.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-logo span,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .nav-section-title {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   📄 MAIN CONTENT AREA
   ═══════════════════════════════════════════════════════════ */

/* Top Bar */
.topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    z-index: var(--z-sticky);
    transition: left var(--transition-medium);
}

[data-theme="dark"] .topbar {
    background: rgba(15, 23, 42, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.main-wrapper {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    position: relative;
    transition: margin-left var(--transition-medium);
}

.main-content {
    padding: var(--space-8);
    position: relative;
    min-height: 100vh;
}

/* Wave Overlay at Top */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

/* Page Header */
.page-header {
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

[data-theme="dark"] .page-title {
    color: white;
}

.page-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    font-weight: var(--font-normal);
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
}

.page-breadcrumb a {
    color: var(--primary);
    transition: color var(--transition-fast);
}

.page-breadcrumb a:hover {
    color: var(--primary-light);
}


/* ═══════════════════════════════════════════════════════════
   🎴 CARD COMPONENTS
   ═══════════════════════════════════════════════════════════ */

/* Base Glass Card */
.card {
    background: var(--bg-surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .card {
    background: var(--dark-bg-surface);
    border-color: var(--dark-glass-border);
}

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

/* Glass Card (Frosted Effect) */
.glass-card {
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-medium);
    position: relative;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-2xl);
    transform: translateY(-4px);
}

/* Glass Panel (Alternative Card Style) */
.glass-panel {
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    transition: all var(--transition-base);
    display: block;
    color: var(--text-primary);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

/* Glass Panel - Ensure text visibility */
.glass-panel div {
    color: inherit;
}

[data-theme="dark"] .glass-panel {
    color: white;
}

[data-theme="dark"] .glass-panel:hover {
    color: white;
}

/* Card with Gradient Border */
.card-gradient-border {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card-gradient-border:hover::before {
    opacity: 1;
}

/* Hero Summary Cards (KPI) */
.kpi-card {
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--glass-border);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-spring);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .kpi-card {
    background: var(--dark-glass-bg);
    border-color: var(--dark-glass-border);
}

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

.kpi-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

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

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

.kpi-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    color: white;
    font-size: var(--text-2xl);
    box-shadow: var(--shadow-glow-orange);
}

.kpi-value {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-2);
    font-family: var(--font-display);
}

[data-theme="dark"] .kpi-value {
    color: white;
}

.kpi-label {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-change {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-pill);
}

.kpi-change.positive {
    color: var(--success);
    background: var(--success-bg);
}

.kpi-change.negative {
    color: var(--danger);
    background: var(--danger-bg);
}

/* Mini Sparkline in Cards */
.kpi-sparkline {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    width: 100px;
    height: 40px;
    opacity: 0.3;
}

/* Project Card */
.project-card {
    background: var(--bg-surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    display: flex;
    gap: var(--space-6);
    align-items: center;
}

[data-theme="dark"] .project-card {
    background: var(--dark-bg-surface);
    border-color: var(--dark-glass-border);
}

.project-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
    transform: scale(1.01);
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
}

.project-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--radius-xl);
    font-size: var(--text-3xl);
    flex-shrink: 0;
    transition: all var(--transition-spring);
}

[data-theme="dark"] .project-icon {
    background: rgba(59, 130, 246, 0.1);
}

.project-details {
    flex: 1;
}

.project-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.project-meta {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.project-progress {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-2);
}

[data-theme="dark"] .project-progress {
    background: var(--gray-700);
}

.project-progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.project-actions {
    display: flex;
    gap: var(--space-2);
}

/* ═══════════════════════════════════════════════════════════
   🔘 BUTTONS
   ═══════════════════════════════════════════════════════════ */

/* Base Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    font-family: var(--font-primary);
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

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

/* Gradient Sheen Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-medium);
}

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

/* Primary Button (Blue) */
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-2px);
}

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

/* CTA Button (Orange Gradient) */
.btn-cta {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow-md), var(--shadow-glow-orange);
}

.btn-cta:hover {
    background: var(--accent-gradient-hover);
    box-shadow: var(--shadow-xl), var(--shadow-glow-orange);
    transform: translateY(-2px) scale(1.02);
}

/* Secondary Button */
.btn-secondary {
    background: var(--gray-100);
    color: var(--text-primary);
    border: 1px solid var(--gray-300);
}

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

[data-theme="dark"] .btn-secondary {
    background: var(--gray-700);
    color: white;
    border-color: var(--gray-600);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--gray-600);
}

/* Success Button */
.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: var(--success-light);
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.3);
}

/* Danger Button */
.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-light);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

/* Outline Buttons */
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
}

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

[data-theme="dark"] .btn-ghost:hover {
    background: var(--gray-800);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

/* Icon Button */
.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-lg {
    width: 48px;
    height: 48px;
}

/* Glass Button */
.btn-glass {
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Glass Button Alias (alternative naming) */
.glass-button {
    background: var(--glass-bg-heavy);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.glass-button-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.glass-button-primary:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.glass-button-cta {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.glass-button-cta:hover {
    background: var(--accent-gradient-hover);
    box-shadow: var(--shadow-xl), var(--shadow-glow-orange);
}

.glass-button-orange {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.glass-button-orange:hover {
    background: var(--accent-gradient-hover);
    box-shadow: var(--shadow-xl), var(--shadow-glow-orange);
    transform: translateY(-2px);
}

[data-theme="dark"] .glass-button {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .glass-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   📝 FORM ELEMENTS
   ═══════════════════════════════════════════════════════════ */

/* Form Group */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

/* Input Fields */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-textarea {
    background: var(--dark-bg-surface);
    border-color: var(--gray-700);
    color: white;
}

/* Textarea */
.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox & Radio */
.form-checkbox,
.form-radio {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   🏷️ BADGES & STATUS INDICATORS
   ═══════════════════════════════════════════════════════════ */

/* Badge Base */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

/* Status Badges */
.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
}

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

/* Platform Badges */
.badge-platform {
    color: white;
    font-weight: var(--font-bold);
    padding: var(--space-2) var(--space-4);
}

.badge-facebook {
    background: var(--platform-facebook);
}

.badge-instagram {
    background: var(--platform-instagram-gradient);
}

.badge-linkedin {
    background: var(--platform-linkedin);
}

.badge-x,
.badge-twitter {
    background: var(--platform-x);
    color: var(--platform-x-text);
}

.badge-youtube {
    background: var(--platform-youtube);
}

/* Status Dots */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    display: inline-block;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-dot.active {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2);
}

.status-dot.pending {
    background: var(--warning);
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.2);
}

.status-dot.error {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
}

.status-dot.offline {
    background: var(--gray-400);
    animation: none;
}


/* ═══════════════════════════════════════════════════════════
   🪟 MODALS & OVERLAYS
   ═══════════════════════════════════════════════════════════ */

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    animation: fadeIn var(--transition-medium);
}

/* Modal Container */
.modal {
    background: var(--bg-surface);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp var(--transition-medium) ease-out;
}

[data-theme="dark"] .modal {
    background: var(--dark-bg-surface);
    border: 1px solid var(--dark-glass-border);
}

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

[data-theme="dark"] .modal-header {
    border-bottom-color: var(--gray-700);
}

.modal-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.modal-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--space-6);
}

.modal-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

[data-theme="dark"] .modal-footer {
    border-top-color: var(--gray-700);
}

/* ═══════════════════════════════════════════════════════════
   📊 TABLES
   ═══════════════════════════════════════════════════════════ */

.table-container {
    background: var(--bg-surface);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

[data-theme="dark"] .table-container {
    background: var(--dark-bg-surface);
    border-color: var(--dark-glass-border);
}

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

.table thead {
    background: var(--gray-50);
}

[data-theme="dark"] .table thead {
    background: var(--gray-800);
}

.table th {
    padding: var(--space-4) var(--space-6);
    text-align: left;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
}

[data-theme="dark"] .table th {
    border-bottom-color: var(--gray-700);
}

.table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background var(--transition-fast);
}

[data-theme="dark"] .table tbody tr {
    border-bottom-color: var(--gray-700);
}

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

[data-theme="dark"] .table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

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

.table td {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   👤 AVATARS
   ═══════════════════════════════════════════════════════════ */

.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

.avatar-2xl {
    width: 120px;
    height: 120px;
}

/* Avatar with Status Ring */
.avatar-status {
    position: relative;
    display: inline-block;
}

.avatar-status::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    border: 2px solid white;
}

.avatar-status.online::after {
    background: var(--success);
    box-shadow: 0 0 0 2px var(--success);
}

.avatar-status.away::after {
    background: var(--warning);
    box-shadow: 0 0 0 2px var(--warning);
}

.avatar-status.offline::after {
    background: var(--gray-400);
}

/* Avatar Group */
.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group .avatar {
    margin-left: -12px;
    transition: all var(--transition-base);
}

.avatar-group .avatar:first-child {
    margin-left: 0;
}

.avatar-group .avatar:hover {
    transform: translateY(-4px);
    z-index: 10;
}

/* ═══════════════════════════════════════════════════════════
   📈 PROGRESS BARS
   ═══════════════════════════════════════════════════════════ */

.progress {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .progress {
    background: var(--gray-700);
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.progress-bar.gradient {
    background: var(--accent-gradient);
}

.progress-bar.success {
    background: var(--success);
}

.progress-bar.warning {
    background: var(--warning);
}

.progress-bar.danger {
    background: var(--danger);
}

/* Progress Bar with Animation */
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Circular Progress */
.progress-circle {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: conic-gradient(var(--primary) 0deg, var(--gray-200) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--bg-surface);
    border-radius: var(--radius-full);
}

.progress-circle-value {
    position: relative;
    z-index: 1;
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
}

/* ═══════════════════════════════════════════════════════════
   🎨 TOOLTIPS & POPOVERS
   ═══════════════════════════════════════════════════════════ */

.tooltip {
    position: absolute;
    z-index: var(--z-tooltip);
    background: var(--gray-900);
    color: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: all var(--transition-base);
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--gray-900);
}

/* ═══════════════════════════════════════════════════════════
   🔔 NOTIFICATIONS & ALERTS
   ═══════════════════════════════════════════════════════════ */

.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    animation: slideIn var(--transition-medium);
}

.alert-icon {
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-1);
}

.alert-message {
    font-size: var(--text-sm);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

.alert-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-info {
    background: var(--info-bg);
    color: var(--info);
    border-left: 4px solid var(--info);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: var(--space-8);
    right: var(--space-8);
    z-index: var(--z-notification);
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    padding: var(--space-4);
    animation: slideInRight var(--transition-spring);
}

[data-theme="dark"] .toast {
    background: var(--dark-bg-surface);
    border: 1px solid var(--dark-glass-border);
}

/* ═══════════════════════════════════════════════════════════
   📅 CALENDAR & DATE PICKER
   ═══════════════════════════════════════════════════════════ */

.calendar {
    background: var(--bg-surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
}

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

.calendar-month {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-2);
}

.calendar-day-label {
    text-align: center;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    padding: var(--space-2);
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.calendar-day:hover {
    background: var(--primary-50);
}

.calendar-day.selected {
    background: var(--primary);
    color: white;
}

.calendar-day.today {
    border: 2px solid var(--primary);
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
}

/* ═══════════════════════════════════════════════════════════
   📱 SOCIAL MEDIA POST CARDS
   ═══════════════════════════════════════════════════════════ */

.post-card {
    background: var(--bg-surface);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-medium);
    border: 1px solid var(--gray-200);
}

[data-theme="dark"] .post-card {
    background: var(--dark-bg-surface);
    border-color: var(--dark-glass-border);
}

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

.post-card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.post-card-body {
    padding: var(--space-5);
}

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

.post-card-platform {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.post-card-caption {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.post-card-meta {
    display: flex;
    gap: var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.post-card-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
}

[data-theme="dark"] .post-card-actions {
    border-top-color: var(--gray-700);
}

/* ═══════════════════════════════════════════════════════════
   🎬 ANIMATIONS & KEYFRAMES
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 16px;
    margin-bottom: var(--space-2);
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: var(--space-4);
}

.skeleton-circle {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}

/* Confetti (Success Animation) */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
    }
}


/* ═══════════════════════════════════════════════════════════
   🌐 PLATFORM-SPECIFIC COMPONENTS
   ═══════════════════════════════════════════════════════════ */

/* Platform Grid for Social Accounts */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}

.platform-card {
    display: flex;
    align-items: center;
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-50), transparent);
    opacity: 0;
    transition: opacity 0.3s var(--transition-smooth);
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

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

.platform-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.platform-info {
    flex: 1;
    margin-left: var(--space-4);
    position: relative;
    z-index: 1;
}

.platform-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-1) 0;
    font-family: var(--font-display);
}

.platform-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.platform-action {
    color: var(--text-tertiary);
    font-size: 18px;
    position: relative;
    z-index: 1;
    transition: all 0.3s var(--transition-smooth);
}

.platform-card:hover .platform-action {
    color: var(--primary);
    transform: translateX(4px);
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.platform-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.account-info {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.action-buttons {
    display: flex;
    gap: var(--space-2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-8);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    position: relative;
}

.empty-state-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed var(--primary-200);
    opacity: 0.5;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-family: var(--font-display);
}

.empty-state-text {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════════
   📱 RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════ */

/* Tablet (768px - 1279px) */
@media (max-width: 1279px) and (min-width: 768px) {
    .header-bar {
        left: var(--sidebar-collapsed-width);
    }
    
    .topbar {
        left: var(--sidebar-collapsed-width);
    }
    
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }
    
    .sidebar-logo span,
    .nav-item span,
    .nav-section-title {
        display: none;
    }
    
    .main-wrapper {
        margin-left: var(--sidebar-collapsed-width);
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .global-search {
        max-width: 300px;
    }
}

/* Mobile (≤ 767px) */
@media (max-width: 767px) {
    :root {
        --header-height: 56px;
    }
    
    /* Sidebar becomes drawer */
    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-medium);
        border-radius: 0;
        width: 80%;
        max-width: 300px;
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-2xl);
    }
    
    /* Header adjustments */
    .header-bar {
        left: 0;
        padding: 0 var(--space-4);
        height: 56px;
    }
    
    .topbar {
        left: 0;
        height: 56px;
        padding: 0 var(--space-4);
    }
    
    .header-logo {
        font-size: var(--text-lg);
    }
    
    .global-search {
        display: none;
    }
    
    .header-actions {
        gap: var(--space-2);
    }
    
    /* Main content */
    .main-wrapper {
        margin-left: 0;
        margin-top: 56px;
    }
    
    .main-content {
        padding: var(--space-4);
    }
    
    .page-title {
        font-size: var(--text-2xl);
    }
    
    /* Grid to single column */
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-6,
    .grid-cols-12 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-6 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .platform-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    /* Cards */
    .kpi-card {
        padding: var(--space-5);
    }
    
    .kpi-value {
        font-size: var(--text-3xl);
    }
    
    /* Project cards stack */
    .project-card {
        flex-direction: column;
        text-align: center;
    }
    
    .project-actions {
        justify-content: center;
    }
    
    /* Buttons full width */
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    /* Modal */
    .modal {
        margin: var(--space-4);
        max-width: calc(100% - var(--space-8));
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--space-4);
    }
    
    /* Tables scroll horizontally */
    .table-container {
        overflow-x: auto;
    }
    
    .table {
        min-width: 600px;
    }
    
    /* Toast notifications */
    .toast {
        left: var(--space-4);
        right: var(--space-4);
        top: auto;
        bottom: var(--space-8);
    }
    
    /* Typography adjustments */
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }
    
    /* Reduce animations on mobile */
    * {
        animation-duration: 0.2s !important;
    }
}

/* Extra small devices (≤ 375px) */
@media (max-width: 375px) {
    .kpi-value {
        font-size: var(--text-2xl);
    }
    
    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-xs);
    }
}

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .main-content {
        padding: var(--space-3);
    }
}

/* ═══════════════════════════════════════════════════════════
   🧰 UTILITY CLASSES
   ═══════════════════════════════════════════════════════════ */

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Width & Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }

/* Spacing - Margin */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }
.m-auto { margin: auto; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.ml-0 { margin-left: 0; }
.ml-auto { margin-left: auto; }
.mr-0 { margin-right: 0; }
.mr-auto { margin-right: auto; }

/* Spacing - Padding */
.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Font Weights */
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

/* Font Sizes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

/* Text Colors */
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-white { color: white; }
.text-gray { color: var(--text-secondary); }

/* Semantic Text Colors */
.text-primary-color { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-muted { color: var(--text-tertiary); opacity: 0.7; }

/* Background Colors */
.bg-primary { background: var(--primary); }
.bg-success { background: var(--success); }
.bg-warning { background: var(--warning); }
.bg-danger { background: var(--danger); }
.bg-info { background: var(--info); }
.bg-white { background: white; }
.bg-transparent { background: transparent; }

/* Border Radius */
.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-default { cursor: default; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* Transform */
.scale-100 { transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }

/* Transitions */
.transition { transition: all var(--transition-base); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }

/* ═══════════════════════════════════════════════════════════
   🎯 SPECIAL COMPONENTS
   ═══════════════════════════════════════════════════════════ */

/* Gradient Text */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Effect */
.glow {
    box-shadow: var(--shadow-glow);
}

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

/* Divider */
.divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--space-6) 0;
}

[data-theme="dark"] .divider {
    background: var(--gray-700);
}

/* Backdrop Blur */
.backdrop-blur {
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

/* Truncate Text */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
}

@media (max-width: 767px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* Hide on Mobile */
.hide-mobile {
    display: block;
}

@media (max-width: 767px) {
    .hide-mobile {
        display: none;
    }
}

/* Show only on Mobile */
.show-mobile {
    display: none;
}

@media (max-width: 767px) {
    .show-mobile {
        display: block;
    }
}

/* ═══════════════════════════════════════════════════════════
   🎪 LOADING STATES & PLACEHOLDERS
   ═══════════════════════════════════════════════════════════ */

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.loading-dots {
    display: flex;
    gap: var(--space-2);
}

.loading-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: var(--radius-full);
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
}

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

.empty-state-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-state-message {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

/* ═══════════════════════════════════════════════════════════
   🎨 BRAND IDENTITY ELEMENTS
   ═══════════════════════════════════════════════════════════ */

/* LetsManage Hub Logo Treatment */
.brand-logo {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    font-size: var(--text-2xl);
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.brand-logo .accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-logo::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -8px;
    width: 8px;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-glow-orange);
    animation: pulse 2s infinite;
}

/* Module Loading Cube */
.loading-cube {
    width: 40px;
    height: 40px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 2s infinite linear;
}

.loading-cube::before,
.loading-cube::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--accent-start);
    border-radius: var(--radius-md);
}

.loading-cube::before {
    transform: rotateY(0deg) translateZ(20px);
}

.loading-cube::after {
    transform: rotateY(90deg) translateZ(20px);
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════
   ✨ ACCESSIBILITY
   ═══════════════════════════════════════════════════════════ */

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    * {
        border-color: currentColor !important;
    }
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   🎉 PRODUCTION READY POLISH
   ═══════════════════════════════════════════════════════════ */

/* Print Styles */
@media print {
    .sidebar,
    .header-bar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .main-wrapper {
        margin: 0;
    }
    
    .card {
        page-break-inside: avoid;
    }
}

/* Selection Highlight */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
    border: 3px solid var(--gray-100);
}

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

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--gray-900);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-color: var(--gray-900);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* ═══════════════════════════════════════════════════════════
   🔧 SIDEBAR TEXT FIX - Always White Regardless of Theme
   ═══════════════════════════════════════════════════════════ */

.sidebar,
.sidebar *,
.sidebar .nav-item,
.sidebar .nav-item span,
.sidebar .sidebar-logo,
.sidebar .sidebar-logo span,
.sidebar .nav-section-title {
    color: white !important;
}

.nav-item {
    color: rgba(255, 255, 255, 0.85) !important;
}

.nav-item:hover,
.nav-item.active {
    color: white !important;
}

/* ═══════════════════════════════════════════════════════════
   🏁 END OF THEME
   Version: 2.0 Production Ready
   Created: November 2025
   
   THEME INCLUDES:
   ✅ Complete color system (Light & Dark mode)
   ✅ Comprehensive typography
   ✅ Layout components (Header, Sidebar, Content)
   ✅ Card variations (Glass, KPI, Project, Post)
   ✅ All button styles with micro-interactions
   ✅ Form elements
   ✅ Badges & status indicators
   ✅ Modals & overlays
   ✅ Tables
   ✅ Avatars with status rings
   ✅ Progress bars (linear & circular)
   ✅ Tooltips & alerts
   ✅ Calendar component
   ✅ Social media post cards
   ✅ Animations & keyframes
   ✅ Complete responsive design (Mobile, Tablet, Desktop)
   ✅ Utility classes
   ✅ Loading states
   ✅ Accessibility features
   ✅ Print styles
   ✅ Updated X (Twitter) branding
   
   Ready for Production Deployment! 🚀
   ═══════════════════════════════════════════════════════════ */
