:root {
    --color-bg: #151521;
    --mesh-c1: hsla(180, 83%, 39%, 0.4);
    --mesh-c2: hsla(240, 86%, 48%, 0.4);
    --mesh-c3: hsla(22, 84%, 36%, 0.4);
    --mesh-c4: hsla(340, 77%, 34%, 0.4);
    --mesh-c5: hsla(260, 83%, 37%, 0.4);
    --mesh-c6: hsla(343, 83%, 38%, 0.4);
    --mesh-c7: hsla(220, 72%, 39%, 0.4);
}

/* Global Mesh Gradient - Optimized for speed */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--color-bg);
    background-image:
        radial-gradient(at 40% 20%, var(--mesh-c1) 0%, transparent 70%),
        radial-gradient(at 80% 0%, var(--mesh-c2) 0%, transparent 70%),
        radial-gradient(at 0% 50%, var(--mesh-c3) 0%, transparent 70%),
        radial-gradient(at 80% 50%, var(--mesh-c4) 0%, transparent 70%),
        radial-gradient(at 0% 100%, var(--mesh-c5) 0%, transparent 70%),
        radial-gradient(at 80% 100%, var(--mesh-c6) 0%, transparent 70%),
        radial-gradient(at 0% 0%, var(--mesh-c7) 0%, transparent 70%);
    pointer-events: none;
}

/* Universal Dark Theme Glassmorphism - NO BLUR FOR MAX SPEED */
body {
    background-color: var(--color-bg) !important;
}

/* All main UI blocks and cards */
.admin-layout,
.sidebar,
.header,
.card,
.modal,
.modal-content,
.modal-body,
.modal-header,
.modal-footer,
.chat-header,
.chat-body-wrapper,
.chat-sidebar,
.chat-reply-box,
.chat-bubble-staff,
.chat-bubble-user,
.chat-bubble-content {
    background-color: rgba(30, 30, 45, 0.6) !important;
    /* Slightly more opaque since no blur */
    border-color: rgba(255, 255, 255, 0.08) !important;
    background-image: none !important;
}

/* Sidebar Specifics - Fixed Position */
.sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 250px !important;
    z-index: 1000 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Header Specifics - Fixed Position */
.header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 250px !important;
    /* Sidebar width */
    height: 60px !important;
    z-index: 900 !important;
    background-color: rgba(21, 21, 33, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Main Content Wrapper - Ensure no duplicate margins */
.main-content {
    margin-left: 250px !important;
    width: calc(100% - 250px) !important;
    min-height: 100vh !important;
}

.content {
    margin-top: 60px !important;
    /* Fixed Header height */
    padding: 30px !important;
}

/* Form Elements */
.form-control,
.chat-sidebar-select,
.chat-reply-textarea,
.header-search input,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"] {
    background: rgba(21, 21, 33, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Navigation */
.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(0, 158, 247, 0.2) 0%, transparent 100%) !important;
    border-left: 3px solid #009ef7 !important;
    opacity: 1;
}