/* ===============================
   GLOBAL STYLES
================================= */
html {
    overflow-x: hidden;
    /*    display: flex;
    flex-direction: column;
    height: 100%;*/
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #212121;
    /*    overflow-x: hidden;
    display: flex;
    flex-direction: column;*/
}

.container-fluid {
    overflow-x: hidden;
}

h1 {
    font-weight: 700;
    font-size: 38px;
}

h2 {
    font-size: 28px;
    font-weight: 700;
}

h4 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

h5 {
    font-weight: 600;
}

@media (max-width: 768px) {
    h3 {
        font-size: 18px;
    }

    h2 {
        font-size: 20px;
    }
}
/* ===============================
   NAVBAR
================================= */
/* ==========================
   NAVBAR
========================== */
.navbar-custom {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    position: sticky !important;
    top: 0;
    z-index: 999;
}

.navbar-brand {
    font-size: 30px !important;
    font-weight: 700;
    color: #dc2626 !important;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: #374151 !important;
    margin-right: 15px;
}

    .nav-link:hover {
        color: #dc2626 !important;
    }


/* RIGHT */

.navbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}


/* SEARCH */

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    padding: 10px 15px;
    border-radius: 30px;
}

    .search-box input {
        border: none;
        background: transparent;
        outline: none;
    }


/* CART */

.cart-icon {
    position: relative;
    font-size: 22px;
    color: #111827;
    text-decoration: none;
    /* Icon chuttu padding unte overflow thagguthundi */
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .cart-icon span {
        position: absolute;
        /* Top mariyu Right ni konchem modify chesam */
        top: 0;
        right: 0;
        /* Count periginaa circle shape raavadaniki min-width vaadali */
        min-width: 18px;
        height: 18px;
        background: #ef4444; /* Standard red */
        color: #fff;
        border-radius: 50%;
        font-size: 10px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Text icon meedaki raakunda transform tho konchem adjust cheyali */
        transform: translate(25%, -25%);
        /* Extra safety for overflow */
        z-index: 2;
    }

/* Parent container (navbar) overflow avvakunda idi add cheyandi */
.navbar-custom .container-fluid {
    overflow: visible !important;
}


/* SIGN IN */

.signin-btn {
    background: linear-gradient(90deg,#dc2626,#f97316);
    color: #fff;
    padding: 5px 10px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}


/* MOBILE */

@media(max-width:992px) {

    .navbar-right {
        margin-top: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    #heroCarousel .carousel-item img {
        max-width: 600px !important;
        margin: 0 auto !important;
    }

    #heroCarousel {
        height: 250px !important;
    }
}

/* ===============================
   CART BADGE
================================= */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #E53935;
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 50%;
}

/* ===============================
   BUTTON
================================= */
.btn-primary-custom {
    background: linear-gradient(90deg, #E53935, #FF6F00);
    border: none !important;
    color: white !important;
    border-radius: 25px !important;
    padding: 8px 20px !important;
    font-weight: 500 !important;
    white-space: nowrap;
}

    .btn-primary-custom:hover {
        color: #dc2626 !important;
        background: #ffffff !important;
        border: 1px solid #ececec !important;
    }

/* ===============================
   FOOTER
================================= */
.footer {
    background: #f8f8f8;
    padding: 40px 0 30px 0;
    margin-top: 30px;
}

    .footer h6 {
        font-weight: 600;
        margin-bottom: 15px;
    }

    .footer a {
        display: block;
        color: #555;
        text-decoration: none;
        margin-bottom: 8px;
        font-size: 14px;
    }

        .footer a:hover {
            color: #E53935;
        }

.footer-bottom {
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 15px;
    font-size: 13px;
    color: #777;
}

/* ===============================
   HERO SECTION
================================= */
.hero-section {
    height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(120deg, #ffffff, #f5f5f5);
    padding: 0 60px;
}

.hero-title {
    font-size: 38px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 18px;
    color: #555;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* ===============================
   SEARCH BAR LARGE
================================= */
.hero-search {
    width: 500px;
    border-radius: 40px;
    border: 1px solid #ddd;
    height: 45px;
    padding: 5px 20px;
}

/* ===============================
   TRUST BADGES
================================= */
.trust-section {
    padding: 30px 60px;
    background: #fff;
}

.trust-item {
    font-weight: 500;
    color: #444;
}

/* ===============================
   CARDS
================================= */
.card-custom {
    border-radius: 16px;
    border: 1px solid #eee;
    padding: 20px;
    transition: all 0.3s ease;
    background: #fff;
}

    .card-custom:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

.card-title {
    font-weight: 600;
    font-size: 18px;
}

.card-price {
    font-weight: 700;
    color: #E53935;
    font-size: 18px;
}

/* ===============================
   SECTION TITLE
================================= */


/* ===============================
   HOW IT WORKS
================================= */
.how-section {
    background: #f9f9f9;
}

.how-card {
    text-align: center;
    padding: 20px;
}

    .how-card h5 {
        font-weight: 600;
        margin-top: 10px;
    }

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 40px 20px;
    }

    .hero-search {
        width: 100%;
        height: 40px;
    }

    .search-box {
        width: 100%;
    }

    #heroCarousel {
        margin-top: 30px;
    }
}


/* ===============================
   HOME PAGE - HERO IMAGE
================================= */
.hero-section img {
    height: 100%;
    max-height: 420px;
    border-radius: 12px;
}

/* ===============================
   HERO BUTTON ALIGNMENT
================================= */
.hero-section .btn-primary-custom {
    height: 40px;
    padding: 5px 20px;
    font-size: 16px;
    white-space: nowrap;
}

/* ===============================
   TRUST ITEMS
================================= */
.trust-item {
    font-size: 14px;
    color: #555;
}

/* ===============================
   POPULAR TEST SECTION
================================= 
.section-title {
    font-size: 26px;
    font-weight: 700;
}
    */
/* ===============================
   CARD CUSTOM (ENHANCED)
================================= */
.card-custom {
    border-radius: 18px;
    border: 1px solid #f0f0f0;
    padding: 22px;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
}

    .card-custom:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    }

    .card-custom p {
        font-size: 14px;
        color: #666;
    }

/* ===============================
   PRICE STYLE
================================= */
.card-price {
    font-weight: 700;
    color: #E53935;
    font-size: 20px;
}

/* ===============================
   HOW SECTION
================================= */
.how-section {
    background: #fafafa;
}

.how-card i {
    font-size: 40px;
}

.how-card p {
    font-size: 14px;
    color: #666;
}

/* ===============================
   WHY SECTION
================================= */
.card-custom.text-center i {
    font-size: 36px;
}

/* ===============================
   RESPONSIVE IMPROVEMENTS
================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 16px;
        text-align: start;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 20px;
        text-align: start;
    }
}

/* ===== PATIENT PAGE ===== */
/* =========================================
   PATIENT PAGE
========================================= */

.patient-page {
    padding: 30px 60px;
    background: #f8f9fb;
}



.patient-step {
    font-size: 11px;
    font-weight: 600;
    color: #ef4444;
    margin-bottom: 8px;
}

.patient-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.patient-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}


/* =========================================
   PATIENT GRID / CARD
========================================= */

.patient-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.patient-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 18px;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .patient-card.active {
        border: 2px solid #f97316;
    }

.patient-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
}

.patient-avatar {
    width: 58px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 14px;
}

.patient-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.patient-card p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 18px;
}


/* =========================================
   BUTTONS
========================================= */

.patient-btn {
    width: 100%;
    height: 46px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fff;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

    .patient-btn:hover {
        color: #dc2626;
        border: 1px solid #ececec;
        border-radius: 10px;
        background: #fff;
    }

.active-btn {
    border: none;
    color: #fff;
    background: linear-gradient(90deg,#ef4444,#f97316);
}


/* =========================================
   ADD CARD
========================================= */

.add-card {
    border: 2px dashed #f3d7d7;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.plus-icon {
    width: 52px;
    height: 52px;
    font-size: 28px;
    border-radius: 12px;
    background: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}


/* =========================================
   ACTION BUTTONS
========================================= */

.patient-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.cancel-btn {
    padding: 12px 0;
    border: none;
    background: transparent;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.continue-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

    .continue-btn:hover {
        background: #000;
    }


/* =========================================
   FAMILY MODAL
========================================= */

.family-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.45);
}

.family-modal-box {
    width: 850px;
    padding: 35px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.family-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .family-modal-header h2 {
        font-size: 32px;
        font-weight: 700;
    }

    .family-modal-header span {
        font-size: 30px;
        cursor: pointer;
    }

.family-modal-subtitle {
    margin: 8px 0 30px;
    color: #6b7280;
}

.family-form-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}

.family-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
}

.family-form-group input,
.family-form-group select {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
}

.family-submit-btn {
    margin-top: 30px;
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

/* =========================================
   TABLET RESPONSIVE (992px)
========================================= */
@media (max-width: 992px) {

    .patient-page {
        padding: 20px;
    }

    .patient-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .patient-card {
        min-height: 230px;
        padding: 16px;
    }

    .patient-title {
        font-size: 24px;
    }

    .patient-subtitle {
        font-size: 14px;
        max-width: 100%;
    }

    .patient-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .family-modal-box {
        width: 90%;
        padding: 28px;
    }

    .family-modal-header h2 {
        font-size: 26px;
    }
}


/* =========================================
   MOBILE RESPONSIVE (768px)
========================================= */
@media (max-width: 768px) {

    .patient-page {
        padding: 15px;
    }

    .patient-container {
        max-width: 100%;
    }

    .patient-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .patient-card {
        min-height: auto;
        padding: 15px;
    }

    .patient-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .patient-subtitle {
        font-size: 13px;
        line-height: 1.6;
    }

    .patient-avatar {
        width: 44px;
        height: 44px;
    }

    .patient-card h3 {
        font-size: 15px;
    }

    .patient-card p {
        font-size: 12px;
    }

    .patient-btn {
        height: 42px;
        font-size: 13px;
    }

    .patient-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cancel-btn,
    .continue-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .continue-btn {
        padding: 14px;
    }

    .family-modal-box {
        width: 95%;
        padding: 22px;
        border-radius: 16px;
    }

    .family-modal-header {
        flex-direction: row;
        align-items: center;
    }

        .family-modal-header h2 {
            font-size: 22px;
        }

    .family-modal-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .family-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .family-form-group input,
    .family-form-group select {
        height: 50px;
        font-size: 14px;
    }

    .family-submit-btn {
        width: 100%;
        padding: 14px;
        font-size: 14px;
    }
}


/* =========================================
   SMALL MOBILE (480px)
========================================= */
@media (max-width: 480px) {

    .patient-title {
        font-size: 20px;
    }

    .patient-step {
        font-size: 10px;
    }

    .patient-card {
        border-radius: 12px;
    }

    .family-modal-header h2 {
        font-size: 20px;
    }

    .family-modal-box {
        padding: 18px;
    }

    .plus-icon {
        width: 46px;
        height: 46px;
        font-size: 24px;
    }
}

/* =========================================
   TESTS PAGE WRAPPER
========================================= */

.tests-page {
    padding: 30px 60px;
}


/* =========================================
   SELECTED PATIENT STRIP
========================================= */

.selected-patient-strip {
    padding: 10px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.patient-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .patient-left img {
        width: 50px;
        height: auto;
        border-radius: 12px;
        object-fit: cover;
    }

    .patient-left small {
        font-size: 12px;
        color: #6b7280;
    }

    .patient-left h5 {
        margin: 0;
        font-size: 15px;
        font-weight: 600;
    }

.change-patient {
    color: #ef4444;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}


/* =========================================
   FILTER BAR
========================================= */

.tests-filter-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.test-search,
.test-filter {
    height: 52px;
    padding: 0 0 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    font-size: 14px;
    color: #111827;
}

.test-search {
    flex: 2;
    min-width: 250px;
}

.test-filter {
    flex: 1;
    min-width: 170px;
}


/* =========================================
   MOBILE FILTER BUTTON
========================================= */

.mobile-filter-btn {
    display: none;
    height: 52px;
    padding: 0 20px;
    border: none;
    background: #111827;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
}

/* =========================================
   TESTS PAGE WRAPPER
========================================= */









.patient-left small {
    font-size: 12px;
    color: #6b7280;
}

.patient-left h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.change-patient {
    color: #ef4444;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}


/* =========================================
   FILTER BAR
========================================= */

.tests-filter-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.test-search,
.test-filter {
    height: 52px;
    padding: 0 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    font-size: 14px;
    color: #111827;
}

.test-search {
    flex: 2;
    min-width: 250px;
}

.test-filter {
    flex: 1;
    min-width: 170px;
}


/* =========================================
   MOBILE FILTER BUTTON
========================================= */

.mobile-filter-btn {
    display: none;
    height: 52px;
    padding: 0 20px;
    border: none;
    background: #111827;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}


/* =========================================
   TEST GRID
========================================= */

.tests-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 28px;
}


/* =========================================
   TEST CARD
========================================= */

.test-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}


/* BADGE */

.test-badge {
    position: absolute;
    top: 10px;
    right: 18px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 30px;
    background: #dff6fb;
    color: #0891b2;
}

    .test-badge.orange {
        background: #fff1e7;
        color: #f97316;
    }


/* TITLE */

.test-card h3 {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
}


/* TAGS */

.test-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 32px;
    margin-bottom: 14px;
}

.test-tag {
    padding: 10px 10px;
    font-size: 10px;
    font-weight: 700;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 4px;
}


/* DESCRIPTION */

.test-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #6b7280;
    margin: 0;
    flex-grow: 1;
}


/* DIVIDER */

.test-divider {
    margin: 18px 0;
    border-top: 1px solid #f1f5f9;
}


/* FOOTER */

.test-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}


    /* PRICE */

    .test-footer h4 {
        margin: 0;
        font-weight: 700;
        color: #111827;
    }


    /* BUTTON */

    .test-footer button {
        border: none;
        padding: 8px 8px;
        border-radius: 10px;
        background: linear-gradient(90deg,#dc2626,#f97316);
        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }


/* =========================================
   FILTER DRAWER
========================================= */

.filter-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    padding: 25px;
    transition: .3s;
    box-shadow: -10px 0 30px rgba(0,0,0,.1);
}

    .filter-drawer.active {
        right: 0;
    }

.drawer-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .drawer-header h4 {
        font-size: 18px;
        font-weight: 700;
    }

    .drawer-header span {
        font-size: 24px;
        cursor: pointer;
    }

.drawer-filter {
    width: 100%;
    height: 50px;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 15px;
}


/* =========================================
   TABLET RESPONSIVE
========================================= */

@media(max-width:992px) {

    .tests-grid {
        grid-template-columns: repeat(2,1fr);
    }
}


/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media(max-width:768px) {

    .tests-page {
        padding: 18px;
    }

    .selected-patient-strip {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .tests-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .test-card {
        min-height: auto;
        padding: 22px;
    }

        .test-card h3 {
            font-size: 18px;
            min-height: auto;
        }

        .test-card p {
            font-size: 14px;
            line-height: 1.7;
        }

    .test-footer h4 {
        font-size: 24px;
    }

    .test-footer button {
        font-size: 14px;
    }

    .test-filter {
        display: none;
    }

    .mobile-filter-btn {
        display: block;
        width: 100%;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media(max-width:480px) {

    .test-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

        .test-footer button {
            width: 100%;
        }
}
/* ============================
   CART PAGE FIXED STICKY
============================ */

.cart-page {
    background: #f8f9fb;
    height: auto;
    overflow: hidden;
}


/* LAYOUT */

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    height: 100%;
}


/* LEFT WRAPPER */

.cart-left-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}


/* TITLE */

.cart-title-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .cart-title-row h3 {
        font-size: 24px;
        font-weight: 700;
    }


/* LEFT SCROLL ONLY */

.cart-left {
    overflow-y: auto;
    padding-right: 10px;
}


/* RIGHT FIXED */

.cart-right {
    height: fit-content;
}


/* ITEM */

.cart-item {
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.delete-icon {
    position: absolute;
    top: 20px;
    right: 20px;
}

.cart-item img {
    width: 80px;
    height: 90px;
    border-radius: 10px;
}

.cart-item-info {
    flex: 1;
}

    .cart-item-info h4 {
        font-size: 22px;
        font-weight: 700;
    }

.qty-box {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

    .qty-box button {
        width: 30px;
        height: 30px;
        border: none;
        background: #f3f4f6;
    }

.cart-price h4 {
    color: red;
    font-weight: 700;
}


/* SUMMARY */

.summary-card {
    background: white;
    padding: 30px;
    border-radius: 18px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.summary-divider {
    border-top: 1px solid #eee;
    margin: 25px 0;
}

.summary-total-wrap {
    text-align: right;
}

    .summary-total-wrap h4 {
        color: red;
        font-weight: 700
    }

.booking-btn {
    width: 100%;
    margin-top: 20px;
    height: 60px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg,#dc2626,#f97316);
    color: white;
}


/* MOBILE */

@media(max-width:992px) {

    .cart-page {
        height: auto;
        overflow: visible;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-left {
        overflow: visible;
    }
}

/* ============================
   SUCCESS PAGE
============================ */

.success-page {
    padding: 10px 2px;
    background: #f8f9fb;
}


/* HEADER */

.success-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.success-badge {
    background: #dff6fb;
    color: #0891b2;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
}



.success-order {
    color: #6b7280;
    font-size: 16px;
}

    .success-order span {
        color: #dc2626;
        font-weight: 700;
    }


/* SUPPORT BUTTON */

.support-btn {
    border: none;
    background: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}





/* CARD COMMON */

.tracking-card,
.instruction-card,
.summary-card,
.reschedule-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,.03);
}





/* TIMELINE */
.timeline-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 5px;
}

.timeline-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg,#dc2626,#f97316);
    border-radius: 12px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5px;
}

    .timeline-icon.gray {
        background: #e5e7eb;
        color: #6b7280;
    }

.timeline-content {
    flex: 1;
}

    .timeline-content h4 {
        font-size: 18px;
        font-weight: 700;
    }

    .timeline-content p {
        color: #6b7280;
        margin-top: 6px;
    }

.timeline-item span {
    font-size: 13px;
    color: #9ca3af;
}


/* ASSIGNED */

.assigned-box {
    background: #f9fafb;
    padding: 0 14px 14px;
    border-radius: 12px;
    margin-top: 15px;
    display: flex;
    gap: 14px;
    align-items: center;
}

    .assigned-box img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
    }


/* INSTRUCTION */

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}

.instruction-box {
    background: #f9fafb;
    padding: 20px;
    border-radius: 14px;
    display: flex;
}

    .instruction-box i {
        font-size: 24px;
        color: #dc2626;
    }


/* SUMMARY */

.summary-test {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-top: 20px;
}

    .summary-test small {
        display: block;
        color: #9ca3af;
    }

.summary-divider {
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

    .summary-row.total {
        margin-top: 20px;
        font-size: 18px;
        font-weight: 700;
    }

.green {
    color: #10b981;
}


/* BUTTON */

.receipt-btn {
    width: 100%;
    max-width: 200px;
    height: 45px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg,#dc2626,#f97316);
    color: #fff;
    font-weight: 600;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

    .receipt-btn:hover {
        color: #dc2626;
        background: #ffffff;
        border: 1px solid #ececec;
        border-radius: 10px;
    }

.secured-text {
    text-align: center;
    margin-top: 15px;
    font-size: 11px;
    color: #9ca3af;
    letter-spacing: 1px;
}
/* RESCHEDULE */

.reschedule-card {
    background: #111827;
    color: #fff;
}

    .reschedule-card p {
        color: #d1d5db;
        margin: 15px 0;
    }

    .reschedule-card a {
        color: #f97316;
        text-decoration: none;
        font-weight: 600;
    }
/* RESPONSIVE */

@media(max-width:992px) {

    .success-grid {
        flex-wrap: wrap;
        gap: 0 !important;
    }

    .instruction-grid {
        grid-template-columns: 1fr;
    }
}


@media(max-width:768px) {

    .success-page {
        padding: 20px;
    }

    .success-header-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .success-title {
        font-size: 20px !important;
        padding-top: 10px;
    }

    .timeline-item {
        flex-direction: column;
        padding-bottom: 0 !important;
    }
}
/* ==========================
   REPORTS DASHBOARD
========================== */

.reports-page {
    padding: 30px 60px;
    background: #f8f9fb;
}
/* HEADER */

.reports-header h1 {
    margin-bottom: 10px;
}

.reports-header p {
    color: #6b7280;
    margin-bottom: 35px;
}
/* GRID */

.reports-top-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
    margin-bottom: 30px;
}
/* METRIC CARD */

.metric-card {
    background: #fff;
    padding: 20px;
    border-radius: 18px;
    border-left: 4px solid #dc2626;
}

    .metric-card small {
        font-size: 11px;
        color: #9ca3af;
    }

    .metric-card h4 {
        margin: 12px 0;
    }

.metric-value-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .metric-value-wrap h2 {
        font-size: 40px;
        color: #dc2626;
    }

    .metric-value-wrap span {
        color: #10b981;
    }
/* TREND CARD */

.trend-card {
    background: #fff;
    padding: 30px;
    border-radius: 18px;
}

.trend-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

    .trend-top span {
        background: #f3f4f6;
        padding: 10px 25px;
        border-radius: 30px;
        font-size: 12px;
        height: 40px;
    }
/* CHART */

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 100px;
}

.bar {
    width: 55px;
    background: #f1f5f9;
    border-radius: 10px 10px 0 0;
}

    .bar.active {
        background: linear-gradient(180deg,#f97316,#dc2626);
    }

.h40 {
    height: 40px;
}

.h55 {
    height: 55px;
}

.h60 {
    height: 60px;
}

.h80 {
    height: 80px;
}

.h90 {
    height: 90px;
}

.h100 {
    height: 100px;
}

.h110 {
    height: 110px;
}
/* TABLE */

.reports-table-card {
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    margin-top: 20px;
}

.table-header {
    display: flex;
    justify-content: space-between;
}

.table-actions {
    display: flex;
    gap: 15px;
}

    .table-actions input {
        padding: 12px 15px;
        border: 1px solid #eee;
        border-radius: 10px;
    }

    .table-actions button {
        background: #f3f4f6;
        border: none;
        padding: 0 15px;
        border-radius: 10px;
    }
/* TABLE */

.reports-table {
    width: 100%;
    border-collapse: collapse;
}

    .reports-table th {
        padding: 18px;
        font-size: 13px;
        color: #9ca3af;
    }

    .reports-table td {
        padding: 20px 18px;
        border-top: 1px solid #f1f5f9;
    }

        .reports-table td small {
            display: block;
            color: #9ca3af;
        }

/* ================= RESPONSIVE ================= */

/* Tablets */
@media (max-width: 992px) {

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .table-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

        .table-actions input {
            flex: 1;
            width: 100%;
        }

        .table-actions button {
            flex: 1;
            padding: 10px;
        }
}

/* Mobile */
@media (max-width: 768px) {

    .reports-table-card {
        padding: 15px;
    }

    /* Table scroll */
    .reports-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

        .reports-table th,
        .reports-table td {
            padding: 10px;
            font-size: 12px;
        }

    /* Buttons stack */
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .download-btn {
        width: 100%;
        font-size: 12px;
        padding: 8px;
    }

    /* Footer center */
    .table-footer {
        text-align: center;
        font-size: 12px;
    }

    /* Pagination center */
    .pagination-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    .page-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .page-info {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {

    .table-actions {
        flex-direction: column;
    }

        .table-actions button {
            width: 100%;
        }

    .reports-table th,
    .reports-table td {
        font-size: 11px;
    }
}
/* STATUS */

.status {
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.ready {
    background: #dff6fb;
    color: #0891b2;
}

.processing {
    background: #fff1e7;
    color: #f97316;
}
/* BUTTONS */

.download-btn {
    background: linear-gradient(90deg,#dc2626,#f97316);
    color: white;
    border: none;
    padding: 8px 8px;
    border-radius: 10px;
    font-size: 14px;
}

.review-btn {
    background: #f3f4f6;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
}
/* FOOTER */

.table-footer {
    margin-top: 20px;
    color: #6b7280;
}
/* MOBILE */

@media(max-width:992px) {

    .reports-top-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width:768px) {

    .reports-page {
        padding: 20px;
    }

    .table-header {
        flex-direction: column;
        gap: 20px;
    }

    .reports-table {
        display: block;
        overflow-x: auto;
    }
}

.pagination-wrap {
    text-align: center;
    margin-top: 20px;
}
/* Buttons */
.page-btn {
    background: linear-gradient(180deg, #f97316, #dc2626);
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
    /* Hover Effect */
    .page-btn:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 8px 18px rgba(0,0,0,0.25);
        background: linear-gradient(180deg, #fb923c, #ef4444);
    }
    /* Active Click */
    .page-btn:active {
        transform: scale(0.95);
    }
    /* Disabled State */
    .page-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
        box-shadow: none;
    }
/* Page Info */
.page-info {
    margin: 0 12px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.summary-total-wrap .small {
    font-size: 14px;
}
/* Container styling */
.cart-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    width: auto;
    white-space: nowrap;
}

    /* Base Button Style */
    .cart-actions .btn {
        flex: 1; /* Rendu equal sizes lo untayi */
        height: 35px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        box-sizing: border-box; /* Layout shift kakunda help chestundi */
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        outline: none;
        border: 1.5px solid transparent; /* Reserve border space early */
    }

/* Clear All - Subtle Red Style */
.clear-btn {
    background-color: #fff1f2;
    color: #e11d48;
    border-color: #ffe4e6;
}

    .clear-btn:hover {
        background-color: #ffffff;
        border-color: #e11d48;
        box-shadow: 0 4px 12px rgba(225, 29, 72, 0.1);
    }

/* Add Items - Premium Blue Style */
.home-btn {
    background: linear-gradient(90deg, #dc2626, #f97316);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

    .home-btn:hover {
        color: #dc2626;
        background: #ffffff;
        border: 1px solid #ececec;
        border-radius: 10px;
    }

/* Icon adjustments */
.cart-actions .btn i {
    font-size: 16px;
    display: flex;
    align-items: center;
}



.carousel-item {
    transition: transform 1.2s ease-in-out;
}

.text-card p {
    font-size: 14px;
}
/* Tablet */
@media (max-width: 992px) {
    .carousel-item img {
        height: 100%;
        max-height: 300px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .carousel-item img {
        height: 200px;
        border-radius: 12px;
        max-height: 300px;
    }
}

/* MODAL DESIGN FIXES */
.custom-modal {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    max-height: 90vh; /* Modal screen height lo 90% logic */
    display: flex;
    flex-direction: column;
}

/* Body Scroll logic */
.modal-body.custom-body {
    overflow-y: auto;
    flex-grow: 1;
    padding: 20px;
    height: 400px;
}

.custom-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fff;
}

.custom-footer {
    border-top: 1px solid #f0f0f0;
    padding: 15px;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-circle {
    width: 45px;
    height: 45px;
    background: #e03e2d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 10;
}

    .search-bar input {
        border: none;
        background: transparent;
        width: 100%;
        outline: none;
    }

/* Patient Card */
.patient-card {
    border: 1px solid #eee;
    border-radius: 15px;
    margin-bottom: 15px;
}

.patient-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    cursor: pointer;
}

.patient-info-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.patient-top img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.bill-badge {
    background: #fff1f1;
    color: #e03e2d;
    border: 1px solid #ffcccc;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.single-badge {
    background: #f1fcf4;
    color: #28a745;
    border: 1px solid #c3e6cb;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
}

.bill-list {
    padding: 0 15px 15px;
    display: none;
    background: #fafafa;
    border-radius: 0 0 15px 15px;
}

    .bill-list.show {
        display: block;
    }

.bill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #f0f0f0;
    margin-top: 8px;
    cursor: pointer;
}

    .bill-item input[type="radio"] {
        accent-color: #e03e2d;
        width: 18px;
        height: 18px;
    }

.price-text {
    font-weight: 700;
    color: #e03e2d;
    margin: 0 10px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-progress {
    background: #fff8ed;
    color: #f39c12;
}

.status-completed {
    background: #f1fcf4;
    color: #28a745;
}

.btn-add {
    border: 1px solid #e03e2d;
    color: #e03e2d;
    background: transparent;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-confirm {
    background: linear-gradient(90deg, #e03e2d, #ff7a18);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
}
/* Expand logic styles */
.bill-badge {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

    .bill-badge i {
        transition: transform 0.3s ease;
    }

/* Bill list open  */
.patient-card:has(.bill-list.show) .bill-badge i {
    transform: rotate(180deg);
}

.bill-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    display: block !important;
}

    .bill-list.show {
        max-height: 500px;
        padding-bottom: 15px;
    }

/* Single bill */
.patient-card:has(.single-badge) .patient-top {
    cursor: default;
}

.custom-full-modal {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Popup Overlay --- */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* --- Main Card Container --- */
.booking-card {
    background: #fff;
    width: 95%; /* Fluid width for mobile */
    max-width: 500px; /* Fixed width for desktop */
    max-height: 90vh;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column; /* Allows internal layout to stack correctly */
    animation: slideUp 0.3s ease-out;
}

/* --- Header Section --- */
.booking-header {
    padding: 10px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
}

    .booking-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
    }

.close-btn {
    font-size: 20px;
    cursor: pointer;
    color: #333;
    transition: transform 0.2s;
}

    .close-btn:hover {
        transform: scale(1.2);
    }

/* --- Scrollable Body Content --- */
.modal-body {
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
}

/* --- Booking Options (Grid) --- */
.booking-options {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns by default */
    gap: 16px;
    padding: 15px 10px;
}

.option-card {
    border: 2px solid #e5e7eb;
    padding: 18px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    background: #fdfdfd;
}

    .option-card input[type="radio"] {
        position: absolute;
        opacity: 0;
    }

    /* Active Highlight State */
    .option-card.active {
        border-color: #dc2626;
        background: #fff5f5;
        box-shadow: 0 8px 20px rgba(220, 38, 38, 0.15);
        transform: translateY(-3px);
    }

    .option-card strong {
        display: block;
        font-size: 16px;
        color: #1f2937;
        margin-bottom: 4px;
    }

    .option-card.active strong {
        color: #dc2626;
    }

    .option-card p {
        font-size: 12px;
        color: #6b7280;
        margin: 0;
    }

/* --- Form Groups --- */
.home-section, .form-group {
    padding: 10px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #374151;
        font-size: 14px;
    }

    .form-group input, .form-group select, .form-group textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #d1d5db;
        border-radius: 10px;
        font-size: 14px;
        outline: none;
        box-sizing: border-box; /* Ensures padding doesn't break width */
    }

        .form-group input:focus {
            border-color: #f97316;
            box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
        }

/* --- Footer & Buttons --- */
.booking-footer {
    background: #f9fafb;
    padding: 20px 10px;
    display: flex;
    gap: 15px;
    border-top: 1px solid #eee;
}

.btn {
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

    .btn.save {
        background: linear-gradient(90deg, #dc2626, #f97316);
        color: #fff;
        border: none;
        padding: 14px;
        border-radius: 12px;
        font-weight: 700;
        flex: 2;
    }

        .btn.save:hover {
            opacity: 0.9;
            box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
        }

    .btn.cancel {
        background: #fff;
        color: #4b5563;
        border: 1px solid #d1d5db;
        padding: 14px;
        border-radius: 12px;
        flex: 1;
    }

/* --- Animations --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Media Queries --- */

@media screen and (max-width: 480px) {
    .booking-options {
        grid-template-columns: 1fr; /* Stack cards vertically on mobile */
        gap: 12px;
    }

    .booking-footer {
        flex-direction: column-reverse; /* Stack buttons vertically */
        gap: 10px;
    }

    .btn.save, .btn.cancel {
        width: 100%;
        flex: none;
    }

    .booking-card {
        padding: 15px;
        width: 98%;
    }
}
/* --- Responsive Media Queries --- */

@media screen and (max-width: 768px) {
    .cart-right {
        width: 100%;
        margin-top: 20px;
    }

    .summary-card {
        padding: 15px;
    }

    .cart-title-row {
        display: block;
    }

    .cart-actions {
        width: 100px;
        white-space: nowrap;
        margin: 0 auto;
        justify-content: center
    }

    .cart-title-row h3 {
        font-size: 20px !important
    }

    .tests-cards {
        padding: 10px !important;
        margin-top: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    .summary-total-wrap h4 {
        font-size: 18px;
    }

    .receipt-btn {
        font-size: 15px;
        width: 100% !important
    }
}
/* --- Responsive Media Queries --- */

@media screen and (max-width: 576px) {
    .cart-item {
        flex-wrap: wrap; /* Allows wrapping */
        gap: 15px;
        padding: 15px;
    }

        /* Keeps image and text on same line but wraps price/qty if needed */
        .cart-item img {
            width: 70px;
            height: 70px;
        }

    .cart-item-info h4 {
        font-size: 16px;
    }

    .cart-price {
        width: 100%; /* Force price to its own line or align it */
        display: flex;
        justify-content: flex-end;
        border-top: 1px dashed #eee;
        padding-top: 10px;
        margin-top: 5px;
    }

    .qty-box {
        margin-top: 10px;
    }
}

@media screen and (max-width: 400px) {
    .cart-item {
        align-items: flex-start;
    }

        .cart-item img {
            width: 60px;
            height: 60px;
        }

    .qty-box {
        gap: 8px;
    }
}

@media (max-width: 767px) {
    /* 1. Diagnostic Tests mariyu Help & Support columns ni pakkapakka techutundi */
    .footer .col-md-2 {
        width: 50% !important;
        float: left; /* Bootstrap 4 use chestunte */
        flex: 0 0 50% !important; /* Bootstrap 5 use chestunte */
        max-width: 50% !important;
        margin-bottom: 20px;
    }

        /* 2. Links okadani kinda okati ravadaniki (Optional but recommended) */
        .footer .col-md-2 a {
            display: block;
            margin-bottom: 5px;
        }

    /* 3. Row clear avvadaniki (Layout disturb avvakunda) */
    .footer .row {
        display: flex;
        flex-wrap: wrap;
    }

    .delete-icon {
        position: absolute;
        /* top: 20px; */
        right: 10px;
    }

    .cart-layout {
        gap: 0 !important
    }
}

.tests-cards {
    padding: 30px 60px;
}

.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000; /* 🔥 Swal (1060) kanna ekkuva */
}

.booking-modal {
    z-index: 1000;
}
/* 🔴 CARD WITH GRADIENT BORDER */
.success-card {
    position: relative;
    background: #fff;
    color: #333;
    padding: 40px 30px;
    border-radius: 20px;
    width: 350px;
    text-align: center;
    z-index: 1;
}

    /* 🔥 GRADIENT BORDER EFFECT */
    .success-card::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 2px; /* border thickness */
        border-radius: 20px;
        background: linear-gradient(90deg, #dc2626, #f97316);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        z-index: -1;
    }

/* ❌ CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 22px;
    color: #dc2626;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

    .close-btn:hover {
        color: #f97316;
        transform: scale(1.2);
    }

/* ✅ ICON */
.success-icon {
    font-size: 50px;
    background: linear-gradient(90deg, #dc2626, #f97316);
    color: #fff;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

/* 🔘 BUTTONS SAME STYLE */
.success-actions .primary {
    background: linear-gradient(90deg, #dc2626, #f97316);
    color: #fff;
}

.success-actions .secondary {
    border: 1px solid #dc2626;
    color: #dc2626;
}

.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999; /* ఇది మిగతా వాటి కంటే ఎక్కువగా ఉండాలి */
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-card {
    position: relative; /* దీని వల్ల లోపల ఉన్న క్లోజ్ బటన్ కి అబ్సల్యూట్ పొజిషన్ వర్క్ అవుతుంది */
    z-index: 10000;
}

.address-box {
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    background: #fafafa;
}

    .address-box:hover {
        border-color: #f97316;
    }

.address-popup,
.map-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-card,
.map-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 320px;
}

#map {
    height: 300px;
    width: 100%;
    border-radius: 10px;
}

.option {
    padding: 12px;
    border: 1px solid #eee;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
}

    .option:hover {
        background: #fff3e0;
    }

.confirm-btn {
    width: 100%;
    margin-top: 10px;
    background: #f97316;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    right: 12px;
    top: 10px;
    cursor: pointer;
}

.map-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.map-card {
    width: 360px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.map-header {
    padding: 10px 15px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

#leafletMap {
    height: 300px;
}

.map-footer {
    padding: 10px;
}

.selected-address {
    font-size: 13px;
    color: #444;
    margin-bottom: 10px;
}

.confirm-btn {
    width: 100%;
    padding: 10px;
    background: #fc8019;
    color: #fff;
    border: none;
    border-radius: 8px;
}

.close-btn {
    cursor: pointer;
}
/* ముఖ్యమైన మార్పులు ఇక్కడ ఉన్నాయి */

.timeline {
    position: relative;
    padding-left: 20px;
    margin-top: 20px;
}

    /* నిలువు గీత (Vertical Line) */
    .timeline::before {
        content: '';
        position: absolute;
        left: 21px; /* సర్కిల్ మధ్యలోకి */
        top: 5px;
        bottom: 25px; /* కింద కొంచెం గ్యాప్ */
        width: 2px;
        background: #e4ddd5;
        z-index: 0;
    }

/* టైమ్‌లైన్ ఐటమ్ - ఇక్కడ height పెరుగుతుంది */
.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start; /* పైకి అలైన్ అవ్వడానికి */
    padding-bottom: 80px; /* ఐటమ్స్ మధ్య దూరం ఇక్కడ పెరుగుతుంది (దీన్ని మార్చుకోవచ్చు) */
    padding-left: 45px;
    min-height: 100px; /* కనీస ఎత్తు */
}

    .timeline-item:last-child {
        padding-bottom: 0;
        min-height: auto;
    }

/* సర్కిల్ ఐకాన్ */
.timeline-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e5ded6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    z-index: 1;
    color: #fff;
    border: 4px solid #fbf9f7; /* కార్డ్ బ్యాక్‌గ్రౌండ్ కలర్ ఇస్తే లైన్ కట్ అయినట్టు కనిపిస్తుంది */
}

/* Active State */
.timeline-item.active .timeline-icon {
    background: #e25b2c;
}

/* టెక్స్ట్ అలైన్‌మెంట్ */
.timeline-content {
    flex: 1;
}

    .timeline-content h4 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.2;
        color: #222;
    }

/* డేట్ స్పాన్ (Date Span) */
.timeline-item span {
    font-size: 14px;
    color: #e25b2c;
    font-weight: 500;
    margin-top: 5px;
    display: block; /* కిందకి రావడానికి */
}

/* Inactive టెక్స్ట్ కలర్ */
.timeline-item:not(.active) .timeline-content h4 {
    color: #b7aea4;
}


.success-header-wrap {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}



.success-badge {
    background: #d8efe3;
    color: #1b7a57;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.success-grid {
    display: flex;
    gap: 30px;
}

.success-left {
    flex: 1.2;
}

.success-right {
    flex: 1;
}

.tracking-card, .summary-card {
    background: #fff;
    border-radius: 24px;
    padding: 25px;
    border: 1px solid #e6dfd7;
}



.summary-test {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-divider {
    height: 1px;
    background: #e6dfd7;
    margin: 15px 0;
}

.total {
    font-weight: 700;
    font-size: 18px;
}

    .total strong {
        color: #e25b2c;
    }




.patient-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .patient-left img {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: #eee;
    }

.change-patient {
    color: #e25b2c;
    text-decoration: none;
    font-weight: 600;
}

.success-title {
    font-size: 38px;
    font-weight: 700;
}

.section-title, .summary-card h4 {
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.timeline-content h3 {
    font-size: 18px;
    font-weight: 600;
}

/* ===== GRID LAYOUT ===== */
.diagnostic-dashboard-grid {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

/* ===== LEFT COLUMN ===== */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== RIGHT COLUMN ===== */
.right-column {
    width: 100%;
    height: 100%;
    display: flex;
}

.trend-card {
    width: 100%;
    height: 100%;
}

/* ===== TABLE CARD FIX ===== */
.reports-table-card {
    width: 100%;
    overflow-x: auto;
}

/* ===== TABLE RESPONSIVE ===== */
.reports-table {
    min-width: 700px; /* scroll for mobile */
    width: 100%;
    border-collapse: collapse;
}

/* ===== ACTION BUTTONS ===== */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ===== MOBILE & TABLET ===== */
@media (max-width: 768px) {

    .diagnostic-dashboard-grid {
        flex-wrap: wrap;
    }

    .left-column {
        gap: 15px;
        width: 100% !important;
    }

    .metric-card {
        padding: 15px;
        width: 100%;
        max-width: 330px;
    }

        .metric-card h2 {
            font-size: 22px;
        }

    /* Chart scroll fix */
    .bar-chart {
        justify-content: start !important;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .bar-wrap {
        width: 45px;
        flex-shrink: 0;
    }

    .bar-value {
        font-size: 11px;
    }

    .bar-label {
        font-size: 10px;
    }

    .reports-header h1 {
        font-size: 20px;
    }

    .reports-header p {
        font-size: 12px;
    }
}

/* ===== EXTRA SMALL ===== */
@media (max-width: 480px) {

    .metric-card h2 {
        font-size: 20px;
    }

    .trend-top h4 {
        white-space: nowrap
    }

    .trend-top {
        flex-wrap: wrap;
    }

        .trend-top span {
            font-size: 11px;
            white-space: nowrap
        }

    .pagination-wrap button {
        padding: 6px 10px;
    }
}

.added-btn {
    background: linear-gradient(90deg, #34d399, #059669) !important;
    border: none;
    padding: 8px 8px;
    border-radius: 10px;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.test-name {
    text-transform: uppercase;
}

.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    background: #f3e8ff; /* light purple background */
    color: #6b21a8;
}

/* RECEIPT BUTTON (Opposite to purple "Billed") */
.download-btn.report {
    background: linear-gradient(135deg, #4CAF50, #009688); /* blue */
    color: #fff;
}

    .download-btn.report:hover {
        background: linear-gradient(135deg, #05978a, #388E3C);
        transform: translateY(-1px);
    }

/* REPORT BUTTON (Opposite to green "Completed") */
.download-btn.receipt {
    background: linear-gradient(135deg, #f97316, #ef4444); /* orange-red */
    color: #fff;
}

    .download-btn.receipt:hover {
        background: linear-gradient(135deg, #ea580c, #dc2626);
        transform: translateY(-1px);
    }

/* ICON STYLE */
.download-btn i {
    font-size: 14px;
}

/* OPTIONAL: spacing between buttons */
.download-btn + .download-btn {
    margin-left: 6px;
}
/* ===============================
   HERO CAROUSEL FIX
================================= */

/* Carousel container fixed height */
#heroCarousel {
    height: 420px;
    overflow: hidden;
}

    /* Each slide same height */
    #heroCarousel .carousel-item {
        height: 420px;
    }

        /* Image perfect fit */
        #heroCarousel .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* 🔥 main fix */
            border-radius: 12px;
        }
/* Keep navbar items in one line */
.navbar .container-fluid {
    /*    flex-wrap: nowrap;*/
    align-items: center;
}

/* Logo responsive size */
.navbar-brand img {
    height: 50px;
    max-width: 160px;
    object-fit: contain;
}

/* Mobile adjustments */
@media (max-width: 768px) {

    .navbar-brand img {
        height: 55px; /* smaller logo */
        max-width: 150px;
    }

    .cart-icon {
        margin-left: 8px;
    }

    .signin-btn {
        font-size: 12px;
        padding: 4px 8px;
    }

    .navbar-toggler {
        margin-left: 6px;
    }

    /* prevent wrapping / overflow */
    .d-flex.align-items-center {
        flex-wrap: nowrap;
        gap: 6px;
    }
}

/* extra safety: prevent text wrapping in navbar */
.navbar-nav .nav-link {
    white-space: nowrap;
}
/* Default desktop size */
.footer img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer img {
        height: 55px; /* smaller logo */
        max-width: 150px;
    }

    .signout-move {
        display: flex;
        justify-content: start !important;
        margin-top: 10px !important
    }

    .trend-card {
        width: 100%;
        min-width: 200px;
        height: 100%;
    }
}

.signout-move {
    width: 100%;
    min-width: 100px;
    margin: auto 0;
    display: flex;
    justify-content: end;
}



.navbar-expand-lg .navbar-nav {
    display: flex;
    width: 100%;
    min-width: 200px;
    margin: auto;
}

/* Tablet Devices */
@media (min-width: 768px) and (max-width: 1024px) {
    .signout-move {
        display: flex;
        justify-content: start !important;
        margin-top: 10px !important
    }

    .auth-left {
        display: flex !important;
    }

    .auth-container {
        flex-direction: row !important;
    }
}

#heroCarousel {
    border-radius: 20px;
    overflow: hidden;
}

    #heroCarousel .carousel-inner,
    #heroCarousel .carousel-item,
    #heroCarousel img {
        border-radius: 20px;
    }
/* Only Login Page */
body[ng-controller="loginCtrl"] .navbar.navbar-custom,
body[ng-controller="loginCtrl"] .footer {
    display: none !important;
}

body[ng-controller="loginCtrl"] .auth-container {
    min-height: 100vh;
}

/*.modal-body,
.home-section,
.form-group {
    overflow: visible !important;
}*/

.form-group {
    position: relative;
    z-index: 1;
}

    .form-group select {
        position: relative;
        z-index: 99999;
    }

        .form-group select option {
            height: 40px;
            line-height: 40px;
            padding: 10px;
        }
