/* Sidebar styles */
#sidebar {
    background: #181a1b;
    color: #e0e0e0;
    width: 220px;
    transition: width 0.3s;
}
body[data-sidebar-size="sm"] #sidebar {
    width: 70px;
}
#sidebar .sidebar-label, #sidebar .fs-4 {
    color: #b0b0b0;
    transition: opacity 0.3s;
    display: inline;
}
body[data-sidebar-size="sm"] #sidebar .sidebar-label,
body[data-sidebar-size="sm"] #sidebar .fs-4 {
    opacity: 0;
    width: 0;
    display: none;
}
#sidebar #sidebarNav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
}
body[data-sidebar-size="sm"] #sidebar .sidebar-link {
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    flex-direction: column;
    border-radius: 12px;
    box-sizing: border-box;
}
body[data-sidebar-size="sm"] #sidebar .sidebar-link i {
    font-size: 2.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
body[data-sidebar-size="sm"] #sidebar .sidebar-link .sidebar-label {
    display: none;
}
#sidebar .sidebar-link {
    color: #e0e0e0;
    transition: width 0.3s, height 0.3s, padding 0.3s, margin 0.3s, justify-content 0.3s;
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 12px;
    box-sizing: border-box;
    background: #44484c;
}
#sidebar .sidebar-link.active {
    background-color: #23272b !important;
    color: #fff !important;
    box-shadow: 0 0 8px 0 #44484c33;
    border-radius: 8px;
}
body[data-sidebar-size="sm"] #sidebar .sidebar-link.active {
    background-color: #44484c !important;
    color: #fff !important;
    box-shadow: 0 0 8px 0 #44484c33;
    border-radius: 8px;
}
#sidebar .nav-item {
    width: 100%;
    display: flex;
    justify-content: center;
}
body[data-sidebar-size="sm"] #sidebar .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}
#sidebar .sidebar-footer {
    color: #b0b0b0;
    transition: opacity 0.3s;
    display: block;
}
body[data-sidebar-size="sm"] #sidebar .sidebar-footer {
    opacity: 0;
    width: 0;
    display: none;
}
/* Topbar styles */
.top-bar {
    position: fixed;
    left: 220px;
    top: 0;
    height: 56px;
    width: calc(100% - 220px);
    background-color: #181a1b;
    color: #e0e0e0;
    display: flex;
    align-items: stretch;
    padding: 0.5rem 2rem;
    z-index: 1041;
    box-shadow: 0 2px 8px 0 #23272b33;
    transition: left 0.3s, width 0.3s, background-color 0.3s;
}
body[data-sidebar-size="sm"] .top-bar {
    left: 70px;
    width: calc(100% - 70px);
}
.topbar-section {
    display: flex;
    align-items: center;
}
.topbar-left, .topbar-right {
    flex: 0 1 auto;
}
.topbar-middle {
    flex: 1 1 0;
    justify-content: center;
}
.topbar-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.stat-box {
    background: #23272b;
    border-radius: 6px;
    padding: 0.1rem 0.6rem;
    min-width: 60px;
    text-align: center;
    color: #e0e0e0;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 0 4px #23272b33;
}
.stat-value {
    font-weight: bold;
    font-size: 0.95rem;
    color: #fff;
}
.stat-label {
    font-size: 0.7rem;
    color: #b0b0b0;
}
/* Footer styles */
.footer {
    position: fixed;
    left: 220px;
    right: 0;
    bottom: 0;
    height: 60px;
    background: #23272b;
    color: #b0b0b0;
    box-shadow: 0 0 4px #23272b33, 0 -8px 24px 0 #00000040;
    padding: 20px calc(1.25rem / 2);
    width: calc(100% - 220px);
    font-size: 15px;
    z-index: 1001;
    transition: left 0.3s, width 0.3s, background-color 0.3s;
}
body[data-sidebar-size="sm"] .footer {
    left: 70px;
    width: calc(100% - 70px);
}
@media (max-width: 992px) {
    .footer {
        left: 0;
        width: 100%;
    }
    body[data-sidebar-size="sm"] .footer {
        left: 0;
        width: 100%;
    }
}
/* Layout styles */
#layout-wrapper {
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: #181a1b;
}
.main-content {
    margin-left: 220px;
    min-height: 100vh;
    background: #23272b;
    transition: margin-left 0.3s;
    position: relative;
    display: block;
    color: #e0e0e0;
}
body[data-sidebar-size="sm"] .main-content {
    margin-left: 70px;
}
.page-content {
    padding: 70px 24px 60px 24px;
    min-height: calc(100vh - 70px);
    width: 100%;
    position: relative;
    background: #23272b;
    box-sizing: border-box;
    color: #e0e0e0;
}
.container-fluid {
    padding: 0;
    width: 100%;
    background: transparent;
    color: #e0e0e0;
}
