/* Admin layout */
/* BD mode toggle widget */
.bi {
    vertical-align: -0.125em;
    fill: currentColor;
}

.bd-mode-toggle {
    z-index: 1500;
}

.bd-mode-toggle .bi {
    width: 1em;
    height: 1em;
}

.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}

/* Desktop sidebar */
.desktop-sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: width 0.25s ease;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 260px;
}

.sidebar.collapsed {
    width: 0;
    min-width: 0;
}

/* Mobile sidebar adjustments */
@media (max-width: 991.98px) {

    .sidebar.collapsed,
    .sidebar:not(.collapsed) {
        width: 260px !important;
    }

    .desktop-sidebar {
        position: static !important;
    }

    .desktop-sidebar .sidebar {
        width: 260px !important;
        z-index: 2147483647 !important;
        background-color: var(--fastcms-sidebar-bg) !important;
        transition: left 0.3s ease !important;
        position: fixed !important;
        height: 100vh !important;
        left: -260px !important;
        top: 0 !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1) !important;
    }

    .desktop-sidebar .sidebar:not(.collapsed) {
        left: 0 !important;
    }

    .desktop-sidebar .sidebar.collapsed {
        left: -260px !important;
    }

    .desktop-main {
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        width: 100%;
    }

    .desktop-sidebar .sidebar .nav-btn-container {
        padding-top: 0.5rem !important;
    }

    .desktop-sidebar .sidebar .sidebar-header {
        display: flex !important;
        height: 56px !important;
        min-height: 56px !important;
        padding: 0 1rem !important;
        /* border-bottom: 1px solid var(--bs-border-color); */
        align-items: center !important;
        justify-content: flex-end !important;
    }

    .desktop-sidebar .sidebar .sidebar-header .brand {
        display: none !important;
    }

    .desktop-sidebar .sidebar .sidebar-header .sidebar-close-btn {
        margin-left: 0;
        font-size: 1.25rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Sidebar components */
.nav-btn {
    gap: 0.75rem !important;
}

.nav-btn i {
    min-width: 1.5rem;
}

.sidebar-footer .progress {
    height: 4px;
}

/* Main content area */
.desktop-main {
    flex-grow: 1;
    padding: 0rem 2rem 2rem;
    overflow-y: auto;
    height: 100vh;
}

/* Top Navigation */
#top-nav {
    position: sticky;
    top: 0;
    z-index: 10000;
    /* border-bottom: 1px solid var(--bs-border-color); */
    background-color: var(--bs-body-bg);
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: 2rem;
}

/* Jumbotron */
.jumbotron {
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Mobile menu button */
.mobile-menu-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
    display: none;
}

/* Footer */
.footer-note {
    margin-top: 3rem;
    text-align: center;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 46px;
    height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
