body {
    overflow-x: hidden;
}

.sidebar {
    min-width: 220px;
    background-color: #343a40;
    color: white;
    height: 100vh;
}

.sidebar a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
}

.sidebar a.active,
.sidebar a:hover {
    background-color: #0d6efd;
    color: white;
}

/* Mobile sidebar behavior */
@media (min-width: 768px) {
    #sidebar {
        position: static !important;
        width: auto !important;
        height: auto !important;
    }

    #overlay {
        display: none !important;
    }
}


#sidebarToggle {
    margin: 10px;
}

/* Ensure content doesn't get hidden behind sidebar */
.ms-250 {
    margin-left: 250px;
}

.sidebar a {
    text-decoration: none;
}

/* Make sidebar responsive */
@media (max-width: 767.98px) {
#sidebar {
    max-width: 260px;
    transition: all 0.3s ease-in-out;
    z-index: 1045;
    }
    #sidebar.show {
        display: block !important;
    }
}

.tags-section {
    border-top: 1px solid #ddd;
    margin-top: 20px;
    padding-top: 10px;
}

.tags-section a {
    font-size: 0.9rem;
    color: #333;
}

.tags-section a:hover {
    color: #0d6efd;
    font-weight: 500;
}

   .nav-link.custom-link {
        color: #555; /* default gray */
    }

    .nav-link.custom-link:hover {
        color: #4ab67c;
    }

    .nav-link.custom-active {
        color: #4ab67c !important;
        background-color: #e6f5ed;
        font-weight: bold;
    }

/* Header Style */
.custom-table-header th {
    background-color: #5c717d;
    color: #ffffff;
    font-weight: bold;
}

/* Custom row striping */
.table-striped-custom tbody tr:nth-child(even) {
    background-color: #fef9a7;
}

/* Optional: Enhance table border and padding */
.table-bordered th, .table-bordered td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
}

.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

      /* Reduce header and logo height */
.header-dark {
    background-color: #254151;
    color: white;
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
}

.header-dark img {
    height: 60px;              /* already reduced */
    border-radius: 10px;       /* makes it slightly round */
    object-fit: contain;       /* ensures logo fits nicely */
}

.header-dark a.nav-link {
    color: white;
    font-weight: 500;
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.95rem;
}

.header-dark a.nav-link:hover {
    color: #f1f1f1;
}


        .dropdown-menu {
            background-color: #264653;
            border: none;
        }

        .dropdown-menu a.dropdown-item {
            color: white;
        }

        .dropdown-menu a.dropdown-item:hover {
            background-color: #1e3d47;
            color: #ffffff;
        }