:root {
    /* Core Branding */
    --primary-vibrant: #e65e22;
    --primary-glow: rgba(230, 94, 34, 0.4);

    /* Deep Dark Theme (#000000) */
    --bg-deep: #212121;
    --bg-surface: rgba(25, 25, 25, 0.6);
    --layout-bg: #171717;
    --sidebar-bg: #171717;
    --header-bg: #171717;
    --content-bg: #212121;

    /* Typography & Borders */
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.08);
    --sidebar-border: rgba(255, 255, 255, 0.06);
    --header-border: rgba(255, 255, 255, 0.06);
    --input-bg: #303030;

    /* Layout Dimensions */
    --sidebar-width: 72px;
    --header-height: 64px;
    --ui-height: 48px;

    /* Navigation */
    --nav-item-radius: 12px;
    --nav-hover-bg: rgba(230, 94, 34, 0.12);
    --nav-active-bg: rgba(230, 94, 34, 0.2);
    --nav-icon-dim: var(--text-dim);
    --nav-icon-active: var(--primary-vibrant);
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

input:focus {
    outline: unset !important;
    box-shadow: unset !important;
}

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
.layout-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: var(--layout-bg);
}

/* ============================================================
   SIDEBAR (Fixed Icon-only)
   ============================================================ */
.layout-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 24px;
    z-index: 999;
    overflow: visible;
}

.sidebar-brand {
    margin-bottom: 32px;
    transition: all 0.25s ease;
    text-decoration: none;
}

.sidebar-brand img {
    width: 100%;
    height: var(--header-height);
}

.sidebar-nav {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px;
    overflow-y: visible;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--nav-item-radius);
    text-decoration: none;
    color: var(--nav-icon-dim);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    border: none;
    background: transparent;
    flex-shrink: 0;
}

.sidebar-nav-item:hover {
    background: var(--nav-hover-bg);
    color: var(--text-main);
}

.sidebar-nav-item.active {
    background: var(--nav-active-bg);
    color: var(--nav-icon-active);
}

.sidebar-nav-item svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

/* Custom Checkbox */
.form-check-input {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--border-glass) !important;
    cursor: pointer;
    width: 18px !important;
    height: 18px !important;
    border-radius: 4px !important;
}

.form-check-input:checked {
    background-color: var(--primary-vibrant) !important;
    border-color: var(--primary-vibrant) !important;
    box-shadow: 0 0 10px var(--primary-glow) !important;
}

/* Floating Bulk Actions Bar */
.bulk-actions-bar {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(100px);
    display: none;
    align-items: center;
    gap: 16px;
    background: #1e1e1e !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 16px !important;
    border: 1px solid var(--primary-vibrant) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow) !important;
    z-index: 9999 !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.bulk-actions-bar.active {
    display: flex !important;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.sidebar-nav-item:hover svg {
    transform: scale(1.1);
}

/* Tooltip (Hover Toolbar) */
.sidebar-tooltip {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: #1a1a2e;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1100;
}

.sidebar-tooltip::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: #1a1a2e;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-nav-item:hover .sidebar-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.sidebar-footer {
    width: 100%;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--sidebar-border);
    padding-top: 12px;
    margin-top: 8px;
}

/* ============================================================
   HEADER
   ============================================================ */
.layout-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    padding: 0 28px;
    z-index: 1040;
    gap: 16px;
}

.header-title-area {
    flex: 1;
}

.header-page-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.3px;
}

.header-breadcrumb {
    font-size: 12px;
    color: var(--text-dim);
    margin: 2px 0 0;
}

/* Search overrides */
.header-search-wrap .bw-input.input-glass {
    height: 40px !important;
    width: 220px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.header-search-wrap .bw-input.input-glass:focus {
    width: 260px !important;
    border-color: var(--primary-vibrant) !important;
}

.header-divider {
    width: 1px;
    height: 24px;
    background: var(--border-glass);
}

.header-bell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-glass) !important;
    transition: all 0.2s ease !important;
}

.header-bell:hover {
    background: var(--nav-hover-bg) !important;
    border-color: rgba(99, 71, 234, 0.3) !important;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.layout-main {
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
    background-color: var(--content-bg);
}

.layout-content {
    margin-top: var(--header-height);
    padding: 28px;
    flex: 1;
    overflow-y: auto;
    height: calc(100vh - var(--header-height));
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.layout-content.reloading {
    opacity: 0.4;
    pointer-events: none;
    filter: blur(1px);
}

.layout-content::-webkit-scrollbar {
    width: 5px;
}

.layout-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

/* ============================================================
   COMPONENTS & UTILITIES
   ============================================================ */
.glass {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid var(--border-glass) !important;
}

.input-glass,
select.input-glass,
.clickable.input-glass {
    height: 42px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    background: var(--input-bg) !important;
    border: 1px solid var(--border-glass) !important;
    color: var(--text-main) !important;
    border-radius: .5rem;
    transition: all 0.2s ease-in-out;
    font-family: inherit !important;
    position: relative;
}

/* Adjust padding when icons are present */
.relative:has(.prefix) .input-glass {
    padding-left: 44px !important;
}

/* Fix icon container positioning */
.prefix,
.suffix {
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}


select.input-glass {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
    padding-right: 40px !important;
    appearance: none;
    line-height: 42px;
    cursor: pointer;
}

select.input-glass option {
    background-color: #171717 !important;
    color: #ffffff !important;
    padding: 12px !important;
}




.input-glass:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.input-glass:focus {
    border-color: var(--primary-vibrant) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    outline: none !important;
}


/* Placeholder styling */
.input-glass::placeholder,
.bw-input::placeholder,
input::placeholder {
    color: #828282 !important;
    opacity: 1;
    /* Ensure full opacity in Firefox */
}

/* Icon styling for inputs */
.prefix svg,
.suffix svg,
.bw-input-container svg {
    color: #828282 !important;
}


/* Integrated Validation Message */
.input-glass.is-invalid,
.bw-input.is-invalid {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
}


.invalid-feedback-integrated {
    position: absolute;
    bottom: -18px;
    right: 4px;
    font-size: 10px;
    color: #ef4444;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* Shake Animation */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

.input-glass.is-invalid {
    animation: shake 0.2s ease-in-out 0s 2;
}

textarea.form-control {
    min-height: calc(5.5em + .75rem + calc(var(--bs-border-width) * 2));
}

/* Custom Primary Color Utilities */
.bg-primary-vibrant {
    background-color: var(--primary-vibrant) !important;
}

.text-primary-vibrant {
    color: var(--primary-vibrant) !important;
}

/* Bladewind Overrides */
.bw-button.primary {
    background-color: var(--primary-vibrant) !important;
    border-color: var(--primary-vibrant) !important;
}

.bw-statistic {
    background: var(--bg-surface) !important;
    border-color: var(--border-glass) !important;
    border-radius: 16px !important;
    backdrop-filter: blur(20px);
}

/* Custom Pill Tab Override for Theme */
.bw-tab.pills ul {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-glass) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    width: 100%;
    margin-bottom: 0 !important;
    overflow-x: auto;
    flex-wrap: nowrap !important;
}

.bw-tab.pills ul::-webkit-scrollbar {
    height: 4px;
}

.bw-tab.pills ul::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.bw-tab.pills .atab {
    margin: 0 !important;
    flex: 0 0 auto;
}

.bw-tab.pills .atab span {
    padding: 6px 16px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    color: var(--text-dim) !important;
    background: transparent !important;
    display: inline-block;
}

.bw-tab.pills .atab span:hover {
    color: var(--text-main) !important;
}

.bw-tab.pills .atab span.is-active {
    background-color: var(--primary-vibrant) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px var(--primary-glow) !important;
}

/* Premium Table Styles */
.bw-table-container {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.bw-table {
    background: transparent !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

.bw-table thead th {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--text-dim) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
    padding: 16px 24px !important;
    border-bottom: 1px solid var(--border-glass) !important;
    border-top: none !important;
}

.bw-table tbody td {
    padding: 16px 24px !important;
    color: var(--text-main) !important;
    border-bottom: 1px solid var(--border-glass) !important;
    background: transparent !important;
    vertical-align: middle !important;
    font-size: 14px;
}

.bw-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03) !important;
}

.bw-table tbody tr:last-child td {
    border-bottom: none !important;
}

/* DataTable Specific Pagination & Info */
.bw-pagination-usersTable {
    padding: 10px 24px !important;
    border-top: 1px solid var(--border-glass) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-dim) !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    backdrop-filter: blur(10px);
}

.bw-pagination-usersTable button {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    color: var(--text-main) !important;
}

.bw-pagination-usersTable button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.bw-pagination-usersTable .font-semibold {
    color: var(--text-main) !important;
}

/* Accent Pills & Badges */
.accent-pill {
    background: rgba(99, 71, 234, 0.15) !important;
    color: var(--primary-vibrant) !important;
    border: 1px solid rgba(99, 71, 234, 0.3) !important;
    padding: 4px 14px !important;
    border-radius: 20px !important;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 11px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    min-width: 85px;
    height: 26px;
    box-shadow: 0 0 10px rgba(99, 71, 234, 0.1);
}

.badge {
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 6px 12px !important;
    border-radius: 6px !important;
}

/* ============================================================
   DATA DISPLAY (TABLE & CARDS)
   ============================================================ */
.data-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.toolbar-search {
    flex: 1;
    min-width: 250px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-toggle {
    display: flex;
    background: var(--input-bg);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--border-glass);
}

.view-toggle-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    color: var(--text-main);
}

.view-toggle-btn.active {
    background: var(--primary-vibrant);
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Card View Grid */
.data-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    grid-auto-rows: 1fr;
}

.data-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 20px;
    padding: 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.data-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary-vibrant) !important;
}

.data-card.ultra-compact {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    min-height: 120px;
}

.quick-action-btn {
    width: 26px !important;
    height: 26px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.7;
    transition: all 0.2s ease !important;
}

.quick-action-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1) !important;
}

.data-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.data-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-vibrant);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
}

.data-card-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.data-card-info p {
    font-size: 13px;
    color: var(--text-dim);
    margin: 2px 0 0;
}

.data-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.detail-item label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.detail-item span {
    font-size: 12px;
    font-weight: 600;
}

.data-card-actions {
    display: flex;
    gap: 8px;
}

/* Pagination Styling */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.page-item .page-link {
    background: var(--input-bg);
    border: 1px solid var(--border-glass);
    color: var(--text-dim);
    border-radius: 10px !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-item.active .page-link {
    background: var(--primary-vibrant) !important;
    border-color: var(--primary-vibrant) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.page-item .page-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    background: transparent;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .data-card-grid {
        grid-template-columns: 1fr;
        /* Stack cards on mobile */
    }
}

@media (max-width: 768px) {
    .layout-sidebar {
        display: none !important;
    }

    .layout-main {
        margin-left: 0 !important;
    }

    .layout-header {
        left: 0 !important;
        padding: 0 16px;
        height: 60px;
        background: rgba(23, 23, 23, 0.8) !important;
        backdrop-filter: blur(15px);
    }

    .header-search-wrap {
        display: none !important;
        /* Hide search in main header on mobile */
    }

    .layout-content {
        padding: 10px 10px calc(110px + env(safe-area-inset-bottom));
        height: calc(100vh - 60px);
        overflow-y: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .layout-content::-webkit-scrollbar {
        display: none;
    }

    body::-webkit-scrollbar {
        display: none;
    }

    body {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .mobile-bottom-nav {
        position: fixed;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 10px;
        right: 10px;
        height: 64px;
        background: rgba(23, 23, 23, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(25px) saturate(180%);
        display: flex;
        z-index: 1040;
        border-radius: 20px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
        padding: 0 10px;
    }

    .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-decoration: none;
        color: var(--text-dim);
        transition: all 0.3s ease;
        position: relative;
    }

    .mobile-nav-item.active {
        color: var(--primary-vibrant);
    }

    .mobile-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 8px;
        width: 4px;
        height: 4px;
        background: var(--primary-vibrant);
        border-radius: 50%;
        box-shadow: 0 0 10px var(--primary-vibrant);
    }

    .mobile-nav-item .nav-icon {
        width: 22px;
        height: 22px;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .mobile-nav-item.active .nav-icon {
        transform: translateY(-4px);
    }

    .mobile-nav-label {
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* ============================================================
   RESPONSIVE OFFCANVAS
   ============================================================ */
.offcanvas-glass {
    background: var(--sidebar-bg) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
}

.offcanvas-title {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
}

.offcanvas-body {
    padding: 2rem;
}

@media (max-width: 767.98px) {
    .offcanvas-responsive.offcanvas-end {
        top: auto !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-height: 90vh !important;
        transform: translateY(100%);
        border-left: none !important;
        border-top-left-radius: 2rem !important;
        border-top-right-radius: 2rem !important;
    }

    .offcanvas-responsive.offcanvas-end.show {
        transform: translateY(0) !important;
    }

    .offcanvas-header {
        padding: 1.25rem 1.5rem;
    }

    .offcanvas-body {
        padding: 1.5rem;
    }
}

/* Bladewind Select Glassmorphism Overrides */
.bw-select .clickable {
    min-width: 150px !important;
    min-height: 42px !important;
    height: 42px !important;
    background: var(--input-bg) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: .5rem !important;
    color: var(--text-main) !important;
    padding-left: 16px !important;
    padding-right: 12px !important;
    transition: all 0.2s ease-in-out !important;
    display: flex !important;
    align-items: center !important;
}

.bw-select .clickable:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.bw-select .clickable:focus,
.bw-select .clickable:focus-within {
    border-color: var(--primary-vibrant) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    outline: none !important;
}

.bw-select .placeholder,
.bw-select .display-area {
    color: var(--text-main) !important;
    font-size: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    align-items: center !important;
    height: 100% !important;
    flex-grow: 1 !important;
    overflow: hidden !important;
    margin-right: 12px !important;
    /* Gap before reset button */
}

.bw-select .placeholder:not(.hidden),
.bw-select .display-area:not(.hidden) {
    display: flex !important;
}

.bw-select .placeholder.hidden,
.bw-select .display-area.hidden {
    display: none !important;
}

/* Arrow Toggling */
.bw-select:has(.bw-select-items-container:not(.hidden)) .down-arrow {
    display: none !important;
}

.bw-select:has(.bw-select-items-container:not(.hidden)) .up-arrow {
    display: block !important;
}

.bw-select .opener {
    width: 14px !important;
    height: 14px !important;
    opacity: 0.5 !important;
}

.bw-select .display-area::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Reset button styling */
.bw-select .reset {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    width: 20px !important;
    height: 20px !important;
    padding: 3px !important;
    border-radius: 50% !important;
}

.bw-select .reset:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ff5c5c !important;
}

/* Dropdown Styling */
.bw-select-items-container {
    background: #1e1e1e !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    margin-top: 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
}

.bw-select-items {
    padding: 6px !important;
}

.bw-select-item {
    color: var(--text-main) !important;
    padding: 10px 14px !important;
    margin: 2px 0 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

.bw-select-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.bw-select-item[data-selected="true"],
.bw-select-item.selected {
    background: rgba(99, 71, 234, 0.15) !important;
    color: var(--primary-vibrant) !important;
    font-weight: 600 !important;
}

/* Search bar inside select */
.bw-select-items-container .search-bar {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid var(--border-glass) !important;
    padding: 8px !important;
}

.bw-select-items-container .bw_search {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 6px !important;
    color: var(--text-main) !important;
    height: 34px !important;
    padding: 0 10px !important;
}

/* Glassmorphism Modals */
.bw-modal {
    backdrop-filter: blur(4px) !important;
    background: rgba(0, 0, 0, 0.6) !important;
}

.bw-modal>div>div {
    background: rgba(30, 30, 45, 0.8) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden;
}

.bw-modal .modal-title {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
}

.bw-modal .modal-text {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bw-modal .modal-footer {
    background: rgba(255, 255, 255, 0.02) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 20px 30px !important;
}

.bw-modal .modal-icon {
    opacity: 0.9;
}

.bw-modal .modal-close-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.bw-modal .modal-close-icon:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Floating Action Button (Mobile) */
.fab-btn {
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom));
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-vibrant), #f97316);
    border: none;
    color: white;
    box-shadow: 0 8px 24px rgba(230, 94, 34, 0.4);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-btn:active {
    transform: scale(0.9) translateY(2px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Blurry Offcanvas Backdrop */
.offcanvas-backdrop.show {
    backdrop-filter: blur(4px) !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    opacity: 1 !important;
}

/* Custom Status Colors */
.text-purple {
    color: #a855f7 !important;
}

.bg-purple {
    background-color: #a855f7 !important;
}

.border-purple {
    border-color: #a855f7 !important;
}

.text-indigo {
    color: #6366f1 !important;
}

.bg-indigo {
    background-color: #6366f1 !important;
}

.border-indigo {
    border-color: #6366f1 !important;
}

.text-orange {
    color: #f97316 !important;
}

.bg-orange {
    background-color: #f97316 !important;
}

.border-orange {
    border-color: #f97316 !important;
}

.text-teal {
    color: #14b8a6 !important;
}

.bg-teal {
    background-color: #14b8a6 !important;
}

.border-teal {
    border-color: #14b8a6 !important;
}

.text-pink {
    color: #ec4899 !important;
}

.bg-pink {
    background-color: #ec4899 !important;
}

.border-pink {
    border-color: #ec4899 !important;
}