/* Import Lexend Deca, Inter & Premium Typography from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Lexend+Deca:wght@300;400;500;600;700;800&display=swap');

/* Dynamic Linear Light Mode Design System Root Tokens */
:root {
    --primary: #165DFF;
    --primary-hover: #0E4BD9;
    --primary-glow: rgba(22, 93, 255, 0.15);
    
    --background-base: #F8FAFC;
    --background-elevated: #FFFFFF;
    --surface: rgba(255, 255, 255, 0.85);
    --surface-hover: rgba(255, 255, 255, 0.95);
    
    --foreground: #0F172A;
    --secondary: #64748B;
    --muted: #F1F5F9;
    --border: #E2E8F0;
    --border-hover: rgba(22, 93, 255, 0.3);
    
    --card-grey: #F8FAFC;
    --success: #10B981;
    --success-light: #ECFDF5;
    --error: #EF4444;
    --error-light: #FEF2F2;
    --warning: #F59E0B;
    --warning-light: #FFFBEB;
    --info: #3B82F6;
    --info-light: #EFF6FF;

    --font-sans: 'Inter', 'Lexend Deca', system-ui, -apple-system, sans-serif;
    --font-heading: 'Lexend Deca', 'Inter', sans-serif;
}

html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    width: 100%;
}

body {
    background-color: var(--background-base);
    color: var(--foreground);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Hide Utility */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Subtle Ambient Noise Texture Overlay */
.organic-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.015;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Headings typography mapping */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Linear Multi-Layer Shadows (Light Mode) */
.shadow-linear {
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05), 0 2px 16px -2px rgba(15, 23, 42, 0.06), 0 0 30px -5px rgba(22, 93, 255, 0.04);
}

.shadow-linear-hover {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shadow-linear-hover:hover {
    box-shadow: 0 0 0 1px rgba(22, 93, 255, 0.25), 0 12px 32px -4px rgba(22, 93, 255, 0.12), 0 0 50px -10px rgba(22, 93, 255, 0.15);
    transform: translateY(-3px);
}

.shadow-glow-primary {
    box-shadow: 0 0 0 1px rgba(22, 93, 255, 0.4), 0 4px 16px rgba(22, 93, 255, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

/* Linear Glassmorphism Card Surface */
.linear-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.25rem;
}

.linear-card-hover {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.linear-card-hover:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(22, 93, 255, 0.3);
    box-shadow: 0 10px 30px -5px rgba(22, 93, 255, 0.1);
    transform: translateY(-2px);
}

/* Gradient Text Treatment */
.gradient-text-dark {
    background: linear-gradient(180deg, #0F172A 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-primary {
    background: linear-gradient(135deg, #165DFF 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animated Ambient Blobs (Light Mode) */
@keyframes floatBlob {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(3deg); }
}

.ambient-blob {
    animation: floatBlob 10s ease-in-out infinite;
}

/* Desktop containers constraint */
.desktop-ramped {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.admin-desktop-ramped {
    max-width: 1380px;
    margin-left: auto;
    margin-right: auto;
}
