@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');
/* NOTE: modern-grid.css and modern-forms.css are loaded via AddFilePaths() in App.razor
   for proper cache-busting with DevExpress theme system. Do not import them here.
   Fonts (Montserrat, JetBrains Mono, etc.) are also loaded via App.razor <link> tags. */

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL FONTS
   ═══════════════════════════════════════════════════════════════════════════

   Font Strategy:
   1. dx-theme-overrides.css sets --dxds-font-family-sans-serif for DevExpress
      components that support the design system variable cascade.
   2. This file provides fallback coverage for:
      - Non-DevExpress elements (html, body, .card)
      - DevExpress components that don't fully inherit from --dxds-* variables
      - The catch-all [class*="dxbl-"] ensures complete coverage

   The !important is necessary because DevExpress sets font-family directly
   on some components. Both approaches work together for full coverage.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --font-family-base: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;
}

html,
body,
.dxbl-grid,
.dxbl-text-edit,
.dxbl-btn,
.dxbl-menu,
.dxbl-tabs,
.dxbl-popup,
.dxbl-dropdown,
.dxbl-form-layout,
.dxbl-checkbox,
.dxbl-combo-box,
.dxbl-date-edit,
.dxbl-spin-edit,
.dxbl-memo,
.dxbl-tag-box,
.dxbl-pager,
.dxbl-toolbar,
.dxbl-toast,
.dxbl-modal,
.card,
[class*="dxbl-"]:not(.oi):not([class*="dxbl-image"]) {
    font-family: var(--font-family-base) !important;
}

/* Preserve Open Iconic font for icons */
.oi,
[class^="oi-"],
[class*=" oi-"] {
    font-family: 'Icons' !important;
}

/* Softer Dark Mode Theme */
:root {
    /* ===== EXISTING THEME COLORS ===== */
    --soft-dark-bg: #1e1e1e;
    /* Main background - softer than pure black */
    --soft-dark-surface: #2d2d2d;
    /* Cards, panels - elevated surface */
    --soft-dark-surface-hover: #3a3a3a;
    /* Hover states */
    --soft-dark-text: #e0e0e0;
    /* Primary text - softer white */
    --soft-dark-text-secondary: #b0b0b0;
    /* Secondary text */
    --soft-dark-border: #404040;
    /* Borders and dividers */
    --nav-midnight: #0f172a;
    --nav-primary: #2563eb;
    --nav-azure: #3b82f6;
    --nav-teal: rgba(14, 165, 233, 0.35);
    --nav-glass: rgba(255, 255, 255, 0.14);
    --nav-border-mist: rgba(148, 163, 235, 0.28);
    --nav-border-frost: rgba(191, 219, 254, 0.55);
    --nav-text: rgba(241, 245, 249, 0.96);
    --nav-card-radius: 20px;

    /* ===== EXTENDED COLOR SYSTEM ===== */
    --primary-blue: rgba(37, 99, 235, 1);
    --primary-blue-35: rgba(37, 99, 235, 0.35);
    --primary-blue-38: rgba(37, 99, 235, 0.38);
    --azure-blue: rgba(59, 130, 246, 1);
    --azure-blue-15: rgba(59, 130, 246, 0.15);
    --azure-blue-22: rgba(59, 130, 246, 0.22);
    --sky-blue: rgba(96, 165, 250, 1);
    --sky-blue-60: rgba(96, 165, 250, 0.6);
    --slate-dark: rgba(15, 23, 42, 0.85);
    --slate-dark-45: rgba(15, 23, 42, 0.45);
    --slate-dark-75: rgba(15, 23, 42, 0.75);
    --slate-border: rgba(226, 232, 240, 1);
    --white-08: rgba(255, 255, 255, 0.08);
    --white-32: rgba(255, 255, 255, 0.32);

    /* ===== NAV SURFACES (Mockup Style - Clean Flat) ===== */
    --nav-surface: transparent;
    --nav-surface-hover: rgba(255, 255, 255, 0.04);
    --nav-surface-active: rgba(59, 130, 246, 0.15);
    --nav-icon-bg: rgba(59, 130, 246, 0.15);
    --nav-icon-bg-hover: rgba(59, 130, 246, 0.22);
    --nav-icon-bg-active: rgba(59, 130, 246, 1);
    --nav-icon-color: rgba(255, 255, 255, 0.9);
    --nav-icon-color-active: #ffffff;
    --nav-text-muted: rgba(148, 163, 184, 0.75);
    --nav-text-default: rgba(226, 232, 240, 0.88);
    --nav-text-hover: rgba(248, 250, 252, 0.95);
    --nav-text-active: rgba(59, 130, 246, 1);
    --nav-active-border: rgba(59, 130, 246, 0.35);

    /* ===== BORDER RADIUS SYSTEM ===== */
    --radius-sm: 12px;
    --radius-md: 14px;
    --radius-base: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-2xl: 26px;

    /* ===== SHADOW SYSTEM ===== */
    --shadow-sm: 0 4px 16px;
    --shadow-md: 0 6px 20px;
    --shadow-lg: 0 8px 24px;
    --shadow-xl: 0 10px 30px;

    /* ===== BLUR SYSTEM ===== */
    --blur-sm: 8px;
    --blur-md: 12px;
    --blur-lg: 16px;
    --blur-xl: 22px;

    /* ===== SPACING SYSTEM ===== */
    /* DEPRECATED: Use --space-* tokens from tokens.css instead.
       These aliases remain for backward compatibility. */
    --spacing-xs: var(--space-1, 0.25rem);   /* ~0.3rem → 0.25rem (4px) */
    --spacing-sm: var(--space-2-5, 0.625rem); /* ~0.6rem → 0.625rem (10px) */
    --spacing-md: var(--space-3-5, 0.875rem); /* ~0.9rem → 0.875rem (14px) */
    --spacing-lg: var(--space-5, 1.25rem);    /* ~1.2rem → 1.25rem (20px) */

    /* ===== NOTIFICATION BADGE ===== */
    --badge-red: rgba(239, 68, 68, 1);
    --badge-shadow-35: rgba(239, 68, 68, 0.35);
    --badge-shadow-50: rgba(239, 68, 68, 0.5);
    --badge-glow-12: rgba(239, 68, 68, 0.12);
    --badge-glow-20: rgba(239, 68, 68, 0.2);

    /* ===== POPUP-SPECIFIC (Moderate blur for performance) ===== */
    --popup-blur: 18px;
    --popup-backdrop-blur: 4px;

    /* ===== POPUP SHADOWS (Refined for balanced depth) ===== */
    --shadow-popup: 0 18px 48px -8px rgba(0, 0, 0, 0.42),
                    0 8px 32px rgba(37, 99, 235, 0.16);
    --shadow-button: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-button-primary: 0 8px 28px rgba(34, 211, 238, 0.26),
                             0 4px 16px rgba(16, 185, 129, 0.16);
    /* ===== GLOBAL GLASS CONTROLS ===== */
    --glass-input-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.52), rgba(30, 58, 138, 0.32), rgba(15, 23, 42, 0.5));
    --glass-input-focus-bg: linear-gradient(135deg, rgba(30, 58, 138, 0.62), rgba(37, 99, 235, 0.46), rgba(30, 58, 138, 0.58));
    --glass-input-border: rgba(148, 163, 235, 0.2);
    --glass-input-radius: 14px;
    --glass-input-blur: 12px;
    --glass-btn-bg: rgba(51, 65, 85, 0.5);
    --glass-btn-border: rgba(100, 116, 139, 0.3);
    --glass-btn-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    --glass-btn-radius: 6px;
    --glass-btn-height: 36px;
}

html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* Match page background for seamless fade-in during hydration */
    background-color: var(--nav-midnight, #0f172a);
    color: var(--soft-dark-text);
}

/* Bootstrap Card Dark Mode Overrides */
.card {
    background-color: var(--soft-dark-surface);
    color: var(--soft-dark-text);
    border-color: var(--soft-dark-border);
}

.card-body {
    background-color: var(--soft-dark-surface);
    color: var(--soft-dark-text);
}

.card-header:not([class*="bg-"]):not([class*="card-header-"]) {
    background-color: #353535;
    color: var(--soft-dark-text);
    border-bottom-color: var(--soft-dark-border);
}

html,
body {
    height: 100%;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL DARK SCROLLBAR STYLES
   Consistent dark theme scrollbars across all components
   ═══════════════════════════════════════════════════════════════════════════ */

/* WebKit browsers (Chrome, Safari, Edge) */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.5);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.6);
}

*::-webkit-scrollbar-corner {
    background: rgba(15, 23, 42, 0.4);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(71, 85, 105, 0.5) rgba(15, 23, 42, 0.4);
}

/* DevExpress components specific scrollbars */
.dxbl-grid::-webkit-scrollbar,
.dxbl-listbox::-webkit-scrollbar,
.dxbl-popup::-webkit-scrollbar,
.dxbl-dropdown::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.dxbl-grid::-webkit-scrollbar-thumb,
.dxbl-listbox::-webkit-scrollbar-thumb,
.dxbl-popup::-webkit-scrollbar-thumb,
.dxbl-dropdown::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.6);
    border-radius: 3px;
}

.dxbl-grid::-webkit-scrollbar-thumb:hover,
.dxbl-listbox::-webkit-scrollbar-thumb:hover,
.dxbl-popup::-webkit-scrollbar-thumb:hover,
.dxbl-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(96, 165, 250, 0.7);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
    display: block;
    width: 100%;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ============================================
   GLOBAL SOFT GLASS CONTROLS
   ============================================ */
.dxbl-btn {
    min-height: var(--glass-btn-height);
    border-radius: var(--glass-btn-radius);
    background: var(--glass-btn-bg) !important;
    border: 1px solid var(--glass-btn-border) !important;
    color: #e2e8f0 !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.45rem 1.2rem !important;
    box-shadow: var(--glass-btn-shadow) !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
}

.dxbl-btn:hover:not(:disabled) {
    background: rgba(71, 85, 105, 0.6) !important;
    border-color: rgba(100, 116, 139, 0.5) !important;
}

.dxbl-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.dxbl-btn.dxbl-btn-primary {
    background: #3b82f6 !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2) !important;
}

.dxbl-btn.dxbl-btn-primary:hover:not(:disabled) {
    background: #2563eb !important;
    border-color: rgba(37, 99, 235, 0.6) !important;
}

/* Success and Danger button styles moved to modern-forms.css */

.dxbl-btn.dxbl-btn-warning {
    background: #f59e0b !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: #1f2937 !important;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2) !important;
}

.dxbl-btn.dxbl-btn-warning:hover:not(:disabled) {
    background: #d97706 !important;
    border-color: rgba(217, 119, 6, 0.6) !important;
}

.dxbl-btn.dxbl-btn-secondary,
.dxbl-btn.dxbl-btn-info {
    background: var(--glass-btn-bg) !important;
    border-color: var(--glass-btn-border) !important;
}

.dxbl-btn.dxbl-btn-secondary:hover:not(:disabled),
.dxbl-btn.dxbl-btn-info:hover:not(:disabled) {
    background: rgba(71, 85, 105, 0.6) !important;
    border-color: rgba(100, 116, 139, 0.5) !important;
}

/* ============================================
   FORM CONTROLS - Styles moved to modern-forms.css
   ============================================ */

/* Bootstrap form controls - basic dark styling */
input.form-control,
select.form-select,
textarea.form-control {
    background: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(100, 116, 139, 0.25) !important;
    border-radius: 8px !important;
    color: #e2e8f0 !important;
    transition: border-color 0.2s ease !important;
}

input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus {
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: none !important;
    outline: none !important;
    background: rgba(20, 30, 50, 0.8) !important;
}

input.form-control::placeholder,
textarea.form-control::placeholder {
    color: rgba(148, 163, 184, 0.4) !important;
}

.dxbl-checkbox .dxbl-chb-text {
    color: #e2e8f0;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE MAIN MENU - FLAT MOCKUP DESIGN
   Clean, minimal sidebar navigation - NO backgrounds on items
   Only icons have subtle blue tint, active item has highlight
   ============================================ */

/* Menu container reset */
.main-nav-menu.dxbl-menu {
    padding: 0.5rem 0 !important;
    margin: 0 !important;
    background: transparent !important;
    width: 100% !important;
}

.main-nav-menu.dxbl-menu > ul,
.main-nav-menu .dxbl-menu-items,
.main-nav-menu .dxbl-menu-bar {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background: transparent !important;
}

/* Menu item container */
.main-nav-menu .dxbl-menu-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN MENU ITEMS - Flat Mockup Style (NO pill backgrounds)
   DevExpress renders: <a class="dxbl-btn dxbl-btn-text-none"> with <span class="dxbl-image oi oi-xxx">
   ═══════════════════════════════════════════════════════════════════════════ */

/* Base menu item - COMPLETELY FLAT, no backgrounds */
.main-nav-menu .dxbl-menu-item > a.dxbl-btn,
.main-nav-menu .dxbl-menu-item > button.dxbl-btn,
.main-nav-menu .dxbl-menu-item > a,
.main-nav-menu .dxbl-menu-item > button {
    padding: 0.6rem 1rem !important;
    margin: 0.125rem 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.875rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: rgba(203, 213, 225, 0.8) !important;
    font-weight: 400 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.01em !important;
    text-decoration: none !important;
    /* Premium smooth transitions */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    /*
     * DevExpress 25.2 Best Practice: Use explicit CSS properties instead of
     * internal --dxbl-* variables which may change between versions.
     * Reference: https://docs.devexpress.com/Blazor/401740/css-classes
     */
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
}

/* Hover state - premium micro-interaction */
.main-nav-menu .dxbl-menu-item > a.dxbl-btn:hover,
.main-nav-menu .dxbl-menu-item > button.dxbl-btn:hover,
.main-nav-menu .dxbl-menu-item > a:hover,
.main-nav-menu .dxbl-menu-item > button:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    color: rgba(248, 250, 252, 0.98) !important;
    border: none !important;
    box-shadow: none !important;
    /* Subtle scale for premium feel */
    transform: translateX(2px) !important;
}

/* Icon - square with rounded corners, subtle blue tint background + inner shadow for depth */
/* IMPORTANT: Exclude .dxbl-menu-dropdown-toggle (chevron) from icon styling */
.main-nav-menu .dxbl-menu-item > a.dxbl-btn .dxbl-image:not(.dxbl-menu-dropdown-toggle),
.main-nav-menu .dxbl-menu-item > button.dxbl-btn .dxbl-image:not(.dxbl-menu-dropdown-toggle),
.main-nav-menu .dxbl-menu-item > a .dxbl-image:not(.dxbl-menu-dropdown-toggle),
.main-nav-menu .dxbl-menu-item > button .dxbl-image:not(.dxbl-menu-dropdown-toggle),
.main-nav-menu .dxbl-menu-item .dxbl-image:not(.dxbl-menu-dropdown-toggle),
.main-nav-menu .dxbl-menu-item .dxbl-menu-item-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 10px !important;
    background: rgba(59, 130, 246, 0.1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(147, 197, 253, 0.85) !important;
    font-size: 0.95rem !important;
    /* Premium transitions */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    /* Subtle inner shadow for depth */
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15),
                0 1px 0 rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(59, 130, 246, 0.08) !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

/* Icon hover - brighter with glow */
.main-nav-menu .dxbl-menu-item > a.dxbl-btn:hover .dxbl-image:not(.dxbl-menu-dropdown-toggle),
.main-nav-menu .dxbl-menu-item > button.dxbl-btn:hover .dxbl-image:not(.dxbl-menu-dropdown-toggle),
.main-nav-menu .dxbl-menu-item > a:hover .dxbl-image:not(.dxbl-menu-dropdown-toggle),
.main-nav-menu .dxbl-menu-item > button:hover .dxbl-image:not(.dxbl-menu-dropdown-toggle),
.main-nav-menu .dxbl-menu-item > a:hover .dxbl-menu-item-icon,
.main-nav-menu .dxbl-menu-item > button:hover .dxbl-menu-item-icon {
    background: rgba(59, 130, 246, 0.18) !important;
    color: rgba(191, 219, 254, 1) !important;
    border-color: rgba(59, 130, 246, 0.15) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12),
                0 0 8px rgba(59, 130, 246, 0.15) !important;
}

/* Text styling - clean and readable */
.main-nav-menu .dxbl-menu-item-text {
    font-size: 0.925rem !important;
    font-weight: 400 !important;
    color: inherit !important;
    flex: 1 !important;
    letter-spacing: 0.01em !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MENU GROUP SEPARATORS - Subtle visual dividers between logical groups
   ═══════════════════════════════════════════════════════════════════════════ */

/* Menu group start - adds spacing and subtle divider line above */
.main-nav-menu .dxbl-menu-item.menu-group-start {
    margin-top: 0.5rem !important;
    position: relative !important;
}

/* Subtle divider line above group start items */
.main-nav-menu .dxbl-menu-item.menu-group-start::before {
    content: '' !important;
    position: absolute !important;
    top: -0.25rem !important;
    left: 1rem !important;
    right: 1rem !important;
    height: 1px !important;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(71, 85, 105, 0.4) 20%,
        rgba(71, 85, 105, 0.4) 80%,
        transparent 100%) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACTIVE STATE - Premium glow effect + left border accent
   ═══════════════════════════════════════════════════════════════════════════ */

/* Active menu item - glowing blue background with left accent */
.main-nav-menu .dxbl-menu-item.dxbl-active > a.dxbl-btn,
.main-nav-menu .dxbl-menu-item.dxbl-active > button.dxbl-btn,
.main-nav-menu .dxbl-menu-item.dxbl-active > a,
.main-nav-menu .dxbl-menu-item.dxbl-active > button {
    background: linear-gradient(90deg,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(59, 130, 246, 0.08) 50%,
        transparent 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    letter-spacing: 0.015em !important;
    border-left: 3px solid #3b82f6 !important;
    padding-left: calc(1rem - 3px) !important;
    border-radius: 0 !important;
    /* Premium glow effect */
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.08),
                0 0 15px rgba(59, 130, 246, 0.1) !important;
    transform: translateX(0) !important;
}

/* Active icon - vibrant solid blue gradient with glow */
.main-nav-menu .dxbl-menu-item.dxbl-active > a.dxbl-btn .dxbl-image:not(.dxbl-menu-dropdown-toggle),
.main-nav-menu .dxbl-menu-item.dxbl-active > button.dxbl-btn .dxbl-image:not(.dxbl-menu-dropdown-toggle),
.main-nav-menu .dxbl-menu-item.dxbl-active > a .dxbl-image:not(.dxbl-menu-dropdown-toggle),
.main-nav-menu .dxbl-menu-item.dxbl-active > button .dxbl-image:not(.dxbl-menu-dropdown-toggle),
.main-nav-menu .dxbl-menu-item.dxbl-active .dxbl-image:not(.dxbl-menu-dropdown-toggle),
.main-nav-menu .dxbl-menu-item.dxbl-active .dxbl-menu-item-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(96, 165, 250, 0.4) !important;
    /* Premium glow effect */
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4),
                0 0 20px rgba(59, 130, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXPAND CHEVRON - Minimal subtle arrow for submenus
   ═══════════════════════════════════════════════════════════════════════════ */

/* Expanded state - rotated chevron */
.main-nav-menu .dxbl-menu-item.dxbl-expanded > button .dxbl-menu-item-expand-icon,
.main-nav-menu .dxbl-menu-item.dxbl-expanded > button .dxbl-menu-dropdown-toggle,
.main-nav-menu .dxbl-menu-item.dxbl-expanded .dxbl-menu-dropdown-toggle {
    transform: rotate(90deg) !important;
    color: rgba(147, 197, 253, 0.75) !important;
    opacity: 1 !important;
}

/* Hover chevron - slightly more visible */
.main-nav-menu .dxbl-menu-item > a:hover .dxbl-menu-item-expand-icon,
.main-nav-menu .dxbl-menu-item > button:hover .dxbl-menu-item-expand-icon,
.main-nav-menu .dxbl-menu-item > button:hover .dxbl-menu-dropdown-toggle,
.main-nav-menu .dxbl-menu-item:hover .dxbl-menu-dropdown-toggle {
    color: rgba(191, 219, 254, 0.7) !important;
    opacity: 1 !important;
}

/* CRITICAL: Chevron must NOT inherit icon background styling - complete reset */
.main-nav-menu .dxbl-menu-dropdown-toggle,
.main-nav-menu .dxbl-menu-dropdown-toggle.dxbl-image,
.main-nav-menu .dxbl-menu-item-expand-icon,
.main-nav-menu .dxbl-menu-item-expand-icon.dxbl-image,
.main-nav-menu .dxbl-menu-item > button .dxbl-menu-dropdown-toggle,
.main-nav-menu .dxbl-menu-item > a .dxbl-menu-dropdown-toggle,
.main-nav-menu .dxbl-menu-item.dxbl-active .dxbl-menu-dropdown-toggle,
.main-nav-menu .dxbl-menu-item.dxbl-expanded .dxbl-menu-dropdown-toggle,
svg.dxbl-image.dxbl-menu-dropdown-toggle {
    /* Complete visual reset */
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    /* Small, subtle size */
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    max-width: 12px !important;
    min-height: 12px !important;
    max-height: 12px !important;
    /* Positioning */
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: 0.5rem !important;
    flex-shrink: 0 !important;
    /* Subtle appearance */
    color: rgba(148, 163, 184, 0.5) !important;
    opacity: 0.7 !important;
    /* Smooth transitions */
    transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INLINE SUBMENU - Clean indented items
   ═══════════════════════════════════════════════════════════════════════════ */

.main-nav-menu .dxbl-submenu,
.main-nav-menu ul[role="group"] {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Submenu items - indented with smaller styling */
.main-nav-menu .dxbl-submenu .dxbl-menu-item > a,
.main-nav-menu .dxbl-submenu .dxbl-menu-item > button {
    padding-left: 3.25rem !important;
    font-size: 0.875rem !important;
}

/* Submenu icons - slightly smaller */
.main-nav-menu .dxbl-submenu .dxbl-menu-item > a .dxbl-menu-item-icon,
.main-nav-menu .dxbl-submenu .dxbl-menu-item > button .dxbl-menu-item-icon,
.main-nav-menu .dxbl-submenu .dxbl-menu-item > a .dxbl-image,
.main-nav-menu .dxbl-submenu .dxbl-menu-item > button .dxbl-image {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
}

/* Authorize label */
.main-nav-menu .authorize-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
}

.main-nav-menu .authorize-text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
}

/* Notification badge pulse */
@keyframes notification-pulse {
    0%, 100% {
        box-shadow: 0 6px 18px var(--badge-shadow-35), 0 0 0 3px var(--badge-glow-12);
    }
    50% {
        box-shadow: 0 8px 22px var(--badge-shadow-50), 0 0 0 5px var(--badge-glow-20);
    }
}

/* ============================================
   SUBMENU DROPDOWN ITEMS STYLING - DEBUG MODE
   ============================================ */

/* DEBUG BORDERS REMOVED - Classes confirmed working */

/* ============================================
   SUBMENU DROPDOWN ITEMS STYLING
   ============================================ */

/* Base popup surface (non-menu) */
.dxbl-modal-backdrop {
    background-color: rgba(7, 13, 26, 0.68) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

.dxbl-popup:not(.dxbl-menu) .dxbl-modal-content {
    background: radial-gradient(160% 200% at 18% 6%, rgba(96, 165, 250, 0.16), rgba(59, 130, 246, 0.08) 35%, rgba(15, 23, 42, 0.94)) !important;
    border-radius: 18px !important;
    border: 1px solid rgba(148, 163, 235, 0.26) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 18px 48px -8px rgba(0, 0, 0, 0.42),
        0 8px 32px rgba(37, 99, 235, 0.16),
        0 2px 12px rgba(96, 165, 250, 0.10) !important;
    backdrop-filter: blur(18px) saturate(128%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(128%) !important;
    color: #e6edf9 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.dxbl-popup:not(.dxbl-menu) .dxbl-modal-header,
.dxbl-popup:not(.dxbl-menu) .dxbl-modal-body {
    background: transparent !important;
}

.dxbl-popup:not(.dxbl-menu) .dxbl-modal-header {
    border: none !important;
    padding: 1.1rem 1.4rem 0.3rem !important;
    color: #f5f8ff !important;
    font-weight: 600 !important;
    letter-spacing: 0.005em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.dxbl-popup:not(.dxbl-menu) .dxbl-modal-body {
    padding: 0.7rem 1.4rem 0.95rem !important;
    color: #e7ecf8 !important;
    line-height: 1.6;
}

.dxbl-popup:not(.dxbl-menu) .dxbl-modal-footer {
    padding: 0.85rem 1.4rem 1rem !important;
    border-top: 1px solid rgba(148, 163, 235, 0.24) !important;
    background: linear-gradient(180deg, rgba(148, 163, 235, 0.05), rgba(15, 23, 42, 0.88)) !important;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.08) inset !important;
    display: flex;
    justify-content: flex-end;
    gap: 0.85rem;
}

.dxbl-popup:not(.dxbl-menu) .dxbl-popup-header-button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    background: linear-gradient(135deg, rgba(148, 163, 235, 0.10), rgba(148, 163, 235, 0.15)) !important;
    border: 1px solid rgba(191, 219, 254, 0.20) !important;
    border-radius: 11px !important;
    color: #eff3ff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(96, 165, 250, 0.12) inset !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dxbl-popup:not(.dxbl-menu) .dxbl-popup-header-button:hover {
    transform: scale(1.08) !important;
    background: linear-gradient(135deg, rgba(148, 163, 235, 0.16), rgba(148, 163, 235, 0.22)) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(96, 165, 250, 0.18) inset !important;
}

.dxbl-popup:not(.dxbl-menu) .dxbl-modal-footer .dxbl-btn {
    border-radius: 12px !important;
    padding: 0.52rem 1.2rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dxbl-popup:not(.dxbl-menu) .dxbl-modal-footer .dxbl-btn.dxbl-btn-outline,
.dxbl-popup:not(.dxbl-menu) .dxbl-modal-footer .dxbl-btn.dxbl-btn-secondary,
.dxbl-popup:not(.dxbl-menu) .dxbl-modal-footer .dxbl-btn.dxbl-btn-secondary:where(:not(.dxbl-btn-primary)) {
    background: linear-gradient(135deg, rgba(148, 163, 235, 0.08), rgba(148, 163, 235, 0.14)) !important;
    border: 1px solid rgba(148, 163, 235, 0.32) !important;
    color: #f4f7ff !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
}

.dxbl-popup:not(.dxbl-menu) .dxbl-modal-footer .dxbl-btn.dxbl-btn-outline:hover,
.dxbl-popup:not(.dxbl-menu) .dxbl-modal-footer .dxbl-btn.dxbl-btn-secondary:hover,
.dxbl-popup:not(.dxbl-menu) .dxbl-modal-footer .dxbl-btn.dxbl-btn-secondary:where(:not(.dxbl-btn-primary)):hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.15) !important;
    background: linear-gradient(135deg, rgba(148, 163, 235, 0.12), rgba(148, 163, 235, 0.18)) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.06) inset !important;
}

.dxbl-popup:not(.dxbl-menu) .dxbl-modal-footer .dxbl-btn.dxbl-btn-primary {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.95), rgba(16, 185, 129, 0.92)) !important;
    border: 1px solid rgba(34, 211, 238, 0.4) !important;
    color: #04101a !important;
    box-shadow:
        0 8px 28px rgba(34, 211, 238, 0.26),
        0 4px 16px rgba(16, 185, 129, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset !important;
}

.dxbl-popup:not(.dxbl-menu) .dxbl-modal-footer .dxbl-btn.dxbl-btn-primary:hover {
    transform: scale(1.02) translateY(-1px) !important;
    filter: brightness(1.08) !important;
    box-shadow:
        0 10px 32px rgba(34, 211, 238, 0.32),
        0 6px 20px rgba(16, 185, 129, 0.20),
        0 0 0 1px rgba(255, 255, 255, 0.16) inset !important;
}

/* Status confirmation popup – aligned with global glass improvements */
.status-confirmation-popup .dxbl-modal-content {
    background: radial-gradient(160% 200% at 18% 6%, rgba(96, 165, 250, 0.15), rgba(59, 130, 246, 0.07) 35%, rgba(13, 19, 33, 0.94)) !important;
    border-radius: 18px !important;
    border: 1px solid rgba(148, 163, 235, 0.26) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 18px 48px -8px rgba(0, 0, 0, 0.42),
        0 8px 32px rgba(37, 99, 235, 0.16),
        0 2px 12px rgba(96, 165, 250, 0.10) !important;
}

.status-confirmation-popup .dxbl-modal-header {
    padding: 1.1rem 1.4rem 0.3rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.005em !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.status-confirmation-popup .dxbl-popup-header-button {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(148, 163, 235, 0.08) !important;
    border: 1px solid rgba(148, 163, 235, 0.24) !important;
    border-radius: 10px !important;
    color: rgba(241, 245, 249, 0.85) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.03) inset !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.status-confirmation-popup .dxbl-popup-header-button:hover {
    transform: scale(1.05) !important;
    background: rgba(148, 163, 235, 0.14) !important;
    border-color: rgba(148, 163, 235, 0.32) !important;
    color: rgba(241, 245, 249, 0.98) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.06) inset !important;
}

.status-confirmation-popup .dxbl-popup-header-button:active {
    transform: scale(0.98) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
}

/* ============================================
   GRID FILTER FUNNEL BUTTON - Subtle Glass Style
   ============================================ */
.dxbl-grid-filter-menu-funnel-btn.dxbl-btn {
    min-height: 32px !important;
    min-width: 32px !important;
    padding: 0.35rem !important;
    background: rgba(148, 163, 235, 0.08) !important;
    border: 1px solid rgba(148, 163, 235, 0.2) !important;
    border-radius: 8px !important;
    color: rgba(241, 245, 249, 0.75) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.dxbl-grid-filter-menu-funnel-btn.dxbl-btn:hover {
    background: rgba(148, 163, 235, 0.14) !important;
    border-color: rgba(148, 163, 235, 0.32) !important;
    color: rgba(241, 245, 249, 0.95) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    transform: translateY(-1px) !important;
}

.dxbl-grid-filter-menu-funnel-btn.dxbl-btn:active {
    transform: scale(0.98) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

.dxbl-grid-filter-menu-funnel-btn.dxbl-btn .dxbl-image {
    width: 16px !important;
    height: 16px !important;
    opacity: 0.8 !important;
    transition: opacity 0.2s ease !important;
}

.dxbl-grid-filter-menu-funnel-btn.dxbl-btn:hover .dxbl-image {
    opacity: 1 !important;
}

/* ============================================
   FILTER MENU DROPDOWN - Search Icon (flat, no button look)
   ============================================ */
.dxbl-filter-menu-dropdown .dxbl-list-box-search-container .dxbl-btn.dxbl-btn-outline-secondary.dxbl-btn-icon {
    min-height: auto !important;
    min-width: auto !important;
    padding: 0.25rem !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: rgba(148, 163, 184, 0.6) !important;
    box-shadow: none !important;
    cursor: default !important;
}

.dxbl-filter-menu-dropdown .dxbl-list-box-search-container .dxbl-btn.dxbl-btn-outline-secondary.dxbl-btn-icon:hover {
    background: transparent !important;
    border: none !important;
    color: rgba(148, 163, 184, 0.8) !important;
    transform: none !important;
}

.dxbl-filter-menu-dropdown .dxbl-list-box-search-container .dxbl-btn.dxbl-btn-outline-secondary.dxbl-btn-icon .dxbl-image {
    width: 16px !important;
    height: 16px !important;
    opacity: 0.5 !important;
}

.status-confirmation-popup .dxbl-popup-header-button .dxbl-image,
.status-confirmation-popup .dxbl-popup-header-button svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    opacity: 0.85 !important;
    transition: opacity 0.2s ease !important;
    margin: 0 !important;
    padding: 0 !important;
}

.status-confirmation-popup .dxbl-popup-header-button:hover .dxbl-image,
.status-confirmation-popup .dxbl-popup-header-button:hover svg {
    opacity: 1 !important;
}

/* Remove any DevExpress default button background/border effects */
.status-confirmation-popup .dxbl-popup-header-button::before,
.status-confirmation-popup .dxbl-popup-header-button::after {
    display: none !important;
}

.status-confirmation-popup .dxbl-popup-header-button > * {
    margin: 0 !important;
    padding: 0 !important;
}

/* Override DevExpress .dxbl-btn-tool default styling */
.status-confirmation-popup .dxbl-popup-header-button.dxbl-btn-tool {
    background: rgba(148, 163, 235, 0.08) !important;
    border: 1px solid rgba(148, 163, 235, 0.24) !important;
}

.status-confirmation-popup .dxbl-popup-header-button.dxbl-btn-tool:hover {
    background: rgba(148, 163, 235, 0.14) !important;
    border-color: rgba(148, 163, 235, 0.32) !important;
}

/* Remove any additional DevExpress icon container backgrounds */
.status-confirmation-popup .dxbl-popup-header-button .dxbl-btn-content {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Keep default padding for popups that supply custom body/footer classes */
.dxbl-popup:not(.dxbl-menu) .dxbl-modal-body[class*="modern-popup"],
.dxbl-popup:not(.dxbl-menu) .dxbl-modal-footer[class*="modern-popup"] {
    padding: unset !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DROPDOWN POPUP SUBMENU - Modern Mockup Style
   Floating panel with glass effect for hover-triggered submenus
   ═══════════════════════════════════════════════════════════════════════════ */

/* Popup submenu container - glass effect panel */
.dxbl-popup.dxbl-menu,
.dxbl-menu-dropdown,
.dxbl-dropdown-content {
    margin: 0 !important;
    padding: 0.35rem !important;
    border-radius: 14px !important;
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.9)) !important;
    border: 1px solid rgba(71, 85, 105, 0.25) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35),
                0 4px 16px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(16px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.2) !important;
    overflow: hidden !important;
    min-width: 200px !important;
}

.dxbl-popup.dxbl-menu .dxbl-popup-content,
.dxbl-popup.dxbl-menu .dxbl-popup-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SIMPLIFIED DEVEXPRESS MENU OVERRIDES

   DevExpress Best Practice: Use simpler selectors targeting public classes.
   Avoid deep chains like: li.dxbl-menu-dropdown-item.dxbl-menu-list-item...
   These break on DevExpress version updates.

   Reference: https://docs.devexpress.com/Blazor/401740/styling-and-themes/css-classes
   ═══════════════════════════════════════════════════════════════════════════ */

/* Reset backgrounds on popup inner elements - use cascade instead of !important where possible */
.dxbl-popup.dxbl-menu .dxbl-popup-content,
.dxbl-popup.dxbl-menu .dxbl-popup-wrapper,
.dxbl-popup.dxbl-menu ul,
.dxbl-popup.dxbl-menu li {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Menu list items - simplified selector */
.dxbl-popup.dxbl-menu li {
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide decorative pseudo-elements with visibility instead of content:none
   This preserves layout and is safer for DevExpress internals */
.dxbl-popup.dxbl-menu li::before,
.dxbl-popup.dxbl-menu li::after {
    visibility: hidden !important;
    opacity: 0 !important;
}

/* UL containers transparent */
ul.dxbl-menu-item-list[role="menu"],
ul.dxbl-menu-item-list-with-icons,
.dxbl-popup.dxbl-menu ul {
    background: transparent !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Submenu item container */
.dxbl-popup .dxbl-menu-item,
.dxbl-menu-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* Dropdown submenu items - Modern mockup style */
a.dxbl-menu-dropdown-item.dxbl-btn.dxbl-btn-text-none,
.dxbl-menu-dropdown-item.dxbl-btn,
.dxbl-menu-dropdown-item {
    padding: 0.6rem 0.85rem !important;
    margin: 0.1rem 0.25rem !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    width: calc(100% - 0.5rem) !important;
    box-sizing: border-box !important;

    background: transparent !important;
    border: none !important;

    color: rgba(203, 213, 225, 0.9) !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;

    box-shadow: none !important;
    transition: all 0.18s ease !important;
    text-decoration: none !important;
    position: relative !important;
}

/* Dropdown submenu item hover */
a.dxbl-menu-dropdown-item.dxbl-btn:hover,
.dxbl-menu-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(248, 250, 252, 0.98) !important;
}

/* Dropdown submenu item active state - with left accent */
a.dxbl-menu-dropdown-item.dxbl-active,
.dxbl-menu-dropdown-item.dxbl-active {
    background: rgba(59, 130, 246, 0.12) !important;
    border: none !important;
    color: rgba(248, 250, 252, 0.98) !important;
}

/* Dropdown submenu active - left accent */
a.dxbl-menu-dropdown-item.dxbl-active::before,
.dxbl-menu-dropdown-item.dxbl-active::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 3px !important;
    height: 55% !important;
    background: linear-gradient(180deg, #3b82f6, #60a5fa) !important;
    border-radius: 0 2px 2px 0 !important;
}

/* Dropdown submenu icons */
.dxbl-menu-dropdown-item .dxbl-image,
.dxbl-popup.dxbl-menu .dxbl-image {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(59, 130, 246, 0.12) !important;
    border: none !important;
    color: rgba(147, 197, 253, 0.9) !important;
    box-shadow: none !important;
    font-size: 0.85rem !important;
    transition: all 0.18s ease !important;
    flex-shrink: 0 !important;
}

/* Dropdown submenu icon hover */
.dxbl-menu-dropdown-item:hover .dxbl-image,
a.dxbl-menu-dropdown-item:hover span.dxbl-image {
    background: rgba(59, 130, 246, 0.18) !important;
    color: rgba(191, 219, 254, 1) !important;
}

/* Dropdown submenu icon active - solid blue */
.dxbl-menu-dropdown-item.dxbl-active .dxbl-image,
a.dxbl-menu-dropdown-item.dxbl-active span.dxbl-image {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3) !important;
}

/* Remove margin from last submenu item */
.dxbl-popup .dxbl-menu-item:last-child .dxbl-menu-dropdown-item,
a.dxbl-menu-dropdown-item:last-child {
    margin-bottom: 0 !important;
}

/* Dropdown submenu focus state */
a.dxbl-menu-dropdown-item:focus-visible,
.dxbl-menu-dropdown-item:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5) !important;
    outline-offset: 2px !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

/* Dropdown submenu active state (pressed/click) */
a.dxbl-menu-dropdown-item:active,
.dxbl-menu-dropdown-item:active {
    transform: scale(0.98) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY & INTERACTION STATES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Focus state for accessibility */
.main-nav-menu .dxbl-menu-item>a:focus-visible,
.main-nav-menu .dxbl-menu-item>button:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5) !important;
    outline-offset: 2px !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

/* Pressed/click state */
.main-nav-menu .dxbl-menu-item>a:active,
.main-nav-menu .dxbl-menu-item>button:active {
    transform: scale(0.98) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE - Flat style for touch targets
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .main-nav-menu .dxbl-menu-item>a,
    .main-nav-menu .dxbl-menu-item>button {
        padding: 0.7rem 1rem !important;
        gap: 0.75rem !important;
        min-height: 48px !important; /* Touch target guideline */
    }

    .main-nav-menu .dxbl-menu-item-icon,
    .main-nav-menu .dxbl-menu-item .dxbl-image {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    .main-nav-menu .dxbl-menu-item-text {
        font-size: 0.9rem !important;
    }

    /* Submenu items mobile */
    .main-nav-menu .dxbl-submenu .dxbl-menu-item>a,
    .main-nav-menu .dxbl-submenu .dxbl-menu-item>button {
        min-height: 44px !important;
        padding-left: 3rem !important;
    }
}

/* ============================================
   DRAWER HEADER & FOOTER BUTTONS - MODERN GLASS
   ============================================ */

/* Drawer Header Container */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3, 0.75rem) var(--space-1, 0.25rem);
    background: transparent;
}

/* Logo styling - larger size */
.drawer-header .logo-mini {
    max-height: 52px;
    margin-left: var(--space-1, 0.25rem);
}

.drawer-header .logo-full {
    max-height: 56px;
    margin-left: var(--space-1, 0.25rem);
}

/* Collapse/Toggle Button - Modern Glass Style */
.drawer-header .drawer-toggle-button,
.drawer-header .drawer-toggle-button.dxbl-btn,
button.drawer-toggle-button.dxbl-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 var(--space-1, 0.25rem) 0 0 !important;
    border-radius: var(--radius-sm) !important;

    background: var(--nav-surface) !important;
    background-color: transparent !important;
    backdrop-filter: blur(12px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.2) !important;

    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    box-shadow: var(--nav-item-shadow) !important;

    color: rgba(248, 250, 252, 0.92) !important;
    font-size: 1.1rem !important;

    transition: all 0.2s ease-out !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Toggle button hover */
.drawer-header .drawer-toggle-button:hover:not(:disabled),
.drawer-header .drawer-toggle-button.dxbl-btn:hover:not(:disabled),
button.drawer-toggle-button.dxbl-btn:hover:not(:disabled) {
    background: var(--nav-surface-hover) !important;
    background-color: transparent !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
    box-shadow: var(--nav-item-shadow-hover) !important;
    color: rgba(255, 255, 255, 0.98) !important;
    transform: scale(1.05) !important;
}

/* Toggle button active state */
.drawer-header .drawer-toggle-button:active,
.drawer-header .drawer-toggle-button.dxbl-btn:active,
button.drawer-toggle-button.dxbl-btn:active {
    transform: scale(0.98) !important;
    box-shadow: var(--nav-item-shadow) !important;
}

/* Toggle button icon */
.drawer-header .drawer-toggle-button .oi,
.drawer-header .drawer-toggle-button.dxbl-btn .oi,
button.drawer-toggle-button.dxbl-btn .oi {
    font-size: 1.1rem !important;
    transition: all 0.2s ease-out !important;
    color: inherit !important;
}

.drawer-header .drawer-toggle-button:hover .oi,
.drawer-header .drawer-toggle-button.dxbl-btn:hover .oi,
button.drawer-toggle-button.dxbl-btn:hover .oi {
    filter: brightness(1.2) !important;
}

/* Drawer Footer Container */
.drawer-footer {
    padding: 0.6rem;
    background: transparent;
}

/* Documentation Footer Button - Modern Glass Style */
.drawer-footer .footer-button,
.drawer-footer .footer-button.dxbl-btn,
button.footer-button.dxbl-btn {
    width: 100% !important;
    padding: 0.6rem 0.75rem !important;
    margin: 0 !important;
    border-radius: var(--radius-sm) !important;

    background: var(--nav-surface) !important;
    background-color: transparent !important;
    backdrop-filter: blur(12px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(12px) saturate(1.2) !important;

    color: rgba(248, 250, 252, 0.92) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.01em !important;

    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    box-shadow: var(--nav-item-shadow) !important;

    transition: all 0.2s ease-out !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
}

/* Footer button hover */
.drawer-footer .footer-button:hover:not(:disabled),
.drawer-footer .footer-button.dxbl-btn:hover:not(:disabled),
button.footer-button.dxbl-btn:hover:not(:disabled) {
    background: var(--nav-surface-hover) !important;
    background-color: transparent !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
    box-shadow: var(--nav-item-shadow-hover) !important;
    color: rgba(255, 255, 255, 0.98) !important;
}

/* Footer button active state */
.drawer-footer .footer-button:active,
.drawer-footer .footer-button.dxbl-btn:active,
button.footer-button.dxbl-btn:active {
    transform: translateY(1px) !important;
    box-shadow: var(--nav-item-shadow) !important;
}

/* Footer button icon */
.drawer-footer .footer-button .oi,
.drawer-footer .footer-button.dxbl-btn .oi,
button.footer-button.dxbl-btn .oi {
    font-size: 1rem !important;
    transition: all 0.2s ease-out !important;
    color: inherit !important;
}

.drawer-footer .footer-button:hover .oi,
.drawer-footer .footer-button.dxbl-btn:hover .oi,
button.footer-button.dxbl-btn:hover .oi {
    filter: brightness(1.2) !important;
}

/* When drawer is collapsed (mini mode), hide button text */
.drawer-mini .footer-button .dxbl-btn-text {
    display: none;
}

/* When drawer is collapsed, center the icon */
.drawer-mini .footer-button.dxbl-btn {
    justify-content: center !important;
    padding: 0.6rem !important;
}

/* ============================================
   (Debug outlines removed)
   ============================================ */

/* ============================================
   MODERN BUTTON STYLES (Glassmorphism)
   ============================================ */

/* --- Detail Button (Call to Action) --- */
.detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.65), rgba(59, 130, 246, 0.4));
    border: 1px solid rgba(191, 219, 254, 0.3);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.detail-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.75), rgba(37, 99, 235, 0.55));
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(191, 219, 254, 0.5);
    color: #ffffff;
}

.detail-button .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 1.1em;
    height: 1.1em;
}

.detail-button .icon-default,
.detail-button .icon-hover {
    position: absolute;
    transition: all 0.3s ease;
}

/* ============================================
   PREMIUM ACTION BUTTONS (Glassmorphism)
   ============================================ */

/* Shared Base Styles for Consistency */
.detail-button,
.edit-button {
    height: 38px;
    /* Fixed consistent height */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    /* Smooth modern corners */
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* --- Detail Button (Text + Icon) --- */
.detail-button {
    padding: 0 1.25rem;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.15) 0%, rgba(30, 58, 138, 0.1) 100%);
    border-color: rgba(147, 197, 253, 0.15);
}

/* --- Edit Button (Icon Only) --- */
.edit-button {
    width: 38px;
    /* Square aspect ratio matching height */
    color: rgba(147, 197, 253, 0.8);
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.03);
}

/* --- Hover Effects (Unified Premium Glow) --- */
.detail-button:hover,
.edit-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.3));
    border-color: rgba(191, 219, 254, 0.5);
    color: #ffffff;
    box-shadow:
        0 8px 25px rgba(37, 99, 235, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Icon Animations on Hover */
.detail-button .icon-container,
.edit-button .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.detail-button:hover .icon-container,
.edit-button:hover .icon-container {
    transform: scale(1.1);
}

/* --- Active/Click State --- */
.detail-button:active,
.edit-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    opacity: 0.9;
}

/* --- Status Toggle Button (Glass Pill) --- */
.status-toggle-btn {
    height: 32px;
    /* Slightly smaller than actions */
    min-width: 100px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0 1rem;
    border: 1px solid rgba(148, 163, 235, 0.2) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-toggle-btn .dxbs-button-text,
.status-toggle-btn .dxbs-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-toggle-btn .dxbs-button-icon {
    margin-right: 0.4rem;
    font-size: 1.1em;
}

/* Active State (Green Glow) */
.status-toggle-btn.is-active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 95, 70, 0.2)) !important;
    color: #6ee7b7 !important;
    border-color: rgba(52, 211, 153, 0.3) !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.status-toggle-btn.is-active:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 95, 70, 0.3)) !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.status-toggle-btn.is-active .dxbs-button-icon {
    color: #6ee7b7 !important;
}

.status-toggle-btn.is-active:hover .dxbs-button-icon {
    color: #ffffff !important;
}

/* Inactive State (Gray/Blue Ghost) */
.status-toggle-btn.is-inactive {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #94a3b8 !important;
    border-color: rgba(148, 163, 235, 0.15) !important;
}

.status-toggle-btn.is-inactive:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 235, 0.3) !important;
    transform: translateY(-1px);
}

.status-toggle-btn.is-inactive .dxbs-button-icon {
    color: #64748b !important;
}

.status-toggle-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(148, 163, 235, 0.3);
}

/* ============================================
   GLOBAL TEXT VISIBILITY FIXES
   ============================================ */

/* CRITICAL FIX: Override Bootstrap's .text-muted to be visible on dark backgrounds
   Bootstrap's default .text-muted uses dark gray (#6c757d) which is invisible on dark themes.
   This global fix ensures all muted text is readable throughout the application. */
.text-muted {
    color: rgba(203, 213, 225, 0.85) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced visibility for muted text in grids and tables */
.dxbl-grid .text-muted,
.modern-glass-grid .text-muted,
.dxbl-grid-table .text-muted,
table .text-muted {
    color: rgba(203, 213, 225, 0.9) !important;
}

/* Ensure text remains visible when selected/highlighted */
.text-muted::selection {
    background-color: rgba(59, 130, 246, 0.5);
    color: #ffffff !important;
}

/* Bootstrap text utility overrides for dark theme */
.text-secondary,
.text-body-secondary {
    color: rgba(203, 213, 225, 0.85) !important;
}

.text-body-tertiary {
    color: rgba(148, 163, 184, 0.75) !important;
}

.text-dark {
    color: rgba(226, 232, 240, 0.95) !important;
}

.text-black-50 {
    color: rgba(226, 232, 240, 0.5) !important;
}

.text-dark-emphasis,
.text-secondary-emphasis {
    color: rgba(203, 213, 225, 0.9) !important;
}

/* Form element text visibility */
.form-text {
    color: rgba(203, 213, 225, 0.85) !important;
}

.form-label {
    color: var(--soft-dark-text) !important;
}

.form-control::placeholder,
.form-control::-webkit-input-placeholder {
    color: rgba(148, 163, 184, 0.65) !important;
}

/* Background utility overrides */
.bg-light {
    background-color: rgba(51, 65, 85, 0.4) !important;
}

/* ============================================
   BLAZOR SERVER RECONNECTION UI - MODERN GLASS STYLE
   ============================================ */

/* Modal backdrop - soft blur overlay */
#components-reconnect-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10000 !important;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.75), rgba(7, 13, 26, 0.85)) !important;
    backdrop-filter: blur(var(--blur-lg)) saturate(120%) !important;
    -webkit-backdrop-filter: blur(var(--blur-lg)) saturate(120%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    animation: fadeIn 0.3s ease !important;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hide state */
#components-reconnect-modal.components-reconnect-hide {
    display: none !important;
}

/* Show state */
#components-reconnect-modal.components-reconnect-show {
    display: flex !important;
}

/* Main reconnection card - glass morphism */
#components-reconnect-modal .reconnect-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem 2.25rem;
    border-radius: var(--radius-xl);
    background: radial-gradient(145% 185% at 16% 6%, rgba(96, 165, 250, 0.24), rgba(15, 23, 42, 0.96)) !important;
    border: 1px solid rgba(148, 163, 235, 0.42) !important;
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(59, 130, 246, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(var(--blur-xl)) saturate(140%) !important;
    -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(140%) !important;
    text-align: center;
    animation: slideInScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Title styling */
#components-reconnect-modal h5,
#components-reconnect-title {
    color: #f2f6ff !important;
    font-size: 1.35rem !important;
    font-weight: 760 !important;
    letter-spacing: 0.01em !important;
    margin: 0 0 1rem 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Message text */
#components-reconnect-modal p,
#components-reconnect-message {
    color: rgba(226, 232, 240, 0.9) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 0 1.5rem 0 !important;
}

/* Spinner container */
#components-reconnect-modal .spinner-container {
    margin: 1.25rem 0;
}

/* Spinner animation */
#components-reconnect-modal .spinner-border,
#components-reconnect-modal .spinner-grow {
    width: 3rem !important;
    height: 3rem !important;
    border-width: 0.3rem !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
    border-right-color: rgba(96, 165, 250, 0.9) !important;
    filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.4)) !important;
}

/* Reconnection attempt counter */
#components-reconnect-modal .reconnect-counter,
#components-reconnect-counter {
    color: rgba(148, 163, 184, 0.9) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    margin-top: 0.75rem !important;
    letter-spacing: 0.02em !important;
}

/* Visually hidden helper */
#components-reconnect-modal .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Reconnect button - modern glass pill */
#components-reconnect-modal button,
#components-reconnect-button {
    /* Note: no !important on display - allows JS to hide/show via inline style */
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    padding: 0.7rem 1.8rem !important;
    margin: 0.5rem auto 0 !important;
    width: 100% !important;
    max-width: 220px !important;
    border-radius: var(--radius-md) !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.65), rgba(59, 130, 246, 0.45)) !important;
    border: 1px solid rgba(191, 219, 254, 0.35) !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    backdrop-filter: blur(var(--blur-md)) !important;
    -webkit-backdrop-filter: blur(var(--blur-md)) !important;
    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    cursor: pointer !important;
}

#components-reconnect-modal button:hover,
#components-reconnect-button:hover {
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.75), rgba(37, 99, 235, 0.6)) !important;
    border-color: rgba(191, 219, 254, 0.55) !important;
    box-shadow:
        0 12px 32px rgba(37, 99, 235, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

#components-reconnect-modal button:active,
#components-reconnect-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28) !important;
}

/* Failed state - red accent */
#components-reconnect-modal.components-reconnect-failed .reconnect-card {
    background: radial-gradient(145% 185% at 16% 6%, rgba(239, 68, 68, 0.22), rgba(15, 23, 42, 0.96)) !important;
    border-color: rgba(248, 113, 113, 0.38) !important;
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(239, 68, 68, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

#components-reconnect-modal.components-reconnect-failed h5,
#components-reconnect-modal.components-reconnect-failed #components-reconnect-title {
    color: #fecaca !important;
}

#components-reconnect-modal.components-reconnect-failed button,
#components-reconnect-modal.components-reconnect-failed #components-reconnect-button {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.6), rgba(220, 38, 38, 0.45)) !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
    box-shadow:
        0 8px 20px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

#components-reconnect-modal.components-reconnect-failed button:hover,
#components-reconnect-modal.components-reconnect-failed #components-reconnect-button:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.75), rgba(220, 38, 38, 0.6)) !important;
    box-shadow:
        0 12px 32px rgba(239, 68, 68, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Rejected state - amber warning */
#components-reconnect-modal.components-reconnect-rejected .reconnect-card {
    background: radial-gradient(145% 185% at 16% 6%, rgba(245, 158, 11, 0.22), rgba(15, 23, 42, 0.96)) !important;
    border-color: rgba(251, 191, 36, 0.38) !important;
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(245, 158, 11, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

#components-reconnect-modal.components-reconnect-rejected h5,
#components-reconnect-modal.components-reconnect-rejected #components-reconnect-title {
    color: #fde68a !important;
}

/* Timeout state - soft purple/indigo accent */
#components-reconnect-modal.components-reconnect-timeout .reconnect-card {
    background: radial-gradient(145% 185% at 16% 6%, rgba(139, 92, 246, 0.22), rgba(15, 23, 42, 0.96)) !important;
    border-color: rgba(167, 139, 250, 0.38) !important;
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(139, 92, 246, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

#components-reconnect-modal.components-reconnect-timeout h5,
#components-reconnect-modal.components-reconnect-timeout #components-reconnect-title {
    color: #ddd6fe !important;
}

#components-reconnect-modal.components-reconnect-timeout button,
#components-reconnect-modal.components-reconnect-timeout #components-reconnect-button {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(109, 40, 217, 0.45)) !important;
    border-color: rgba(167, 139, 250, 0.4) !important;
    box-shadow:
        0 8px 20px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

#components-reconnect-modal.components-reconnect-timeout button:hover,
#components-reconnect-modal.components-reconnect-timeout #components-reconnect-button:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.75), rgba(109, 40, 217, 0.6)) !important;
    box-shadow:
        0 12px 32px rgba(139, 92, 246, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    #components-reconnect-modal .reconnect-card {
        padding: 1.75rem 1.5rem;
        max-width: 92%;
    }

    #components-reconnect-modal h5,
    #components-reconnect-title {
        font-size: 1.2rem !important;
    }

    #components-reconnect-modal p,
    #components-reconnect-message {
        font-size: 0.9rem !important;
    }

    #components-reconnect-modal button,
    #components-reconnect-button {
        padding: 0.65rem 1.5rem !important;
        font-size: 0.85rem !important;
    }
}

/* ===== APP LOADING SKELETON ===== */
/* Shown during AppInitializer pre-load phase to prevent layout shift */
.app-loading-skeleton {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--soft-dark-bg);
}

.app-loading-skeleton .skeleton-header {
    height: 56px;
    background: linear-gradient(90deg, var(--soft-dark-surface) 25%, var(--soft-dark-surface-hover) 50%, var(--soft-dark-surface) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.app-loading-skeleton .skeleton-content {
    flex: 1;
    margin: 1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, var(--soft-dark-surface) 25%, var(--soft-dark-surface-hover) 50%, var(--soft-dark-surface) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    animation-delay: 0.2s;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Compact Grid Popup - minimal horizontal padding for edge-to-edge grid */
.compact-grid-popup.dxbl-popup .dxbl-modal-body {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.compact-grid-popup .dxbl-btn.btn-sm {
    padding-left: 0.7rem !important;
    padding-right: 0.7rem !important;
}

/* Compact button - reduced horizontal padding */
.btn-compact {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}
