body {
    font-family: 'Inter', sans-serif;
    font-size: var(--base-font);
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease !important;
    color: var(--text-main) !important;
}

.card, 
.modal-content, 
.nav-link, 
.navbar,
.form-control,
button,
span,
i,
.input-group,
select,
table {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease !important;
}

/* Force a strict height on the header */
.navbar {
    height: 60px; 
    padding: 0 1rem;
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;

}

/* Keep the brand (title) centered vertically */
.navbar-brand {
    height: 60px;
    line-height: 60px; /* Matches height to keep text centered */
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    flex-shrink: 0;
    font-size: 18px;
}

.nav-link {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-link.active {
    background-color: rgba(13, 110, 253, 0.05); /* Very light blue background */
    border-left: 3px solid #0d6efd; /* Blue stripe on the left */
    color: #0d6efd !important;
    font-weight: 600;
}

/* Fix the right-side container */
.navbar-nav-right {
    display: flex;
    align-items: center;
    height: 60px;
    margin-left: auto; /* Pushes to the far right */
    padding-right: 1rem;
}

/* Ensure dropdown menu doesn't move the header */
.navbar .dropdown-menu {
    position: absolute !important;
    top: 100%; /* Forces it to appear exactly below the bar */
    margin-top: 0;
}

.sidebar {
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

/* Sidebar adjustment to match the 60px header */
#sidebarMenu {
    top: 60px;
    height: calc(100vh - 60px);
}

@media (max-width: 575.98px) {
    .navbar-brand {
        display: none;
    }

    .sidebar {
        transition: transform 0.3s ease-in-out;
    }
}
