html, body { 
    height: 100%; 
}

body { 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

.content-wrapper { 
    flex: 1 0 auto; 
}

footer {
    flex-shrink: 0;
    margin-top: auto;
}

.form-control,
.btn { 
    border-radius: 10px; 
}

.card {
    border: none;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
}

.navbar .nav-tabs { 
    border-bottom: none; 
}

.navbar .nav-tabs .nav-link {
    border: none;
    color: rgba(255, 255, 255, .75);
    white-space: nowrap;
}

.navbar .nav-tabs .nav-link.active {
    color: #fff;
    border-bottom: 2px solid #fff;
    background: transparent;
}

.navbar .dropdown-menu {
    position: absolute !important;
    margin-top: 0.5rem !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
    z-index: 1100 !important;
}

.search-hint-wrapper .search-hints {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 300px;
    max-width: 100vw;
    z-index: 900;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .375rem;
    padding: .75rem;
    margin-top: .25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    font-size: .875rem;
    line-height: 1.6;
}

.search-hint-wrapper:focus-within .search-hints { 
    display: block; 
}

.search-hints code {
    background: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: .8rem;
}

.request-form-overlay, 
.task-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 2px solid #198754;
    border-radius: .5rem;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

.task-edit-overlay {
    border-color: #dee2e6;
    display: none;
}

.btn-close-white { 
    filter: invert(1) brightness(100%); 
}

#toast-container {
    position: fixed;
    transform: translateX(-50%);
    max-width: 400px;
    width: 90%;
    z-index: 5000;
}

#assignee-list,
.direction-checkboxes { 
    max-height: 200px; 
    overflow-y: auto; 
}

.selected-assignee .btn-close { 
    font-size: .5rem; 
}

.uppercase-tracking {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-bio-input {
    resize: vertical;
    min-height: 120px;
    max-width: 100%;
}

.profile-bio {
    max-height: 96px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--bs-primary-rgb), 0.4) transparent;
    background: rgba(237, 230, 230, 0.219);
}

.profile-fullname {
    background: rgba(237, 230, 230, 0.219);
}

.profile-bio::-webkit-scrollbar {
    width: 4px;
}
.profile-bio::-webkit-scrollbar-track {
    background: transparent;
}
.profile-bio::-webkit-scrollbar-thumb {
    background-color: rgba(var(--bs-primary-rgb), 0.25);
    border-radius: 10px;
}
.profile-bio:hover::-webkit-scrollbar-thumb {
    background-color: rgba(var(--bs-primary-rgb), 0.5);
}
.shadow-sm-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.08)!important;
    border-color: var(--bs-primary-border-subtle)!important;
}
.transition-all {
    transition: all 0.2s ease-in-out;
}
.fs-7 { font-size: 0.8rem; }

@media (max-width: 576px) {
    .search-hint-wrapper .search-hints {
        position: fixed;
        left: 10px;
        right: 10px;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .request-form-overlay, 
    .task-edit-overlay {
        position: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        overflow-y: auto;
        border-radius: 12px;
    }
}

@media (min-width: 768px) {
    .border-end-md {
        border-right: 1px solid var(--bs-border-color) !important;
    }
    .settings_content form,
    #email-container form,
    #password-container form {
        max-width: 640px;
    }
}

@media (max-width: 575.98px) {
    .custom-search-dropdown {
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        transform: none !important;
        top: 100% !important;
    }
}