/**
 * Nexus Core Platform - Enterprise Global Styles & Bespoke Brand Identity
 * Theme: Modern Crisp Light with Sacred Royal Bhagwa (Saffron) Accents
 * File: public/css/style.css
 * Version: 3.0.0 Enterprise Light Edition
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --nexus-bg: #F8FAFC;
    --nexus-card-bg: #FFFFFF;
    --nexus-border: #E2E8F0;
    --nexus-border-hover: #CBD5E1;
    --nexus-text-main: #0F172A;
    --nexus-text-muted: #64748B;
    
    /* Sacred Royal Bhagwa / Saffron Palette */
    --bhagwa-primary: #EA580C;
    --bhagwa-bright: #FF5F00;
    --bhagwa-deep: #D9480F;
    --bhagwa-gradient: linear-gradient(135deg, #FF5F00 0%, #EA580C 50%, #D9480F 100%);
    --bhagwa-gradient-subtle: linear-gradient(135deg, rgba(255, 95, 0, 0.08) 0%, rgba(234, 88, 12, 0.04) 100%);
    --bhagwa-glow: 0 10px 25px -5px rgba(234, 88, 12, 0.35);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--nexus-bg);
    color: var(--nexus-text-main);
    overflow-x: hidden;
}

/* 1. Customized Sleek Royal Bhagwa Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 9999px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #EA580C;
}

/* 2. Frosted White Glassmorphism & Card Surfaces */
.glass {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
}

.glass-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 4px -2px rgba(15, 23, 42, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    border-color: rgba(234, 88, 12, 0.4);
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(234, 88, 12, 0.1);
    transform: translateY(-2px);
}

.glass-card-accent {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFFFFF 100%);
    border: 1px solid rgba(234, 88, 12, 0.3);
    box-shadow: 0 8px 25px -4px rgba(234, 88, 12, 0.08);
}

/* 3. Royal Bhagwa (Saffron) Signature Utilities */
.btn-bhagwa {
    background: var(--bhagwa-gradient);
    color: #FFFFFF;
    font-weight: 800;
    box-shadow: 0 10px 20px -5px rgba(234, 88, 12, 0.35);
    transition: all 0.25s ease;
}

.btn-bhagwa:hover {
    background: linear-gradient(135deg, #FF6B10 0%, #F06216 50%, #E04E15 100%);
    box-shadow: 0 14px 28px -5px rgba(234, 88, 12, 0.45);
    transform: translateY(-1.5px);
}

.btn-bhagwa-subtle {
    background: #FFF7ED;
    color: #EA580C;
    border: 1px solid rgba(234, 88, 12, 0.25);
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-bhagwa-subtle:hover {
    background: #FFEDD5;
    border-color: rgba(234, 88, 12, 0.5);
    color: #C2410C;
}

.badge-bhagwa {
    background: #FFF7ED;
    color: #EA580C;
    border: 1px solid rgba(234, 88, 12, 0.3);
    font-weight: 800;
}

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

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

/* 4. Active Sidebar Tab Highlighting */
.sidebar-link {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: #475569;
}

.sidebar-link:hover {
    background-color: #F8FAFC;
    color: #0F172A;
}

.sidebar-link.active {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    color: #EA580C;
    font-weight: 800;
    border-left: 3px solid #EA580C;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
}

/* 5. Richind Left Sidebar Responsive Drawer */
.sidebar-wrapper {
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 1023px) {
    .sidebar-mobile-hidden {
        transform: translateX(-100%);
    }
    .sidebar-mobile-visible {
        transform: translateX(0);
    }
}

/* 6. Floating Toast Notification System (Crisp White + Accent Border) */
#nexus-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.nexus-toast {
    pointer-events: auto;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(20px);
    transform: translateY(60px) scale(0.95);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nexus-toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.nexus-toast-success {
    background: #FFFFFF;
    color: #065F46;
    border: 1px solid #10B981;
    border-left: 4px solid #10B981;
}

.nexus-toast-error {
    background: #FFFFFF;
    color: #991B1B;
    border: 1px solid #EF4444;
    border-left: 4px solid #EF4444;
}

.nexus-toast-info {
    background: #FFFFFF;
    color: #9A3412;
    border: 1px solid #EA580C;
    border-left: 4px solid #EA580C;
}

/* 7. Button Submitting Guard */
button.is-submitting {
    pointer-events: none !important;
    opacity: 0.65 !important;
    cursor: wait !important;
}

/* 8. Light Shimmer Animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite;
}
