@url('variables.css');

/* BUTTONS */

.gradient--btn {
    background: linear-gradient(180deg, var(--color-primary-blue) 0%, var(--color-accent-blue) 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    border-radius: 35px;
    padding: 9px 25px;
    font-weight: 600;
    margin-left: 10px;
}

.gradient--btn:hover {
    background: linear-gradient(0deg, var(--color-primary-hover-blue) 0%, var(--color-accent-blue) 100%);
}

.outline--btn {
    background: transparent;
    color: var(--color-primary-blue);
    border: 2px solid var(--color-primary-blue);
    padding: 8px 25px;
    border-radius: 35px;
    cursor: pointer;
    font-weight: 600;
}

.white--bg-btn {
    background: #fff;
    color: var(--color-primary-blue);
    border: none;
    padding: 9px 25px;
    border-radius: 35px;
    cursor: pointer;
    font-weight: 600;
}

.gastro--blue-bg-btn {
    background: var(--color-primary-blue);
    color: white;
    border: none;
    padding: 9px 25px;
    border-radius: 35px;
    cursor: pointer;
    font-weight: 600;
}

.search--doctor-btn {
    background: var(--color-primary-blue);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 35px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}

@media (min-width: 991px) {
    .search--doctor-btn {
        max-width: 200px;
    }
}

/* NAVBAR & NAVIGATION */

.sub-nav {
    text-indent: 21px;
    margin: 12px 0;
    
}

.sub-nav a {
    text-decoration: none;
    color: var(--color-text-darkblue);
}
.custom-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* position: sticky; */
    top: 0px;
    z-index: 1000;
}

.main-logo {
    height: 45px;
}

.navlink {
    text-decoration: none;
    color: var(--color-text-gray);
    font-weight: 600;
    transition: 0.3s;
    font-size: 16px;
}

.navlink:hover,
.navlink.active-link {
    color: var(--color-accent-blue);
    text-decoration: underline;
}

/* Desktop Navigation Layout */
@media (min-width: 1400px) {
    .custom-header nav {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        justify-content: stretch !important;
    }

    .nav-content {
        display: contents !important;
    }

    .nav-links {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 50px;
        justify-self: center;
    }

    .nav-buttons {
        display: flex;
        gap: 15px;
        justify-self: end;
    }
}

.menu-toggle {
    border: none;
    background: transparent;
    font-size: 24px;
    color: var(--color-primary-blue);
    cursor: pointer;
}

.close-btn {
    border: none;
    background: transparent;
    font-size: 24px;
    color: var(--color-primary-blue);
    cursor: pointer;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 999;
    /* Below the header (1000) */
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Navigation */
@media (max-width: 1399px) {
    .nav-content {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100dvh;
        background: #fff;
        z-index: 1001;
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        padding: 36px 24px 24px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        gap: 1.25rem;
        overflow: hidden;
    }

    .nav-content.active {
        right: 0;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.1rem !important;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .navlink {
        font-size: 17px;
        width: 100%;
        display: block;
        color: #1a1a1a;
    }

    .navlink:hover,
    .navlink.active-link {
        color: var(--color-primary-blue);
        text-decoration: none;
    }

    .nav-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        margin-top: 0;
    }

    #nav-dashboard-dropdown {
        display: none !important;
    }

    .nav-buttons a {
        width: 100%;
    }

    .nav-buttons button {
        width: 100%;
        margin: 0 !important;
        padding: 12px;
    }
}

/* ── Mobile nav user + logout single row ── */
.mob-nav-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 12px;
}

.mob-nav-user__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #028090 0%, #00A896 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.mob-nav-user__avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.mob-nav-user__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.mob-nav-user__name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mob-nav-user__email {
    font-size: 12px;
    color: #5C6B73;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Mobile nav logout button ── */
.mob-nav-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 16px;
    color: #dc3545;
    text-decoration: none;
    transition: background 0.18s;
}

.mob-nav-logout-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* FOOTER */

.quick--link a,
.condition--treated a {
    text-decoration: none;
    color: var(--color-text-blue);
    font-weight: 200;
}

.quick--link li,
.condition--treated li,
.hero--right-card ul li {
    margin-bottom: 10px;
}

/* GLASS CARD AND GLASS WIDGET */

.glass--card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);

    padding: 15px;
    color: #fff;
}

.glass--widget {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);

    padding: 9px 18px;
    color: #fff;
}


.glass--widget-2 {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);

    padding: 3px 18px;
    color: #fff;
}

.glass--btn {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9px;

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);

    padding: 5px 12px;
    color: #fff;
}
/* ── Nav Avatar ── */
.nav-avatar {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.nav-avatar__circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary-blue), #034f63);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-avatar__initials {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-avatar__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0; left: 0;
}

.nav-avatar__name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-avatar__caret {
    font-size: 10px;
    color: var(--color-primary-blue);
    transition: transform 0.2s;
}

.nav-avatar[aria-expanded="true"] .nav-avatar__caret {
    transform: rotate(180deg);
}

.nav-avatar__menu {
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: 1px solid #eee;
    padding: 8px 0;
    margin-top: 8px !important;
}

.nav-avatar__menu-header {
    display: flex;
    flex-direction: column;
    padding: 8px 16px 10px;
}

.nav-avatar__menu-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.nav-avatar__menu-email {
    font-size: 12px;
    color: #888;
    margin-top: 1px;
}

.nav-avatar__menu .dropdown-item {
    font-size: 14px;
    padding: 8px 16px;
    color: #333;
    border-radius: 6px;
    margin: 0 4px;
    width: calc(100% - 8px);
}

.nav-avatar__menu .dropdown-item:hover {
    background-color: #f0fafa;
    color: var(--color-primary-blue);
}

.nav-avatar__menu .dropdown-item.text-danger:hover {
    background-color: #fff0f0;
    color: #dc3545 !important;
}

.nav-avatar__menu i {
    color: #888;
    width: 16px;
}

.nav-avatar__menu .dropdown-item:hover i {
    color: var(--color-primary-blue);
}

.nav-avatar__menu .text-danger i,
.nav-avatar__menu .text-danger:hover i {
    color: #dc3545 !important;
}
