/* OpenTPV.AdminApi Exact Replica - CSS System */

/* CSS Variables - Exact AdminApi System */
:root {
    /* AdminApi Color Palette */
    --admin-primary: #2563eb;
    --admin-secondary: #475569;
    --admin-success: #059669;
    --admin-danger: #dc2626;
    --admin-warning: #d97706;
    --admin-info: #0891b2;
    --admin-light: #f8fafc;
    --admin-dark: #0f172a;

    /* Layout Dimensions */
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --right-sidebar-width: 40px;
    --topbar-height: 48px;

    /* Background Colors */
    --sidebar-bg: #283d5c;
    --sidebar-border: rgba(0,0,0,0.1);
    --right-sidebar-bg: #283d5c;
    --topbar-bg: #283d5c;
}

/* Dark Mode */
body.dark-mode {
    background: #1a1a2e !important;
    color: #e5e5e5;
}

body.dark-mode .sidebar {
    background: linear-gradient(180deg, #16213e 0%, #0f3460 100%) !important;
}

body.dark-mode .right-sidebar {
    background: linear-gradient(180deg, #16213e 0%, #0f3460 100%) !important;
}

body.dark-mode .topbar {
    background: linear-gradient(180deg, #16213e 0%, #0f3460 100%) !important;
}

/* Main Layout Structure */
.adminapi-layout {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Left Sidebar - Exact AdminApi Structure */
.adminapi-layout .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    width: var(--sidebar-width) !important;
    background: linear-gradient(180deg, #283d5c 0%, #1a2f4a 100%) !important;
    color: white !important;
    padding: 0 !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
    transition: width 0.3s ease, transform 0.3s ease !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    flex-direction: column !important;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width) !important;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar Brand Toggle Button (Rayo + Rapso.cl) */
.sidebar-brand-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    width: 100%;
    justify-content: flex-start;
}

.sidebar-brand-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidebar-brand-toggle i {
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sidebar-brand-toggle span {
    color: white;
    white-space: nowrap;
    transition: opacity 0.3s ease, width 0.3s ease;
}

/* Sidebar colapsado - solo icono centrado */
.sidebar.collapsed .sidebar-header {
    justify-content: center;
}

.sidebar.collapsed .sidebar-brand-toggle {
    justify-content: center;
    padding: 0.5rem;
}

.sidebar.collapsed .sidebar-brand-toggle span {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar.collapsed .sidebar-brand-toggle i {
    margin: 0;
}

/* Sidebar Navigation - Exact AdminApi Structure */
.sidebar-nav, .admin-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item, .admin-sidebar-nav-item {
    border-bottom: 1px solid var(--sidebar-border);
    transition: background-color 0.15s ease;
}

.sidebar-nav-divider {
    height: 1px;
    background: var(--sidebar-border);
    margin: 0.5rem 1rem;
}

/* Section Headers */
.sidebar-nav-section {
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: opacity 0.3s ease, height 0.3s ease, padding 0.3s ease;
}

.sidebar.collapsed .sidebar-nav-section {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
    border-bottom: none;
}

.sidebar-nav-link, .admin-sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.15s ease;
    cursor: pointer;
    position: relative;
    font-size: 0.875rem;
    background: transparent !important;
}

/* Hover states - Apply to both item and link */
.sidebar-nav-item:hover,
.admin-sidebar-nav-item:hover,
.sidebar-nav-link:hover,
.admin-sidebar-nav-link:hover {
    background-color: rgba(0,0,0,0.15) !important;
}

/* Active states */
.sidebar-nav-item.active,
.admin-sidebar-nav-item.active,
.sidebar-nav-item.active .sidebar-nav-link,
.admin-sidebar-nav-item.active .admin-sidebar-nav-link {
    background-color: rgba(255,255,255,0.15) !important;
    font-weight: 600;
}

/* Focus/Pressed states - Same as hover */
.sidebar-nav-link:focus,
.admin-sidebar-nav-link:focus,
.sidebar-nav-link:active,
.admin-sidebar-nav-link:active,
.sidebar-nav-item:active .sidebar-nav-link,
.admin-sidebar-nav-item:active .admin-sidebar-nav-link {
    background-color: rgba(0,0,0,0.15) !important;
    outline: none;
    box-shadow: none;
}

.sidebar-nav-link i, .admin-sidebar-nav-link i {
    width: 16px;
    margin-right: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
}

.sidebar-nav-text, .admin-sidebar-nav-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.3s ease;
    font-size: 0.875rem;
}

.sidebar.collapsed .sidebar-nav-text {
    opacity: 0;
    width: 0;
}

.sidebar-nav-chevron {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.sidebar-nav-item.open .sidebar-nav-chevron {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-nav-chevron {
    opacity: 0;
}

/* Submenu - Exact AdminApi Structure */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.1);
    display: none;
}

.sidebar-nav-item.open .sidebar-submenu {
    display: block;
}

.sidebar-submenu-item .sidebar-nav-link {
    padding-left: 2.5rem;
    font-size: 0.875rem;
    background-color: rgba(0, 0, 0, 0.05);
}

.sidebar-submenu-item .sidebar-nav-link:hover {
    background-color: rgba(255,255,255,0.05);
}

/* Chat Section Specific Styles */
.sidebar-nav-link .badge {
    margin-left: auto;
    margin-right: 0.5rem;
}

.quick-actions-btn {
    background: none;
    border: none;
    color: white;
    padding: 0.25rem;
    margin-left: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.quick-actions-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidebar.collapsed .quick-actions-btn {
    opacity: 0;
    width: 0;
}

/* Draggable Sections */
.draggable-section {
    cursor: move;
}

.draggable-section:hover {
    background-color: rgba(255,255,255,0.05);
}

.draggable-section.dragging {
    opacity: 0.5;
}

/* Chat Subsections */
.chat-subsection {
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.15s ease;
}

.chat-subsection:hover {
    background-color: rgba(255,255,255,0.05);
}

.chat-subsection i:first-child {
    width: 16px;
    margin-right: 0.75rem;
    transition: transform 0.3s ease;
}

.chat-subsection.open i:first-child {
    transform: rotate(90deg);
}

.chat-subsection span {
    flex: 1;
}

.chat-subsection .badge {
    margin-left: auto;
}

/* Main Content Area */
.adminapi-layout .main-content {
    flex: 1;
    margin-left: var(--sidebar-width) !important;
    margin-right: var(--right-sidebar-width) !important;
    transition: margin-left 0.3s ease, margin-right 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

.adminapi-layout .sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width) !important;
}

.adminapi-layout .main-content > main {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Topbar - Exact AdminApi Structure */
.topbar {
    background: #283d5c;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 48px;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    justify-content: space-between;
}

/* Main Content */
main {
    flex: 1;
    padding: 0.25rem 0.25rem 2rem 0.25rem;
    background: #f8f9fa;
    margin: 0;
    border-radius: 0.75rem;
    box-shadow: none;
    color: #333;
    border: none;
}

/* Fix the page-content container that's causing the blue edge */
.page-content {
    background: #f8f9fa !important;
    border-left: none !important;
    margin-left: 0 !important;
}

/* Fix topbar page content */
#topbarPageContent {
    background: #f8f9fa !important;
    border-left: none !important;
}

/* Cards in main content - AdminApi style */
main .card {
    background: white !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    margin-bottom: 1.5rem !important;
}

main .card-header {
    background: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 1rem 1.5rem !important;
    font-weight: 600 !important;
    color: #495057 !important;
}

main .card-body {
    background: white !important;
    padding: 1.5rem !important;
    color: #212529 !important;
}

main .card-title {
    color: #212529 !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

main .card-text {
    color: #6c757d !important;
    margin-bottom: 1rem !important;
}

/* Form controls in cards */
main .form-control {
    background: white !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
}

main .form-control:focus {
    border-color: #283d5c !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 61, 92, 0.25) !important;
}

/* Buttons in cards */
main .btn {
    border-radius: 0.375rem !important;
    font-weight: 500 !important;
}

main .btn-outline-primary {
    border-color: #283d5c !important;
    color: #283d5c !important;
}

main .btn-outline-primary:hover {
    background-color: #283d5c !important;
    border-color: #283d5c !important;
    color: white !important;
}

/* Device Frame Controls - AdminApi Style */
#deviceControlsWrapper {
    background: white !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

#deviceControlsWrapper .form-control {
    background: white !important;
    border: 1px solid #ced4da !important;
    color: #495057 !important;
}

#deviceControlsWrapper .form-control:focus {
    border-color: #283d5c !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 61, 92, 0.25) !important;
}

#deviceControlsWrapper .btn {
    border-radius: 0.375rem !important;
    font-weight: 500 !important;
}

#deviceControlsWrapper .btn-primary {
    background-color: #283d5c !important;
    border-color: #283d5c !important;
}

#deviceControlsWrapper .btn-primary:hover {
    background-color: #1a2f4a !important;
    border-color: #1a2f4a !important;
}

#deviceControlsWrapper .btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

#deviceControlsWrapper .btn-secondary:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
}

/* Device List - AdminApi Style */
#deviceListDiv {
    background: white !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Form labels in device controls */
#deviceControlsWrapper label {
    font-weight: 600 !important;
    color: #495057 !important;
    margin-bottom: 0.5rem !important;
}

/* Small text elements */
#deviceControlsWrapper .small {
    color: #6c757d !important;
}

/* Page header for devices */
main h3 {
    color: #283d5c !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid #283d5c !important;
}

/* Keep only specific styling for main content */
main {
    border: 2px solid #283d5c !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Right Sidebar - Exact AdminApi Structure */
.adminapi-layout .right-sidebar {
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: var(--right-sidebar-width) !important;
    background: linear-gradient(180deg, #283d5c 0%, #1a2f4a 100%) !important;
    border-left: 1px solid var(--sidebar-border) !important;
    z-index: 99 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 0.5rem 0 !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1) !important;
}

/* Right Sidebar User Section */
.right-sidebar-user-section {
    margin-bottom: 1rem;
}

.right-sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
}

.right-sidebar-user-avatar:hover {
    transform: scale(1.05);
}

.right-sidebar-user-avatar {
    background: var(--admin-primary);
}

.right-sidebar-user-avatar i {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 0.75rem;
    background: var(--admin-success);
    border-radius: 50%;
    padding: 2px;
}

/* Right Sidebar Actions Section */
.right-sidebar-actions-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.right-sidebar-btn {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 6px;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
}

.right-sidebar-btn:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: scale(1.05);
}

.right-sidebar-btn.active {
    background: rgba(255,255,255,0.25);
    color: white;
}

/* Footer - Exact AdminApi Structure */
.adminapi-layout .app-footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: var(--right-sidebar-width);
    height: 8px;
    background: var(--sidebar-bg);
    z-index: 98;
    transition: left 0.3s ease, right 0.3s ease;
}

.adminapi-layout .sidebar.collapsed ~ .app-footer {
    left: var(--sidebar-collapsed-width);
}

.app-footer::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 8px;
    height: 8px;
    background: #f5f5f5;
    border-bottom-left-radius: 8px;
    box-shadow: -4px 4px 0 0 var(--sidebar-bg);
}

/* Page Header - Exact AdminApi Style */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Buttons - Exact AdminApi Style */
.btn-adminapi {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-primary-adminapi {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary-adminapi:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Cards - Exact AdminApi Style */
.card-adminapi {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-adminapi-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    background: #f8f9fa;
}

.card-adminapi-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--admin-dark);
    margin: 0;
}

.card-adminapi-body {
    padding: 1.5rem;
}

/* Stats Grid - Exact AdminApi Style */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card-adminapi {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
    transition: all 0.2s ease;
}

.stat-card-adminapi:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stat-card-adminapi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-card-adminapi-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card-adminapi-icon.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card-adminapi-icon.success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.stat-card-adminapi-icon.danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.stat-card-adminapi-icon.warning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.stat-card-adminapi-icon.info {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.stat-card-adminapi-title {
    font-size: 0.875rem;
    color: var(--admin-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card-adminapi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--admin-dark);
    margin-bottom: 0.5rem;
}

.stat-card-adminapi-change {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-card-adminapi-change.positive {
    color: var(--admin-success);
}

.stat-card-adminapi-change.negative {
    color: var(--admin-danger);
}

/* Tables - Exact AdminApi Style */
.table-adminapi {
    width: 100%;
    border-collapse: collapse;
}

.table-adminapi th {
    background: #f8f9fa;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--admin-dark);
    border-bottom: 2px solid #dee2e6;
}

.table-adminapi td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.table-adminapi tbody tr:hover {
    background: #f8f9fa;
}

/* Responsive Design - Exact AdminApi Breakpoints */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
        width: var(--sidebar-width);
    }

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

    .right-sidebar {
        transform: translateX(100%);
    }

    .right-sidebar.show {
        transform: translateX(0);
    }

    .app-footer {
        left: 0 !important;
        right: 0 !important;
    }

    main {
        margin: 0.5rem;
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .page-header {
        padding: 1rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* Animations - Exact AdminApi Style */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideIn 0.5s ease forwards;
}

/* Scrollbar Styling - Exact AdminApi Style */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Dropdown Menu Styling - Exact AdminApi Style */
.dropdown-menu-adminapi {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.dropdown-header-adminapi {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.user-avatar-adminapi {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--admin-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
}

.user-avatar-adminapi i {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 0.75rem;
    background: var(--admin-success);
    border-radius: 50%;
    padding: 2px;
}

/* Mobile Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}