﻿
.goto {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background-color: #f0f1f3;
}

    .goto .goto-buttons {
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        position: relative;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

        .goto .goto-buttons::-webkit-scrollbar {
            width: 0;
            height: 0;
        }

@media screen and (max-width: 991px) {
    .goto .goto-buttons {
        gap: 0.5rem;
    }
}

.goto .goto-buttons .goto-button {
    flex: 1;
    user-select: none;
    text-align: center;
    border: 1px solid #dddddd;
    background-color: white;
    padding: 0.65rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    color: var(--theme-dark-blue);
/*    transition: all 0.05s ease-in-out;*/
}

@media screen and (max-width: 991px) {
    .goto .goto-buttons .goto-button {
        flex: 0 0 25%;
    }
}

.goto .goto-buttons .goto-button.active, .goto .goto-buttons .goto-button:hover {
    color: white;
    border-color: var(--theme-dark-blue);
    background-color: var(--theme-dark-blue);
}


.goto-sticky {
    width: 100%;
    background-color: rgb(234, 234, 235);
    transition: all 0.2s ease;
    z-index: 10;
}
    .goto-sticky.is-fixed {
        position: fixed;
        left: 0;
        right: 0;
        z-index: 98;
    }

    /*.goto-sticky.is-fixed {
        position: fixed;*/ /* FIXED after scroll */
        /*top: var(--header-height);*/ /* right under main-container */
        /*left: 0;
        right: 0;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }*/

/*@media (max-width: 992px) {
    .goto-sticky {
        position: sticky;
        top: 64px;
        z-index: 10;
    }
}
*/
/*@media (min-width: 993px) and (max-width: 1400px) {
    .goto-sticky {
        position: sticky;
        top: 70px;
        z-index: 10;
    }
}
*/
.left-shadow {
    position: absolute;
    left: 0;
    top: 0;
    visibility: hidden;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: left;
    height: 100%;
    width: 32px;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgb(245, 245, 247) 75%);
    z-index: 5;
}

.right-shadow {
    position: absolute;
    visibility: hidden;
    pointer-events: none;
    right: 0;
    top: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: right;
    height: 100%;
    width: 32px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgb(245, 245, 247) 75%);
    z-index: 5;
}

    .left-shadow.show,
    .right-shadow.show {
        visibility: visible;
        pointer-events: all;
    }


:root {
    --header-height: 55px;
}

@media (min-width: 993px) {
    :root {
        --header-height: 107px;
    }
}

.goto-dropdown {
    width: 100%;
    padding: 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid #ddd;
    font-weight: 600;
    color: var(--theme-dark-blue);
    display: none; /* default hidden for desktop */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px;
    padding-right: 2.5rem; /* space for chevron */
}


/* Desktop Floating Sidebar */
@media (min-width: 992px) {

    .goto-sticky,
    .goto {
        display: none;
    }

    .goto-sidebar-floating {
        display: block !important;
        position: fixed;
        right: 0;
        top: 30%;
        transform: translateX(-50%);
        z-index: 1000;
        width: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }
        .goto-sidebar-floating.is-visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
    .sidebar-nav {
        display: flex;
        flex-direction: column;
        gap: 0;
        box-shadow: 0px 1px 5px 2px rgb(255 255 255 / 26%);
        border-radius: 8px 0 0 8px;
        overflow: hidden;
    }

    .sidebar-item {
        position: relative;
        cursor: pointer;
        overflow: hidden;
        z-index: 1;
        display: flex;
        flex-direction: column; /* Stack icon + text vertically */
        align-items: center;
        justify-content: center;
        width: 75px; /* Fixed width, no expand */
        height: 85px; /* Taller to fit icon + text */
        cursor: pointer;
        text-decoration: none;
        background: #ffffff;
        padding: 5px;
/*        transition: color 0.3s ease;*/
        color: white;
    }

        .sidebar-item:first-child {
            border-radius: 8px 0 0 0;
        }

        .sidebar-item:last-child {
            border-bottom: none;
            border-radius: 0 0 0 0;
        }

    /* Icon */
    .sidebar-icon {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        color: white;
        padding-top: 10px;
    }

    /* Text below icon */
    .sidebar-text {
        font-size: 8px;
        color: white;
        text-align: center;
        padding: 4px 4px 8px;
        white-space: normal;
        line-height: 1.2;
        opacity: 1;
        transform: none;
        pointer-events: none;
    }

    .sidebar-item::before {
        display: none;
    }

    /*.sidebar-item:hover::before {
        filter: brightness(0.85);
        color: white;*/ /* keep text white */
        /*border: none;*/ /* remove the white border flash */
    /*}*/

    .sidebar-item:hover {
        filter: brightness(0.85);
/*        border: 1px solid white;*/
    }
    .sidebar-icon,
    .sidebar-icon em,
    .sidebar-text {
        color: inherit;
    }
    /* Keep the per-item gradient backgrounds on the whole item */
    .sidebar-item:nth-child(1) {
        background: var(--theme-dark-blue);
    }

    .sidebar-item:nth-child(2) {
        background: var(--theme-dark-green);
    }

    .sidebar-item:nth-child(3) {
        background: var(--theme-dark-purple);
    }

    .sidebar-item:nth-child(4) {
        background: var(--theme-turquoise);
    }

    .sidebar-item:nth-child(5) {
        background: linear-gradient(135deg, #00bcd4, #0097a7);
    }

    .sidebar-item:nth-child(6) {
        background: linear-gradient(135deg, #4caf50, #388e3c);
    }

    .sidebar-item:nth-child(7) {
        background: linear-gradient(135deg, #ff5722, #e64a19);
    }

    .sidebar-item:nth-child(8) {
        background: linear-gradient(135deg, #795548, #5d4037);
    }

    .sidebar-item:nth-child(9) {
        background: linear-gradient(135deg, #607d8b, #455a64);
    }

    /* Remove the separate sidebar-icon gradient since the whole item is colored now */
    .sidebar-icon {
        background: transparent !important;
    }

    /* Active state */
    .sidebar-item.active {
        filter: brightness(0.85);
    }
}

/* Show on mobile (<768px) */
@media screen and (max-width: 991px) {
    .goto-buttons {
        display: none !important; /* hide horizontal buttons */
    }

    .goto-dropdown {
        display: block;
        outline: 0;
    }

    .goto-sticky {
        display: block;
        position: sticky;
        top: 55px; /* match your mobile header height */
        width: 100%;
        background-color: rgb(234, 234, 235);
        z-index: 98;
        transition: all 0.2s ease;
    }
}

#cost-treatment {
    scroll-margin-top: 100px; /* adjust to match your navbar height */
}