/*HAF specific styles - Temporary location while doing POC - Keeps content below navbar*/
.theme-body-content {
    padding-top: 4.5rem;
    padding-bottom: 1.5rem;
}

.theme-toggler {
    padding: 0 1.2rem 0 0; /* smaller padding */
    font-size: 1.12rem; /* set toggler icon size */
    border: none !important;
    box-shadow: none !important;
}

.theme-navbar {
    background-color: white;
    padding-bottom:10px;
}
    .theme-navbar .nav-link {
        font-weight:bold;
        font-size:.9rem;
    }

        /* Style for disabled links */
        .theme-navbar .nav-link.disabled {
            color: #6c757d !important;
            pointer-events: none; /* Prevent clicks */
            cursor: default;
        }

/* When navbar menu is not expanded */
@media (min-width: 991.99px) {
    .theme-navbar .dropdown-menu {
        right: 0; /* Align to the right edge of the parent */
        left: auto; /* Prevent alignment to the left */
        transform: translateX(-10px); /* Optional: Add slight padding from the edge */
        max-width: calc(100vw - 10px); /* Prevent overflow */
        overflow-x: hidden; /* Hide horizontal overflow */
    }
}

/* When navbar menu is expanded */
@media (max-width: 991.98px) {
    .theme-navbar:has(.collapse.show) {
        border-bottom-left-radius: 0.5rem;
        border-bottom-right-radius: 0.5rem;
        padding-bottom: 0px;
    }

    .theme-navbar .collapse.show {
        border-bottom-left-radius: 0.5rem;
        border-bottom-right-radius: 0.5rem;
        overflow: hidden; /* Optional: prevents content from spilling */
    }

        .theme-navbar .collapse.show .nav-link {
            color: white !important;
        }
}

.theme-footer {
    font-size:.85rem;
    text-align: center;
}

/*css to control section that creates the curve look under the top nav bar*/
.curve-base-section {
    background-color: white;
    position: relative;
    z-index: 2;
    padding-bottom: 0; /* Add some padding at the bottom */
    margin-bottom: 0; /* Remove negative margin */
    height:0px;
}

/* New class for the protruding curve */
.curve-svg {
    position: relative;
    height: 30px;
    margin-top: -1px; /* Connect to white section */
    margin-bottom: -100px; /* Allow overlap with blue section */
    z-index: 3; /* Higher than both sections */
}

.curve-svg svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Desktop curve (default) */
.curve-mobile {
    display: none;
}

@media (max-width: 768px) {
    .curve-desktop {
        display: none;
    }

    .curve-mobile {
        display: block;
    }
}

.curve-underlay-section {
    position: relative;
    z-index: 1;
    padding-top: 10px; /* Increased space at the top to account for the curve */
    height: 95px;
}

.action-section {
    min-height: 50px;
    padding: 1rem 0 1rem 0;
}

.action-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.action-border {
    /* Default: no border */
    border: none !important;
}

/* Small devices (phones) - bottom border only */
@media (max-width: 767.98px) {
    .action-border-top {
        border-top: 1px solid white !important;
    }

    /* Apply bottom border to all except last row items */
    .action-border-bottom {
        border-bottom: 1px solid white !important;        
    }

    /* Apply right border to odd columns (first in each row) */
    .action-border-right {
        border-right: 1px solid white !important;
        /*padding-left: 4px;*/
    }

    .action-border-left {
        border-left: 1px solid white !important;
    }
}

.action-button {
    background-color: white;
    border: 1px solid white;
    width: 150px;
    height: 150px;
    font-size: 6rem;
}

    .action-button:hover,
    .action-button:focus,
    .action-button:active {
        background-color: white !important;
        border-color: white !important;
        box-shadow: none !important;
        outline: none !important;
        transform: none !important;
    }

.bg-gray {
    background-color: #6b6d6f !important;
}

.bg-gray-light {
    background-color: #f0f0f1 !important;
}

.spinner-border-sm {
    --bs-spinner-width: 2rem;
    --bs-spinner-height: 2rem;
}

.facility-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

    /* Style for broken/missing images */
    .facility-logo::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
        display: none;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        z-index: 1;
    }
    .facility-logo::after {
        content: 'No Logo';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 24px;
        display: none;
        z-index: 2;
    }

    /* When image fails to load, hide the image and show the placeholder */
    .facility-logo[alt]:not([src]),
    .facility-logo[alt][src=""],
    .facility-logo[alt]:invalid {
        color: transparent;
        background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    }

        .facility-logo[alt]:not([src])::before,
        .facility-logo[alt][src=""]::before,
        .facility-logo[alt]:invalid::before,
        .facility-logo[alt]:not([src])::after,
        .facility-logo[alt][src=""]::after,
        .facility-logo[alt]:invalid::after {
            display: flex;
        }

/* Alternative text styling when image fails */
.facility-logo {
    font-size: 10px;
    color: #6c757d;
    text-align: center;
    line-height: 1.2;
    padding: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}