:root {
    /* Color Palette - DASH UI Dashboard Theme */
    --accent-vibrant: #0066FF; /* Primary Royal Blue */
    --accent-vibrant-light: #388BFD;
    --accent-cyan: #00D2FF;
    --accent-magenta: #EC4899;
    --accent-green: #10B981;
    --primary-bg: #F4F6F9; /* Clean soft light gray-blue */
    --sidebar-bg: #0D1537; /* Deep Navy Blue */
    --sidebar-text-muted: #8E9BB0;
    --header-bg: #FFFFFF; /* Pure White Header */
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--primary-bg);
    color: #1E293B;
    overflow-x: hidden;
}

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

/* Sidebar - DASH UI Deep Navy */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    color: white;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header .brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-header .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00D2FF, #0066FF);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.4);
}

.sidebar-nav {
    padding: 0 0.85rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.1rem;
    color: var(--sidebar-text-muted) !important;
    border-radius: 12px;
    margin-bottom: 0.4rem;
    transition: var(--transition-smooth);
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #FFFFFF !important;
    transform: translateX(4px);
}

.nav-link.active {
    background: var(--accent-vibrant) !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.35);
}

.nav-link .icon {
    font-size: 1.2rem;
    margin-right: 0.85rem;
    width: 24px;
    text-align: center;
}

/* Main Content Area */
.content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--primary-bg);
}

/* Topbar - DASH UI Crisp White */
.topbar {
    height: 70px;
    background: var(--header-bg) !important;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    color: #0F172A !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.societe-libelle {
    font-weight: 700;
    font-size: 1.2rem;
    color: #0F172A;
    letter-spacing: -0.01em;
}

/* Premium Buttons - DASH Blue */
.btn-primary {
    background-color: var(--accent-vibrant);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    color: #FFFFFF;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover, #0052CC);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 102, 255, 0.3);
    color: #FFFFFF;
}

.btn-outline-primary {
    color: var(--accent-vibrant);
    border-color: var(--accent-vibrant);
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-outline-primary:hover {
    background-color: var(--accent-vibrant);
    border-color: var(--accent-vibrant);
    color: #FFFFFF;
}

/* Card Overhaul - Pure White Cards */
.card {
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    background: #FFFFFF;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(15, 23, 42, 0.08);
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        height: 100vh;
        z-index: 1000;
    }
    
    .sidebar.open {
        left: 0;
    }
}

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 21, 55, 0.5);
    backdrop-filter: blur(4px);
    z-index: 950;
    display: block;
}

/* Login Page Specific Styling */
.login-wrapper {
    position: relative;
    height: 100vh;
    width: 100vw;
    background: linear-gradient(135deg, #0D1537 0%, #0066FF 100%);
    overflow: hidden;
}

.login-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("https://images.unsplash.com/photo-1557683316-973673baf926?q=80&w=2000&auto=format&fit=crop") no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    z-index: 1;
}

.login-card {
    z-index: 2;
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.text-gradient {
    background: linear-gradient(to right, #0066FF, #00D2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--accent-vibrant);
}

.user-badge {
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    font-weight: 500;
    color: #334155;
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* Product Grid & Cards Redesign */
.catalog-container {
    background: #F4F6F9;
    min-height: calc(100vh - 70px);
}

.product-premium-card {
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #E2E8F0 !important;
}

.product-premium-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 102, 255, 0.12), 0 10px 10px -5px rgba(0, 102, 255, 0.04) !important;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 99px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.text-vibrant {
    color: var(--accent-vibrant);
}

.bg-light-success {
    background: #ECFDF5;
    color: #065F46;
}

.bg-light-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.premium-combo .dxbl-input-text {
    border-radius: 12px !important;
    border: 1px solid #E2E8F0 !important;
    background: #F8FAFC !important;
    padding: 0.6rem 1rem !important;
}

.text-xs {
    font-size: 0.7rem;
}


