.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #1a1d23;
    overflow-y: auto;
    z-index: 1030;
    transition: transform 0.3s ease;
}

.main-content {
    margin-left: 250px;
}

.sidebar-nav .nav-link {
    color: #8b929a;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

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

.sidebar-nav .nav-link.active {
    color: #fff;
    background-color: rgba(13, 110, 253, 0.15);
    border-left: 3px solid #0d6efd;
    padding-left: calc(0.75rem - 3px);
}

.sidebar-brand a:hover {
    opacity: 0.85;
}

.top-bar {
    background-color: #1a1d23;
}

.kpi-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #1a1d23;
}

::-webkit-scrollbar-thumb {
    background: #3a3f47;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #50565e;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #3a3f47 #1a1d23;
}

.badge.bg-success {
    background-color: rgba(25, 135, 84, 0.2) !important;
    color: #75b798 !important;
    border: 1px solid rgba(25, 135, 84, 0.3);
}

.badge.bg-danger {
    background-color: rgba(220, 53, 69, 0.2) !important;
    color: #ea868f !important;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.badge.bg-warning {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #ffda6a !important;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge.bg-info {
    background-color: rgba(13, 202, 240, 0.2) !important;
    color: #6edff6 !important;
    border: 1px solid rgba(13, 202, 240, 0.3);
}

.ls-wide {
    letter-spacing: 0.08em;
}

@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
    }

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

    .main-content {
        margin-left: 0;
    }
}
