.breadcrumb a {
    text-decoration: none; /* Override Bootstrap breadcrumb links underline */
}

/* Sidebar */
#sidebar-wrapper {
    width: 280px;
    position: fixed;
    top: 0;
    left: -280px;
    height: 100%;
    transition: all 0.2s linear;
    z-index: 1050;
    overflow-y: auto;
}

#sidebar-wrapper.active {
    left: 0;
}

#main-content {
    padding: 1rem;
    width: 100%;
}

#main-content.shifted {
    margin-left: 280px;
    width: calc(100% - 280px);
}

.navbar {
    z-index: 1040;
    transition: margin-left 0.3s ease;
}

.navbar.shifted {
    margin-left: 280px;
}

.navbar-brand {
    font-weight: bold; /* Bootstrap has semibold; this makes it bolder */
    margin-left: 10px;
    font-size: 1.25rem;
    white-space: nowrap;
}

/* Mobile close button */
.sidebar-close-btn {
    display: none;
    position: absolute;
    right: 15px;
    color: white;
    font-size: 1.5rem;
    z-index: 1051;
}

/* Mobile overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #sidebar-wrapper {
        width: 240px;
        left: -240px;
    }

    #main-content.shifted {
        margin-left: 240px;
        width: calc(100% - 240px);
    }

    .navbar.shifted {
        margin-left: 240px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

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

    #sidebar-wrapper {
        width: 80%;
        left: -80%;
    }

    #main-content.shifted,
    .navbar.shifted {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-close-btn {
        display: block;
    }

    #sidebar-wrapper.active + .sidebar-overlay {
        display: block;
    }

    .navbar-brand {
        font-size: 1rem;
        padding-left: 5px;
    }
}

/* Force page scroll behavior */
body {
    overflow-x: hidden; /* Hide horizontal scrollbar */
}

/* Form label adjustments */
.form-label {
    margin-bottom: .5rem;
    font-size: .890rem;
    font-weight: 600 !important;
}

/* Tom Select inputs */
.ts-dropdown,
.ts-control,
.ts-control input {
    font-size: 15px !important;
}

/* Adjust card padding */
.card-header,
.card-footer {
    padding: 1rem 1.25rem !important;
}

/* NProgress */
#nprogress {
    pointer-events: none;
}

#nprogress .bar {
    background: red;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999 !important;
}

/* Required field asterisk */
label.required::after {
    content: " *";
    color: red;
    margin-left: 4px;
}

/* Border overrides */
.card,
.form-control,
.form-check-input,
.dp__input,
.input-group-text,
.form-select {
    border: var(--bs-border-width) solid #000000 !important;
}
