/**
 * Arise Suite - Core Component Styles & Layout
 * Structural styling agnostic of Light/Dark color themes.
 */

/* Base resets & typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--arise-body-bg);
    color: var(--arise-text-main);
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

/* Arise Pulse Metric Card Shorthand */
.pulse-card,
div.pulse-card {
    padding: 1.25rem !important;
    border-radius: 0.75rem !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(21, 42, 78, 0.06) !important;
    transition: all 0.2s ease !important;
}

.pulse-card:hover,
div.pulse-card:hover {
    box-shadow: 0 4px 12px rgba(21, 42, 78, 0.1) !important;
    border-color: #94a3b8 !important;
}

[data-bs-theme="dark"] .pulse-card,
[data-bs-theme="dark"] div.pulse-card {
    background-color: #0f192b !important;
    border: 1px solid #2d4369 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}

[data-bs-theme="dark"] .pulse-card:hover,
[data-bs-theme="dark"] div.pulse-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
    border-color: #3b5a8c !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(21, 42, 78, 0.2);
    border-radius: 4px;
}

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

/* Sidebar Styling */
.app-sidebar {
    width: 275px;
    background: linear-gradient(180deg, var(--arise-sidebar-bg) 0%, #0d1a30 100%);
    color: var(--arise-sidebar-text);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1020;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    position: relative;
    flex-shrink: 0;
}

/* ======================================================
   Sidebar Collapsed State — DESKTOP ONLY (min-width: 992px)
   On mobile, .sidebar-collapsed means the sidebar is OPEN.
   ====================================================== */
@media (min-width: 992px) {
    .sidebar-collapsed .app-sidebar {
        width: 72px;
    }

    .sidebar-collapsed .app-sidebar .brand-title,
    .sidebar-collapsed .app-sidebar .brand-badge,
    .sidebar-collapsed .app-sidebar .sidebar-nav span:not(.brand-badge),
    .sidebar-collapsed .app-sidebar .nav-item-header,
    .sidebar-collapsed .app-sidebar .sidebar-tenant-box,
    .sidebar-collapsed .app-sidebar .menu-badge,
    .sidebar-collapsed .app-sidebar div[style*="background: rgba(255, 255, 255, 0.06)"] {
        display: none !important;
    }

    .sidebar-collapsed .app-sidebar .sidebar-brand {
        padding: 1.25rem 0.85rem;
        justify-content: center;
    }

    .sidebar-collapsed .app-sidebar .sidebar-link {
        padding: 0.75rem 0;
        justify-content: center;
        text-align: center;
    }

    .sidebar-collapsed .app-sidebar .sidebar-link i {
        font-size: 1.15rem;
        margin: 0;
    }
}

@media (max-width: 991.98px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
        z-index: 1045;
    }
    /* On mobile, .sidebar-collapsed means OPEN — slide in full-width */
    .sidebar-collapsed .app-sidebar {
        width: 275px;
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
    }
    .sidebar-collapsed .app-sidebar .sidebar-link {
        padding: 0.65rem 1.5rem;
        justify-content: flex-start;
    }
    /* Sidebar backdrop overlay (tapping closes sidebar) */
    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 1040;
    }
    .sidebar-collapsed .sidebar-backdrop {
        display: block;
    }
}



.sidebar-brand {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.1);
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--arise-orange) 0%, #ff8548 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px var(--arise-orange-glow);
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-badge {
    font-size: 0.65rem;
    background: rgba(232, 98, 44, 0.2);
    color: #ff9b6a;
    border: 1px solid rgba(232, 98, 44, 0.3);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Tenant Context Badge in Sidebar */
.sidebar-tenant-box {
    margin: 1rem 1.25rem 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-tenant-box:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(232, 98, 44, 0.5);
}

.sidebar-tenant-box .text-muted,
.app-sidebar .sidebar-tenant-box .text-muted {
    color: #a5bccc !important;
    font-size: 0.72rem;
    font-weight: 500;
}

.sidebar-tenant-box .text-white {
    color: #ffffff !important;
    font-weight: 600;
}

.sidebar-tenant-box i.fa-chevron-down {
    color: #a5bccc !important;
}

.sidebar-nav {
    padding: 0.75rem 0 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-item-header {
    padding: 1rem 1.5rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--arise-sidebar-text-muted);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1.5rem;
    color: var(--arise-sidebar-text);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background-color: var(--arise-sidebar-hover);
    color: #ffffff;
    padding-left: 1.7rem;
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(232, 98, 44, 0.18) 0%, transparent 100%);
    color: #ffffff;
    font-weight: 600;
    border-left-color: var(--arise-orange);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--arise-sidebar-text-muted);
    transition: color 0.2s ease;
}

.sidebar-link:hover i,
.sidebar-link.active i {
    color: var(--arise-orange);
}

.sidebar-link .menu-badge {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
}

/* Main Content Area */
.app-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--arise-body-bg);
}

/* Header / Topbar */
.app-header {
    height: 64px;
    background-color: var(--arise-header-bg);
    border-bottom: 1px solid var(--arise-border-color);
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--arise-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1010;
}

/* Header Control Button & Dropdown Styles */
.header-control-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 0.75rem;
    border-radius: 9999px;
    border: 1px solid var(--arise-border-color);
    background-color: var(--arise-card-bg);
    color: var(--arise-text-main);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.header-control-btn:hover,
.header-control-btn:focus {
    color: var(--arise-orange);
    border-color: var(--arise-orange);
    background-color: var(--arise-orange-subtle);
    box-shadow: 0 2px 6px rgba(232, 98, 44, 0.15);
}

.header-icon-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--arise-border-color);
    background-color: var(--arise-card-bg);
    color: var(--arise-text-muted);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.header-icon-btn:hover {
    color: var(--arise-orange);
    border-color: var(--arise-orange);
    background-color: var(--arise-orange-subtle);
    transform: translateY(-1px);
}

.header-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.25rem 0.65rem 0.25rem 0.35rem;
    border-radius: 9999px;
    border: 1px solid var(--arise-border-color);
    background-color: var(--arise-card-bg);
    color: var(--arise-text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.header-user-btn:hover {
    border-color: var(--arise-orange);
    box-shadow: 0 2px 8px rgba(232, 98, 44, 0.15);
}

.header-divider {
    width: 1px;
    height: 24px;
    background-color: var(--arise-border-color);
    margin: 0 0.25rem;
}

/* User Avatar Circle */
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--arise-orange) 0%, #ff8548 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 6px rgba(232, 98, 44, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-input-group {
    background: var(--arise-body-bg);
    border: 1px solid var(--arise-border-color);
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
    transition: all 0.2s ease;
}

.search-input-group:focus-within {
    border-color: var(--arise-navy);
    box-shadow: 0 0 0 3px var(--arise-navy-subtle);
}

/* Brand Buttons & Accents */
.btn-arise-primary {
    background-color: var(--arise-navy);
    color: #ffffff;
    border: 1px solid var(--arise-navy);
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(21, 42, 78, 0.2);
    transition: all 0.2s ease;
}

.btn-arise-primary:hover {
    background-color: var(--arise-navy-light);
    color: #ffffff;
    border-color: var(--arise-navy-light);
    transform: translateY(-1px);
}

.btn-arise-accent {
    background-color: var(--arise-orange);
    color: #ffffff;
    border: 1px solid var(--arise-orange);
    font-weight: 500;
    box-shadow: 0 2px 8px var(--arise-orange-glow);
    transition: all 0.2s ease;
}

.btn-arise-accent:hover {
    background-color: var(--arise-orange-hover);
    color: #ffffff;
    border-color: var(--arise-orange-hover);
    transform: translateY(-1px);
}

.btn-arise-outline-navy {
    color: var(--arise-navy);
    border-color: var(--arise-navy);
}

.btn-arise-outline-navy:hover {
    background-color: var(--arise-navy);
    color: #ffffff;
}

.btn-arise-outline-orange {
    color: var(--arise-orange);
    border-color: var(--arise-orange);
}

.btn-arise-outline-orange:hover {
    background-color: var(--arise-orange);
    color: #ffffff;
}

/* Dynamic Multi-Tab Bar (AppTabs) */
.app-tabs-wrapper {
    background-color: var(--arise-header-bg);
    border-bottom: 1px solid var(--arise-border-color);
    padding: 0.4rem 1.25rem 0;
    display: flex;
    align-items: center;
    overflow-x: auto;
}

.nav-tabs-dynamic {
    border-bottom: none;
    gap: 0.35rem;
}

.nav-tabs-dynamic .nav-link {
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--arise-text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    background: transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-tabs-dynamic .nav-link:hover {
    color: var(--arise-orange);
    background-color: rgba(232, 98, 44, 0.08);
}

.nav-tabs-dynamic .nav-link:hover i {
    color: var(--arise-orange);
}

.nav-tabs-dynamic .nav-link.active {
    color: var(--arise-navy);
    background-color: var(--arise-body-bg);
    border-color: var(--arise-border-color) var(--arise-border-color) transparent;
    border-top: 3px solid var(--arise-orange);
    font-weight: 600;
}

.nav-tabs-dynamic .nav-link.active i {
    color: var(--arise-orange);
}

.tab-close-btn {
    font-size: 0.95rem;
    line-height: 1;
    color: var(--arise-text-muted);
    cursor: pointer;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 0.25rem;
}

.tab-close-btn:hover {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Page Body */
.app-content {
    padding: 1.75rem;
    flex-grow: 1;
}

/* Cards & Components */
.card-custom {
    background-color: var(--arise-card-bg);
    border: 1px solid var(--arise-border-color);
    border-radius: 12px;
    box-shadow: var(--arise-shadow-sm);
    transition: all 0.25s ease;
}

.card-custom:hover {
    box-shadow: var(--arise-shadow-md);
}

.card-header-clean {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--arise-border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Stat Cards */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.4rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--arise-navy);
}

.stat-card.accent-orange::before {
    background-color: var(--arise-orange);
}

.stat-card.accent-navy-light::before {
    background-color: var(--arise-navy-light);
}

.stat-card.accent-navy-dark::before {
    background-color: var(--arise-navy-dark);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-icon.navy {
    background-color: var(--arise-navy-subtle);
    color: var(--arise-navy);
}

.stat-icon.orange {
    background-color: var(--arise-orange-subtle);
    color: var(--arise-orange);
}

.stat-icon.navy-light {
    background-color: rgba(30, 58, 106, 0.12);
    color: var(--arise-navy-light);
}

.stat-icon.navy-outline {
    background-color: rgba(21, 42, 78, 0.05);
    border: 1px solid rgba(21, 42, 78, 0.15);
    color: var(--arise-navy);
}

/* KeyDB Real-time Sync Pulse Badge */
.pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Workflow Step Wizard */
.workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.workflow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: 0;
    width: 2px;
    background: var(--arise-border-color);
}

.workflow-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    z-index: 1;
}

/* Table Customizations */
.table th {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--arise-border-color);
    padding: 0.85rem 1rem;
}

.table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

/* DataTables & Bootstrap Pagination Styling Overrides */
.pagination {
    gap: 0.3rem;
    margin-bottom: 0;
}

.page-item .page-link {
    border-radius: 8px !important;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: none;
}

.page-item.active .page-link {
    background-color: var(--arise-orange) !important;
    border-color: var(--arise-orange) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px var(--arise-orange-glow);
}

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

.dataTables_info {
    font-size: 0.82rem;
    color: var(--arise-text-muted) !important;
    padding-top: 0.5rem !important;
}

/* CKEditor Custom Styling */
.ck-editor__editable {
    min-height: 240px;
    border-radius: 0 0 8px 8px !important;
}

.ck.ck-toolbar {
    border-radius: 8px 8px 0 0 !important;
    background-color: var(--arise-body-bg) !important;
}

/* Settings & Profile Vertical Nav Pills */
.settings-nav .nav-link,
.profile-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    color: var(--arise-text-main);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 0.35rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.settings-nav .nav-link:hover,
.profile-nav .nav-link:hover {
    background-color: var(--arise-navy-subtle);
    color: var(--arise-navy);
}

.settings-nav .nav-link.active,
.profile-nav .nav-link.active {
    background-color: var(--arise-navy);
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: var(--arise-shadow-sm);
}

.settings-nav .nav-link.active .text-muted,
.profile-nav .nav-link.active .text-muted {
    color: rgba(255, 255, 255, 0.75) !important;
}

.settings-nav .nav-link.active i,
.profile-nav .nav-link.active i {
    color: var(--arise-orange) !important;
}

.settings-nav .nav-link i,
.profile-nav .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--arise-text-muted);
}


.form-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--arise-navy);
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--arise-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.setting-desc-text {
    font-size: 0.75rem;
    color: var(--arise-text-muted);
}

/* Sticky Table Headers - Opaque & z-indexed */
.table thead.sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
}

.table thead.sticky-top th {
    background-color: var(--arise-card-bg, #ffffff) !important;
    color: var(--arise-navy, #152a4e) !important;
    border-bottom: 2px solid var(--arise-border-color, #e2e8f0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

[data-bs-theme="dark"] .table thead.sticky-top th {
    background-color: #1a233a !important;
    color: #e2e8f0 !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Arise Corporate Status Badges (Strict 3-Tone Palette)
   - Orange: Positive / Active / Healthy / Operational
   - Navy:   Negative / Error / Dead / Danger / Critical
   - Gray:   Passive / Idle / Delayed / Neutral Metadata
   ========================================================================== */
.badge-pulse-positive,
.badge-status-positive {
    background-color: var(--arise-orange) !important;
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.badge-pulse-positive-subtle {
    background-color: #fff4ed !important;
    color: #c2410c !important;
    border: 1px solid #fdba74 !important;
    font-weight: 600 !important;
}

[data-bs-theme="dark"] .badge-pulse-positive-subtle {
    background-color: rgba(232, 98, 44, 0.18) !important;
    color: #ff9b6a !important;
    border: 1px solid rgba(232, 98, 44, 0.4) !important;
    font-weight: 600 !important;
}

.badge-pulse-negative,
.badge-status-negative {
    background-color: var(--arise-navy) !important;
    color: #ffffff !important;
    border: 1px solid #0d1b33 !important;
    font-weight: 600;
}

.badge-pulse-negative-subtle {
    background-color: rgba(21, 42, 78, 0.12) !important;
    color: var(--arise-navy) !important;
    border: 1px solid rgba(21, 42, 78, 0.25) !important;
    font-weight: 600;
}

.badge-pulse-passive,
.badge-status-passive {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 600 !important;
}

[data-bs-theme="dark"] .badge-pulse-negative-subtle {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-bs-theme="dark"] .badge-pulse-passive,
[data-bs-theme="dark"] .badge-status-passive {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   Mobile & Responsive Adjustments
   ========================================================================== */
@media (max-width: 767.98px) {
    .app-header {
        height: 58px;
        padding: 0 0.75rem;
    }

    .app-content {
        padding: 1rem !important;
    }

    .card-header {
        padding: 0.85rem 1rem !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .card-header > div:last-child {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .card-body {
        padding: 1rem !important;
    }

    .pulse-card {
        padding: 1rem !important;
    }

    .table-responsive {
        font-size: 0.82rem;
    }

    .status-badge-text {
        display: none !important;
    }

    .user-name-text {
        display: none !important;
    }
}