html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.divider:after,
.divider:before {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
}

.h-custom {
    height: calc(100% - 73px);
}

@media (max-width: 450px) {
    .h-custom {
        height: 100%;
    }
}

.custom-select {
    /*display: inline-block;*/
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: .375rem 1.75rem .375rem .75rem;
    line-height: 1.5;
    color: #495057;
    vertical-align: middle;
    background: #fff url(data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E) no-repeat right .75rem center;
    background-size: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.profile-card {
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.profile-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
}

.login-card {
    max-width: 400px;
    margin: auto;
    margin-top: 10vh;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.loading-overlay {
    position: fixed; /* stays on screen */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /*background: rgba(0,0,0,0.4);*/ /* optional dim */
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */
    z-index: 9999;
}

.cursor-pointer {
    cursor: pointer;
}

.width-50{
    width:50%;
}

.width-100 {
    width: 100%;
}

.navbar .nav-link.active {
    color: #0d6efd !important;
}

.navbar-brand strong {
    font-size: 1.1rem;
}

.dropdown-menu {
    min-width: 220px;
}

.nav-link.active,
.nav-link.fw-bold {
    border-bottom: 2px solid #0d6efd;
}

@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
}

.nav-link.text-dark:hover,
.nav-link.text-dark:focus {
    color: #000 !important;
}

/* Sidebar */
.sidebar {
    width: 220px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
}

    .sidebar .nav-link {
        color: #000;
        padding: 0.75rem 1.25rem;
    }

        .sidebar .nav-link.active,
        .sidebar .nav-link.fw-bold {
            background-color: #e9ecef;
            border-left: 4px solid #0d6efd;
        }

    .sidebar .dropdown-toggle::after {
        display: none;
    }

/* Main content offset */
.content {
    margin-left: 220px;
}

/* Main content offset */
.content-unauthenticated {
    margin-left: 0px;
}

/* Mobile */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        left: -250px;
        width: 220px;
        transition: left 0.3s ease;
        z-index: 1045;
    }

        .sidebar.show {
            left: 0;
        }

    .content {
        margin-left: 0;
    }

    body.overlay::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 1040;
    }
}

.logo-img {
    width: 128px;
    height: 128px;
}

@media (max-width: 576px) { /* For phones */
    .logo-img {
        width: 64px;
        height: 64px;
    }
}

.card-body-no-padding {
    --bs-card-spacer-y: 0rem;
    --bs-card-spacer-x: 0rem;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
