.card .card-header {
    background-color: #333333 !important;
    color: #ffffff !important;
}
/* ============================================================
   SIDEBAR — PROJECT 1 BEHAVIOUR FOR PROJECT 2
   ============================================================ */

/* Sidebar container */
.app-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    height: calc(100vh - 60px);
    background: var(--sidebar-bg, #2e2f33);
    color: #cfd0d4;
    overflow-y: auto;
    transition: width .25s ease, left .25s ease;
    z-index: 2000;
    padding-top: 10px;
}

/* Sidebar links */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    transition: .2s;
}
.sidebar-link i {
    margin-right: 10px;
}
.sidebar-link.active {
    background: rgba(255,255,255,0.15);
    border-left: 4px solid #8bc34a;
}
.sidebar-link:hover {
    background: rgba(255,255,255,0.12);
}

/* Collapse mode (desktop) */
body.sidebar-collapsed .app-sidebar {
    width: 70px;
}
body.sidebar-collapsed .sidebar-link span {
    display: none;
}
body.sidebar-collapsed .sidebar-link i {
    margin-right: 0;
}

/* Content area shift */
.app-content-wrapper {
    transition: margin-left .25s ease;
}
body.has-sidebar .app-content-wrapper {
    margin-left: 250px;
}
body.sidebar-collapsed.has-sidebar .app-content-wrapper {
    margin-left: 70px;
}

/* Logged-out mode — ensures full width */
body:not(.has-sidebar) .app-content-wrapper {
    margin-left: 0 !important;
}

/* MOBILE SIDEBAR */
@media (max-width: 992px) {
    .app-sidebar {
        left: -250px;
        width: 250px;
    }
    body.sidebar-open .app-sidebar {
        left: 0;
    }
    .app-content-wrapper {
        margin-left: 0 !important;
    }
}

/* BACKDROP for mobile dimming */
#sidebarBackdrop {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(0,0,0,0.45);
    z-index: 1500;
}
body.sidebar-open #sidebarBackdrop {
    display: block;
}
/* ============================================================
   SIDEBAR TOP SECTION (Administrator / Meniu)
   Collapse behaviour: hide label, keep icon
   ============================================================ */

/* Make sure the top block behaves like links */
.sidebar-top {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #fff;
    white-space: nowrap;
}
.sidebar-top i {
    margin-right: 10px;
}

/* When collapsed → keep only the icon */
body.sidebar-collapsed .sidebar-top span {
    display: none;
}

/* Center the icon when text is hidden */
body.sidebar-collapsed .sidebar-top {
    justify-content: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove icon margin when collapsed */
body.sidebar-collapsed .sidebar-top i {
    margin-right: 0 !important;
}

