:root {
    /* Final Touch: Layered Depth Engineering */
    --bg-dark-navy: #0a0c10;       /* Deepest Space Navy */
    --neon-orange: #ff8c00;
    --neon-blue-logo: #004282;     
    --neon-danger: #ff4d4d;
    --neon-success: #10b981;
    --neon-blue: #38bdf8;
    --slate-text: #94a3b8;        /* Slate 400 for secondary */
    --slate-light: #e0e0e0;       /* Lighter for main contrast */
    --glass-bg: rgba(25, 30, 40, 0.65); /* Floating layer */
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 140, 0, 0.05);
}

/* Global Content Reset & Background */
body, html[data-theme="dark"] body, .dashboard-main {
    background-color: var(--bg-dark-navy) !important;
    background-image: none !important;
    color: #f1f5f9 !important;
    font-family: 'Inter', sans-serif;
}

/* Unified Professional Component: Glass Panel (Floating Layer) */
.glass-panel {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--neon-shadow) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation Integration (Floating Layer) */
.sidebar, .navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    border-color: var(--glass-border) !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3) !important;
}

/* Sidebar Logo Cleanup */
.sidebar-logo, .sidebar-logo > div {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Navigation: Professional Active State */
[dir="rtl"] .sidebar-menu li a.active-link, 
[dir="rtl"] .sidebar-menu li a.active,
[dir="rtl"] .sidebar-menu li.active > a {
    border-right: 3px solid var(--neon-orange) !important;
    background: linear-gradient(-90deg, rgba(255, 140, 0, 0.12), transparent) !important;
    color: var(--neon-orange) !important;
    text-shadow: 0 0 12px rgba(255, 140, 0, 0.5); /* Textual Glow */
}

[dir="ltr"] .sidebar-menu li a.active-link, 
[dir="ltr"] .sidebar-menu li a.active,
[dir="ltr"] .sidebar-menu li.active > a {
    border-left: 3px solid var(--neon-orange) !important;
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.15), transparent) !important;
    color: var(--neon-orange) !important;
    text-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
}

/* Parent Active State: Highlight parent when child is active */
.sidebar-menu li.dropdown.open > a,
.sidebar-menu li.dropdown:hover > a {
    color: var(--neon-orange) !important;
    background: rgba(255, 140, 0, 0.05) !important;
}

.sidebar-menu li.dropdown.open > a .menu-icon,
.sidebar-menu li.dropdown:hover > a .menu-icon {
    color: var(--neon-orange) !important;
    filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.5));
}

/* Sidebar Global Hover/Active Override (Killing any remaining blue) */
.sidebar-menu li a:hover,
.sidebar-menu li a.active,
.sidebar-menu li a.active-link,
.sidebar-menu li.active > a {
    color: var(--neon-orange) !important;
}

.sidebar-menu li a:hover .menu-icon,
.sidebar-menu li a.active .menu-icon,
.sidebar-menu li a.active-link .menu-icon,
.sidebar-menu li.active > a .menu-icon {
    color: var(--neon-orange) !important;
    filter: drop-shadow(0 0 8px rgba(255, 140, 0, 0.4)) !important;
}

/* Sidebar Spacing & Alignment (Spacious Minimalist) */
.sidebar-menu li {
    margin-bottom: 0.75rem !important; /* Vertical spacing between items */
}

.sidebar-menu li a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 20px !important; /* Increased clickable area */
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] .sidebar-menu li a {
    flex-direction: row !important; /* Ensure icons and text follow row direction */
    text-align: right !important;
    gap: 16px !important; /* 12px+ horizontal gap between icon and text */
}

[dir="ltr"] .sidebar-menu li a {
    flex-direction: row !important;
    text-align: left !important;
    gap: 16px !important;
}

.menu-icon {
    font-size: 1.4rem !important;
    flex-shrink: 0;
}

/* Sub-menu Spacing */
.sidebar-submenu {
    padding-right: 2rem !important; /* Indent sub-menus for RTL */
    margin-top: 0.5rem !important;
}

[dir="ltr"] .sidebar-submenu {
    padding-left: 2rem !important;
    padding-right: 0 !important;
}

.sidebar-submenu li {
    margin-bottom: 0.5rem !important;
}

.sidebar-submenu li a {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
}

/* Sidebar Sub-menu & Bullets Refinement */
.sidebar-submenu li a {
    color: var(--slate-light) !important;
    transition: all 0.3s ease;
}

.sidebar-submenu li a:hover, 
.sidebar-submenu li a.active {
    color: var(--neon-orange) !important;
}

/* Bullet Dots (Blue to Orange Glow) */
.circle-icon.text-primary-600,
.sidebar-submenu .circle-icon {
    color: var(--neon-orange) !important;
    box-shadow: 0 0 8px var(--neon-orange);
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Pulse on Hover */
.sidebar-submenu li a:hover .circle-icon {
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--neon-orange);
    filter: brightness(1.2);
}

/* Remove any remaining primary blue from icons */
.sidebar .text-primary-600 {
    color: var(--neon-orange) !important;
}

/* Stat Cards & Interaction */
.glass-stat-panel {
    padding: 1.5rem !important;
}

.glass-stat-panel:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 140, 0, 0.2) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 140, 0, 0.1) !important;
}

/* Slate Neutrals & Iconography */
.text-slate {
    color: var(--slate-light) !important;
}

.icon-inactive {
    color: var(--slate-text) !important;
    opacity: 0.6;
}

.glow-orange {
    color: var(--neon-orange) !important;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.5));
}

/* Minimalist Table Professionalism */
.glass-table {
    width: 100%;
}

.glass-table thead th {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: var(--slate-text) !important;
    text-transform: uppercase;
    padding: 1.5rem 1.25rem !important; /* Increased for breathing room */
}

.table tbody td,
.table thead th,
.glass-table tbody td {
    padding: 1.5rem 1.25rem !important;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease !important;
    vertical-align: middle;
}

/* Professional Row Hover: Right-aligned Neon Accent */
.table tbody tr, 
.glass-table tbody tr {
    transition: all 0.3s ease !important;
    border-right: 3px solid transparent !important;
}

[dir="rtl"] .table tbody tr:hover,
[dir="rtl"] .glass-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-right-color: var(--neon-orange) !important;
    box-shadow: inset 8px 0 10px -6px rgba(255, 140, 0, 0.2) !important;
}

[dir="ltr"] .table tbody tr:hover,
[dir="ltr"] .glass-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-left: 3px solid var(--neon-orange) !important;
    box-shadow: inset -8px 0 10px -6px rgba(255, 140, 0, 0.2) !important;
}

/* Icon-focused Table Actions (Minimalist Neon) */
.btn-action-neon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important; /* No background */
    border: none !important;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.35) !important; /* Muted default */
    cursor: pointer;
}

.btn-action-edit:hover {
    color: var(--neon-orange) !important;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.7));
    transform: translateY(-2px);
}

.btn-action-delete:hover {
    color: #ff4d4d !important; /* Neon Red */
    filter: drop-shadow(0 0 10px rgba(255, 77, 77, 0.7));
    transform: translateY(-2px);
}

.btn-action-neon i, 
.btn-action-neon iconify-icon {
    font-size: 1.3rem !important;
}

/* Status Pill */
.status-pill-orange {
    background: rgba(255, 140, 0, 0.08);
    color: var(--neon-orange);
    border: 1px solid rgba(255, 140, 0, 0.2);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.2);
}

/* Layout Helpers */
.gap-y-dashboard {
    margin-top: 2rem !important;
}

/* Global Checkbox Overhaul: Pure Neon Orange (Programmatic Customization) */
.form-check-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 1.2rem !important;
    height: 1.2rem !important;
    background-color: transparent !important;
    background-image: none !important; /* Forced removal of default bootsrap/browser images */
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-check-input:hover {
    border-color: rgba(255, 140, 0, 0.6) !important;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.15) !important;
}

.form-check-input:checked {
    background-color: var(--neon-orange) !important;
    border-color: var(--neon-orange) !important;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.5) !important;
}

/* Programmatic Check Mark (Tick) Logic */
.form-check-input:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 10px;
    border: solid #0a0c10; /* Contrast Dark Navy on Orange */
    border-width: 0 2.5px 2.5px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    display: block !important;
}

.form-check-input:focus {
    border-color: var(--neon-orange) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 140, 0, 0.1) !important;
}

/* Role Permission Modules Custom Styling */
.role-permission-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
}

.role-permission-card:hover {
    border-color: rgba(255, 140, 0, 0.25) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 140, 0, 0.1) !important;
    transform: translateY(-4px);
}

.module-header {
    background: rgba(255, 255, 255, 0.02) !important;
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.module-title {
    color: var(--slate-light) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 !important;
}

/* Precision Alignment for Checkbox Lists */
.permission-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.permission-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important; /* Fixed 8px gap */
    margin-bottom: 0 !important;
}

.permission-item .form-check-label {
    color: #cbd5e1 !important;
    font-size: 0.85rem !important;
    cursor: pointer;
    line-height: 1.4;
    user-select: none;
}

.permission-item:hover .form-check-label {
    color: var(--neon-orange) !important;
}

/* Auth Page Reconstruction */
.auth {
    background-color: var(--bg-dark-navy) !important;
    min-height: 100vh;
}

.auth-left {
    background: #060d16 !important; /* Extremely dark navy for contrast */
    border-inline-end: 1px solid rgba(255, 255, 255, 0.05) !important;
    position: relative;
    overflow: hidden;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Dramatic Modern Neon Core */
.auth-left::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.15), transparent 70%);
    filter: blur(80px);
    z-index: 1;
}

.auth-logo-neon {
    position: relative;
    z-index: 2;
    max-width: 400px !important;
    padding: 2.5rem !important;
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 30px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 136, 255, 0.1) !important;
    filter: drop-shadow(0 0 30px rgba(0, 136, 255, 0.2));
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-right {
    background-color: var(--bg-dark-navy) !important;
}

/* Glass Inputs */
.neon-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--glass-border) !important;
    color: #f1f5f9 !important;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease !important;
}

.neon-input:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--neon-orange) !important;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.2) !important;
    outline: none !important;
}

.neon-input::placeholder {
    color: var(--slate-text) !important;
    opacity: 0.7;
}

/* Auth Logo Glow */
.auth-logo-neon {
    max-width: 280px;
    filter: drop-shadow(0 0 20px rgba(255, 140, 0, 0.15));
    transition: transform 0.5s ease;
}

.auth-logo-neon:hover {
    transform: scale(1.05);
}

/* Auth Links & Labels */
.auth a, .auth label {
    color: var(--slate-light) !important;
    transition: color 0.3s ease;
    text-decoration: none;
}

.auth a:hover {
    color: var(--neon-orange) !important;
}

/* Cleaned up redundant styles */

/* High-End Modern Neon Button (Blue Version for Login) */
.auth-right .btn-neon {
    background: var(--neon-blue-logo) !important;
    background: linear-gradient(135deg, #004282 0%, #0056a8 100%) !important;
    color: #ffffff !important; 
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 136, 255, 0.3), 0 0 20px rgba(0, 136, 255, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

.auth-right .btn-neon:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 136, 255, 0.5), 0 0 40px rgba(0, 136, 255, 0.3) !important;
}

/* Base Neon Button (Orange for Dashboard) */
.btn-neon {
    background: var(--neon-orange) !important;
    background: linear-gradient(135deg, #ff8c00 0%, #ffae42 100%) !important;
    color: #0c1524 !important; 
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3), 0 0 20px rgba(255, 140, 0, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

.btn-neon:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 140, 0, 0.5), 0 0 40px rgba(255, 140, 0, 0.3) !important;
}

.btn-neon:active {
    transform: translateY(0) scale(0.98);
}

/* Pulse Animation refined */
@keyframes neon-pulse-modern {
    0% { box-shadow: 0 0 15px rgba(255, 140, 0, 0.3); }
    50% { box-shadow: 0 0 35px rgba(255, 140, 0, 0.6); }
    100% { box-shadow: 0 0 15px rgba(255, 140, 0, 0.3); }
}

.pulse-neon-anim {
    animation: neon-pulse-modern 2s infinite ease-in-out;
}

/* ==========================================================================
   NEW NEON BUTTON SYSTEM
   ========================================================================== */

/* Neon Orange Base Button */
.btn-neon-orange {
    background: var(--neon-orange) !important;
    background: linear-gradient(135deg, #ff8c00 0%, #ffae42 100%) !important;
    color: #060d16 !important; /* Extremely dark Navy for best contrast */
    font-weight: 750 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.25), 0 0 10px rgba(255, 140, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    padding: 0.6rem 1.5rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 10px !important;
}

/* Badge Systems */
.bg-neon-orange-transparent {
    background: rgba(255, 140, 0, 0.1) !important;
    color: var(--neon-orange) !important;
    border: 1px solid rgba(255, 140, 0, 0.2) !important;
    padding: 4px 10px !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
}

.btn-neon-orange:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.45), 0 0 15px rgba(255, 140, 0, 0.2) !important;
    filter: brightness(1.1);
}

/* Neon Red Base Button */
.btn-neon-red {
    background: #ff4d4d !important;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%) !important;
    color: #ffffff !important;
    font-weight: 750 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.25), 0 0 10px rgba(255, 65, 108, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    padding: 0.6rem 1.5rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 10px !important;
}

.btn-neon-red:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 65, 108, 0.45), 0 0 15px rgba(255, 65, 108, 0.2) !important;
    filter: brightness(1.1);
}

/* Minimalist Table Action Buttons */
.btn-action-neon {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    color: var(--slate-light) !important;
    font-size: 1.1rem !important;
}

.btn-action-edit:hover {
    background: rgba(255, 140, 0, 0.08) !important;
    border-color: rgba(255, 140, 0, 0.3) !important;
    color: var(--neon-orange) !important;
    box-shadow: 0 0 12px rgba(255, 140, 0, 0.2) !important;
    transform: translateY(-2px);
}

.btn-action-delete:hover {
    background: rgba(255, 77, 77, 0.08) !important;
    border-color: rgba(255, 77, 77, 0.3) !important;
    color: #ff4d4d !important;
    box-shadow: 0 0 12px rgba(255, 77, 77, 0.2) !important;
    transform: translateY(-2px);
}

/* Animations */
@keyframes neon-pulse-orange {
    0% { box-shadow: 0 0 10px rgba(255, 140, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 140, 0, 0.5); }
    100% { box-shadow: 0 0 10px rgba(255, 140, 0, 0.2); }
}

@keyframes neon-pulse-red {
    0% { box-shadow: 0 0 10px rgba(255, 77, 77, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 77, 77, 0.5); }
    100% { box-shadow: 0 0 10px rgba(255, 77, 77, 0.2); }
}

.pulse-orange { animation: neon-pulse-orange 2s infinite ease-in-out; }
.pulse-red { animation: neon-pulse-red 2s infinite ease-in-out; }

/* ==========================================================================
   MINIMALIST FLOATING BREADCRUMBS
   ========================================================================== */
.neon-breadcrumb-wrapper {
    display: flex;
    justify-content: flex-end; /* RTL: Aligned to the right */
    margin-bottom: 4px;
    padding: 0 4px;
}

.neon-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 11px !important;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.neon-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d; /* Muted Slate */
}

.neon-breadcrumb li a {
    color: #6c757d !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.neon-breadcrumb li a:hover {
    color: var(--neon-orange) !important;
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.6);
}

.neon-breadcrumb li::after {
    content: '/';
    font-size: 10px;
    opacity: 0.3;
}

.neon-breadcrumb li:last-child::after {
    display: none;
}

.neon-breadcrumb li.active {
    color: rgba(255, 140, 0, 0.7) !important;
    cursor: default;
}

/* --- Premium Global Form Styling (Neon Orange Theme) --- */

.form-label, .col-form-label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: 0.3px;
    display: inline-block;
}

/* Placeholder visibility improvement */
::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 300;
}

/* Global Neon Checkbox Styling */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    background-color: var(--neon-orange);
    border-color: var(--neon-orange);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.4);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--neon-orange) !important;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.25) !important;
    outline: none !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 0.85rem;
}

/* Row Spacing for Forms */
.form-group-row {
    margin-bottom: 1.5rem !important;
}

/* --- Premium Unified Button Styling --- */
.btn-neon-orange, .btn-neon-reset {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 0.6rem 2.5rem !important; /* Balanced horizontal padding */
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important; /* Crucial: Prevent icon/text stacking */
    height: 48px !important; /* Uniform height */
    text-decoration: none !important;
}

.btn-neon-orange {
    background-color: var(--neon-orange) !important;
    color: #0a0c10 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3) !important;
}

/* --- Activity Logs & Technical UI Enhancements --- */

/* Custom Neon Scrollbar */
.neon-scrollbar::-webkit-scrollbar {
    width: 4px !important;
    height: 4px !important;
}

.neon-scrollbar::-webkit-scrollbar-track {
    background: rgba(10, 12, 16, 0.5) !important;
    border-radius: 10px;
}

.neon-scrollbar::-webkit-scrollbar-thumb {
    background: var(--neon-orange) !important;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

/* Audit Table Specifics */
.audit-table thead {
    background: rgba(0, 0, 0, 0.25) !important;
}

.audit-table th {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 140, 0, 0.15) !important;
    padding: 12px 15px !important;
}

.audit-table td {
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.05) !important;
    padding: 15px !important;
    vertical-align: middle;
}

/* Technical Change Cards */
.tech-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-block;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.8rem;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.tech-card:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 140, 0, 0.2);
}

/* Neon Status Badges */
.badge-neon {
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.4) !important;
    border-width: 1px !important;
    border-style: solid !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-neon-created {
    color: #10b981 !important; /* Emerald */
    border-color: rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.badge-neon-updated {
    color: var(--neon-orange) !important;
    border-color: rgba(255, 140, 0, 0.3) !important;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.1);
}

.badge-neon-deleted {
    color: #ef4444 !important; /* Red */
    border-color: rgba(239, 68, 68, 0.3) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.badge-neon-blue {
    color: #38bdf8 !important; /* Sky Blue */
    border-color: rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
}

/* Semantic Badges Aliases */
.badge-neon-success {
    color: #10b981 !important; /* Emerald */
    border-color: rgba(16, 185, 129, 0.3) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}
.badge-neon-warning {
    color: var(--neon-orange) !important;
    border-color: rgba(255, 140, 0, 0.3) !important;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.1);
}
.badge-neon-danger {
    color: #ef4444 !important; /* Red */
    border-color: rgba(239, 68, 68, 0.3) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}
.badge-neon-info {
    color: #38bdf8 !important; /* Sky Blue */
    border-color: rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
}

/* Auth Page Specifics */
body.auth-page {
    background-color: #000000 !important;
    color: #ffffff;
}

.auth-logo-neon {
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.6));
    transition: filter 0.3s ease;
}
.auth-logo-neon:hover {
    filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.8));
}

.neon-input:focus {
    border-color: var(--neon-blue) !important;
    background-color: rgba(56, 189, 248, 0.05) !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3) !important;
    color: #fff !important;
}

.link-neon-orange {
    color: #94a3b8;
    transition: all 0.3s ease;
    text-decoration: none;
}
.link-neon-orange:hover {
    color: var(--neon-orange) !important;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.btn-neon-blue-intense {
    background: linear-gradient(135deg, #004282 0%, #0056a8 100%) !important;
    color: white !important;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 66, 130, 0.5) !important;
    transition: all 0.3s ease;
    font-weight: 600;
}
.btn-neon-blue-intense:hover {
    box-shadow: 0 10px 35px rgba(0, 66, 130, 0.8), 0 0 15px rgba(255, 140, 0, 0.3) !important;
    transform: translateY(-2px);
    color: white !important;
}

/* RTL Specific fixes for icon spacing */
[dir="rtl"] .icon-field .form-control {
    padding-right: 45px !important;
    padding-left: 15px !important;
}

[dir="rtl"] .position-relative .icon-field .form-control {
    padding-left: 45px !important; /* To clear the password eye toggle */
}

[dir="rtl"] .icon-field .icon {
    right: 15px !important;
    left: auto !important;
}

[dir="rtl"] .toggle-password {
    left: 15px !important;
    right: auto !important;
}

.btn-neon-orange:hover {
    box-shadow: 0 0 25px rgba(255, 140, 0, 0.5) !important;
    transform: translateY(-2px);
    color: #000 !important;
}

/* Reset Button (Neon Dark Variant) */
.btn-neon-reset {
    background-color: rgba(25, 30, 40, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.btn-neon-reset:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-neon-orange iconify-icon, 
.btn-neon-reset iconify-icon {
    font-size: 1.25rem !important;
    line-height: 1;
}

/* Pulse Animation */
.pulse-orange {
    animation: neon-pulse 2s infinite;
}

@keyframes neon-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 140, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0); }
}

/* Alert Styling (Minimalist) */
.form-error-msg {
    color: #ff4d4d;
    font-size: 0.75rem;
    margin-top: 0.4rem;
    display: block;
}

/* SweetAlert2 Neon Glassmorphism Overrides */
.swal2-glass-popup {
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8) !important;
    border-radius: 16px !important;
}

.swal2-glass-popup.swal2-toast {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    padding: 1rem !important;
}

.swal2-neon-title {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

.swal2-neon-content {
    color: #cbd5e1 !important;
}

/* Neon Borders based on type */
.swal2-border-success {
    border-right: 4px solid var(--neon-success) !important;
}
.swal2-border-error {
    border-right: 4px solid var(--neon-danger) !important;
}
.swal2-border-warning {
    border-right: 4px solid var(--neon-orange) !important;
}
.swal2-border-info {
    border-right: 4px solid var(--neon-blue) !important;
}
/* Badge Glow Variants */
.badge-glow-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3) !important;
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}

.badge-glow-info {
    background: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
    border: 1px solid rgba(6, 182, 212, 0.5) !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3) !important;
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.5);
}

.badge-glow-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3) !important;
    text-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
}

/* Action Icons (Transparent Glow) */
.btn-action-glow {
    background: transparent !important;
    border: none !important;
    padding: 6px !important;
    transition: all 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    color: var(--slate-text) !important; /* Default Muted */
}

/* Make action icons significantly larger and clearer */
.btn-action-glow iconify-icon,
.btn-action-glow i {
    font-size: 1.55rem !important; 
    line-height: 1;
}

.btn-action-glow:hover {
    background: rgba(255, 140, 0, 0.08) !important;
    color: var(--neon-orange) !important;
    filter: drop-shadow(0 0 10px var(--neon-orange)) !important;
    transform: translateY(-2px);
}

/* Semantic Glow Variants (Initial Colors) */
.btn-action-glow-primary { color: var(--neon-blue) !important; }
.btn-action-glow-success { color: var(--neon-success) !important; }
.btn-action-glow-danger  { color: var(--neon-danger) !important; }
.btn-action-glow-info    { color: var(--neon-blue) !important; }
.btn-action-glow-warning { color: var(--neon-orange) !important; }

/* Force Unified Orange Hover for everything in HR using these classes */
.btn-action-glow-primary:hover,
.btn-action-glow-success:hover,
.btn-action-glow-danger:hover,
.btn-action-glow-info:hover,
.btn-action-glow-warning:hover {
    color: var(--neon-orange) !important;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.7)) !important;
}

/* PDF Export Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin 0.8s linear infinite; }
