﻿
.main-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.main-heading h1 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.2rem;
}

.test-title {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    font-weight: 700;
    color: #212529;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* In case very long names */
}

.badge-labs {
    background-color: #f1f3f5;
    color: #0d6efd;
    font-weight: 500;
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.known-as {
    font-size: 0.9rem;
    color: #6c757d;
}

.view-toggle .btn {
    text-wrap: nowrap;
    border-radius: 5px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.accordion-button {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 500;
}

    .accordion-button:not(.collapsed) {
        background-color: #e9ecef;
        color: #0d6efd;
    }

.accordion-body {
    padding-top: 0.5rem;
}


.apply-btn {
    background-color: #0d6efd;
    color: #fff;
    border-radius: 0.4rem;
    width: 100%;
    margin-top: 1rem;
}



    .search-bar .search-icon {
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d; /* Bootstrap muted text color */
        font-size: 1rem;
    }

   

.input-group {
    /*border: 1px solid #ced4da;   - Single border */
    border-radius: 0.4rem; /* Slight outer curve */
    overflow: hidden;
}

.input-group-text {
    background-color: #fff;
    border-right: 1px solid #ced4da; /* Add right border to icon */
}



  

.input-group .btn {
    background-color: #09064F; /* Dark blue button */
    color: #fff;
    border: none;
    border-radius: 0; /* Prevent button corner curve inside */
}

    .input-group .btn:hover {
        background-color: #004080; /* Even darker on hover */
    }




.btn-search {
    background-color: #09064F;
    color: #fff;
    border-radius: 0 0.3rem 0.3rem 0;
}

    .btn-search:hover {
        background-color: #06043a;
    }

.filter-group label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.form-check-label {
    font-size: 0.9rem;
    color: #495057;
}


.apply-btn {
    background-color: #09064F;
    color: #fff;
    border-radius: 0.4rem;
    width: 100%;
}

    .apply-btn:hover {
        background-color: #06043a;
    }

.filter-sidebar {
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    
}

.filter-sidebar h5 {
    font-size: 1.2rem;
    color: #09064F; /* Your brand color */
    margin-bottom: 1rem;
}

.filter-sidebar .form-label {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: #343a40;
}

.filter-sidebar hr {
    margin: 1rem 0;
    border-color: #dee2e6;
}

.filter-sidebar .form-check-label {
    font-size: 0.9rem;
    color: #495057;
}

.filter-sidebar .btn-primary {
    background-color: #09064F;
    border: none;
    font-weight: 500;
}

.filter-sidebar .btn-primary:hover {
    background-color: #06043a;
}

.search-icon-bg {
    background-color: #09064F; /* Same as button */
    border: 1px solid #09064F; /* Add border */
    border-right: none; /* Merge into input field */
    border-radius: 0.25rem 0 0 0.25rem; /* Rounded left side only */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    min-width: 40px;
    
    display: flex;
    align-items: center;
    justify-content: center;
   
}

.btn-search {
    background-color: #09064F;
    color: #fff;
    border: 1px solid #09064F; /* Add border */
    border-left: none; /* Merge into input field */
    border-radius: 0 0.25rem 0.25rem 0; /* Rounded right side only */
}

    .btn-search:hover {
        background-color: #06043a;
        border-color: #06043a;
    }

.input-group .form-control {
    border: 1px solid #09064F; /* Border to match icon and button */
    border-left: none; /* Merge into icon */
    border-right: none; /* Merge into button */
   
    box-shadow: none;
}

    .input-group .form-control:focus {
        box-shadow: 0 0 0 0.2rem rgba(9, 6, 79, 0.25); /* Focus outline in blue */
    }


/* Default: Grid View */
#labTestsContainer.grid-view .lab-test-card {
    display: block;
    
}

/* List View */
#labTestsContainer.list-view .lab-test-card {
    flex: 0 0 100%; /* Full width */
    max-width: 100%;
}

    #labTestsContainer.list-view .lab-test-card .card {
        display: flex;
        flex-direction: row;
    }

        #labTestsContainer.list-view .lab-test-card .card img {
            max-width: 150px;
            margin-right: 1rem;
        }

#labTestsContainer.grid-view .lab-card {
    /* flex: 0 0 50%;  2 columns */
    max-width: 50%;
    padding-left: 20px; /* spacing between cards */
}

@media (min-width: 1200px) {
    #labTestsContainer.grid-view .lab-card {
        flex: 0 0 33.3333%; /* 3 columns on XL */
        max-width: 33.3333%;
    }
}

#labTestsContainer.list-view .lab-card {
    flex: 0 0 100%; /* full width for list */
    max-width: 100%;
    
}

#labTestsContainer.list-view .lab-card .card {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#labTestsContainer.list-view .lab-card .card img {
    max-width: 150px;
    margin-right: 1rem;
}

.labs-list .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.labs-list .form-check-input {
    margin-top: 0;
    flex-shrink: 0;
}

.labs-list img {
    height: 20px;
    max-width: 50px;
    object-fit: contain;
    margin-right: 8px;
    flex-shrink: 0;
}

.labs-list .form-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
    flex-grow: 1;
}

.labs-list .extra-lab {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.labs-list .extra-lab.active {
    display: flex; /* or block if your layout prefers */
    opacity: 1;
}

.show-more-container {
    margin-top: 5px;
}

.show-more-link {
    font-size: 1.05rem;
    font-weight: 500;
    color: #09064F;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.show-more-link .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.show-more-link.expanded .arrow {
    transform: rotate(180deg); /* arrow flips up */
}

/*
        Shimmers
        */

/* Layout container */
/* Shimmer container layout */
#labTestsContainer.shimmer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* <-- Add spacing between shimmer cards */
    margin: 0;
    padding: 0;
}

/* Each shimmer card */
.lab-card.shimmer {
    width: calc(33.333% );
    padding: 10px;
    background: none;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
}

/* Inner shimmer effect */
.shimmer-box {
    background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
    background-size: 1000px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 4px;
    width: 100%;
    padding: 12px 0;
}

/* Fake image and lines */
.shimmer-img {
    width: 100%;
    height: 140px;
    margin-bottom: 12px;
}

.shimmer-line {
    height: 14px;
    margin-bottom: 10px;
    background-color: #eee;
}

    .shimmer-line.short {
        width: 60%;
    }

/* Keyframes */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .lab-card.shimmer {
        width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .lab-card.shimmer {
        width: 100%;
    }
}

/*Search bar select2*/
/* Make Select2 look like a Bootstrap input */
.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Force input-group to display in single row */
.input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    width: 100%;
}


/* Bootstrap 4 uses form-control for selects */
#labTestSearch,
.form-control {
    flex: 1 1 auto;
       min-width: 200px;
   
}
    #labTestSearch:focus,
    .form-control:focus {
        border-color: #80bdff;
        box-shadow: none;
    }

.btn-search {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    border-left: none;
    border-radius: 0 0.25rem 0.25rem 0 !important;
    padding: 0.50rem 1rem;
    white-space: nowrap;
    min-width: 100px;
}
    .btn-search:hover {
        background-color: #218838;
        border-color: #1e7e34;
        color: white;
    }

    .btn-search:focus {
        box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    }

/* Fix for input-group-append in Bootstrap 4 */
.input-group-append {
    display: flex;
}

.input-group-prepend {
    display: flex;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .input-group {
        flex-wrap: nowrap !important;
    }

    #labTestSearch,
    .form-control {
        min-width: 150px;
    }

    .btn-search {
        min-width: 80px;
        padding: 0.375rem 0.75rem;
    }

  
}



.no-result {
    cursor: default;
    font-size: 14px;
}

.ui-autocomplete {
    z-index: 1050 !important;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.95rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.autocomplete-test-item {
    cursor: pointer;
    transition: background 0.2s ease-in-out;
    padding: 4px 0;
}

    .autocomplete-test-item:hover {
        background-color: #f8f9fa;
    }

.badge.bg-success {
    background-color: #28a745 !important;
    font-size: 0.75rem;
    padding: 4px 8px;
    color: #fff;
}

.price-text {
    font-weight: 500;
    color: #444;
}

.badge.bg-success {
    background-color: #28a745 !important;
    font-size: 0.75rem;
    padding: 4px 8px;
    margin-left: 12px; /* fallback gap */
}

.btn-outline-primary:not(:disabled):not(.disabled).active, .btn-outline-primary:not(:disabled):not(.disabled):active, .show > .btn-outline-primary.dropdown-toggle
Specificity {
    color: #fff;
    background-color: #09064F;
    border-color: #09064F;
}
