/* CSS for the navbar */
.nav-user {
    max-width: 16rem;
}

.nav-user-icon {
    padding: 4px 4px 6px 4px;
    border-radius: 16px;
    width: 40px;
    height: 40px;
}

#navbar-toggler {
    width: 40px;
    height: 40px;
}

.nav-lang-toggle {
    display: flex;
    padding: 2px;
    align-items: center;
    gap: 4px;
    border-radius: 24px;
}

.btn-logout {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 12px 18px 12px 16px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    background: #F3F5F7;
}

.auth-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}
.divider-or {
    display: flex;
    align-items: center;
    text-align: center;
    color: #757575;
    margin-top: 1rem;
    font-family: var(--primary-font), sans-serif;
}
.divider-or:before,
.divider-or:after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--bs-gray-300);
}
.divider-or:not(:empty)::before {
    margin-right: .25em;
}
.divider-or:not(:empty)::after {
    margin-left: .25em;
}

/* CSS for the language selection */
.language-flag {
    display: flex;
    align-items: center;
    padding: 6px 8px 6px 6px;
    gap: 6px;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 18px;
    margin: 0;
    font-family: "Montserrat", sans-serif;
}

.language-flag img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    object-fit: cover;
}

.language-flag span {
    color: #212529;
    transition: color 0.3s ease;
    font-variant-numeric: lining-nums proportional-nums;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.language-flag:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-flag:hover:not(.active) span {
    color: #0D6EFD;
    font-variant-numeric: lining-nums proportional-nums;
    font-size: 14px;
    font-style: normal;
    /* font-weight: 700; */
    line-height: 140%;
}

.language-flag.active {
    background-color: #ffffff;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.08);
}

.language-flag.active span {
    color: #0D6EFD;
    font-variant-numeric: lining-nums proportional-nums;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
}

.language-flag:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}


.btn-light {
    color: #1D2027;
    background-color: var(--light-gray-color);
    border: none;
}

.btn-dark {
    color: #FFFFFF !important;
    background-color: #1D2027;
    border: none;
}

.btn-dark-outline {
    color: #1D2027;
    background-color: #FFFFFF;
    border: 1px solid #1D2027;
}

.btn-orange {
    color: #FFFFFF;
    background-color: var(--orange-500-color);
    border: none;
}

.btn-red {
    color: #FFFFFF;
    background-color: red;
    border: none;
}

.btn-red-outline {
    color: red;
    background-color: #FFFFFF;
    border: 1px solid red;
}

.btn-data-panel {
    font-size: small;
    padding: 4px 12px;
    min-width: 100px; /* Changed from width to min-width */
    max-width: fit-content; /* Allows button to grow if needed */
    display: inline-flex; /* Uses flexbox for better content alignment */
    align-items: center; /* Vertically centers the content */
    justify-content: space-between; /* Spaces out text and icon */
    white-space: nowrap; /* Prevents text from wrapping */
}

.btn-custom:hover {
    text-decoration: none;
}

.btn-light:hover {
    color: #1D2027;
    background-color: #E2E4E6;
}

.btn-dark:hover {
    color: #EFF1F3;
    opacity: 0.9;
}

.btn-dark-outline:hover {
    color: #FFFFFF;
    background-color: #1D2027;
}

.btn-orange:hover {
    color: #FFFFFF;
    background-color: var(--orange-500-color);
    opacity: 0.9;
}

.btn-red:hover {
    color: #FFFFFF;
    background-color: red;
    opacity: 0.9;
}

.btn-red-outline:hover {
    color: white;
    background-color: red;
}


#navbar-logo {
    width: auto;
    height: 40px;
}

/* CSS for the buttons in the navbar */
.auth-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    border: none;
}

.auth-btn-light {
    color:var(--bs-gray-600);
    background-color: var(--light-gray-color);
}

.auth-btn-dark {
    color: white;
    background-color: black;
}

/* CSS for the mobile adaptation of the navbar */

@media only screen and (max-width: 480px) {
    .navbar {
        height: 100%;
        padding: 0.75rem 1rem !important;
    }
    .nav-links {
        padding: 4rem 0;
        min-height: 527px;
        justify-content: space-between;
    }
    .nav-link {
        font-size: 24px !important;
        line-height: 33.6px !important;
    }
    .nav-end-btns {
        align-items: center;
    }
    .nav-auth {
        padding: 2rem;
        justify-content: space-between;
        width: 100%;
    }
    .nav-end-btns {
        justify-content: space-between;
    }

  }