/* =========================================================
   SWASTHYASETU — MODERN HEALTHCARE DASHBOARD
========================================================= */

:root {
    --primary: #0878c9;
    --primary-dark: #0757a5;
    --primary-light: #eaf5ff;

    --green: #159b67;
    --green-light: #eaf9f2;

    --red: #e92f3f;
    --red-light: #fff0f1;

    --purple: #6634bd;
    --purple-light: #f5efff;

    --orange: #ed792c;
    --orange-light: #fff4e9;

    --text: #18243b;
    --muted: #68748a;
    --border: #e8edf4;

    --white: #ffffff;
    --bg: #f7f9fc;

    --shadow: 0 8px 28px rgba(30, 55, 90, 0.07);

    --sidebar-width: 248px;
    --right-width: 318px;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}


/* =========================================================
   APP LAYOUT
========================================================= */

.app-layout {
    min-height: 100vh;
    display: flex;
}


/* =========================================================
   LEFT SIDEBAR
========================================================= */

.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;

    position: sticky;
    top: 0;

    background: #fff;
    border-right: 1px solid #edf0f5;

    padding: 18px 14px;

    display: flex;
    flex-direction: column;

    overflow-y: auto;
    z-index: 100;
}


/* BRAND */

.brand {
    padding: 2px 9px 22px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 9px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.brand-logo svg {
    width: 100%;
    height: 100%;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    color: #142b4c;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.brand-text span {
    margin-top: 4px;
    color: #65748b;
    font-size: 9px;
    font-weight: 600;
}


/* NAVIGATION */

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-item {
    min-height: 42px;

    padding: 0 12px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    gap: 13px;

    color: #25334a;
    font-size: 14px;
    font-weight: 600;

    transition: 0.2s ease;
}

.nav-item:hover {
    background: #f2f7fc;
    color: var(--primary);
}

.nav-item.active {
    background: #eaf4ff;
    color: var(--primary-dark);
}

.nav-icon {
    width: 23px;
    text-align: center;
    font-size: 19px;
    line-height: 1;
    color: #42526b;
}

.nav-item.active .nav-icon {
    color: var(--primary);
}

.nav-item small {
    margin-left: auto;
    padding: 3px 6px;
    border-radius: 5px;

    color: #6e31c7;
    background: #f1e9ff;

    font-size: 8px;
    font-weight: 800;
}

.nav-divider {
    height: 1px;
    margin: 12px 8px;
    background: #edf0f4;
}


/* EMERGENCY */

.sidebar-emergency {
    margin-top: auto;

    padding: 14px 12px;

    display: flex;
    align-items: center;
    gap: 10px;

    border-radius: 13px;

    background: linear-gradient(
        135deg,
        #173363,
        #1e4079
    );

    color: white;
}

.emergency-icon {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #ef3546;

    font-size: 18px;
}

.sidebar-emergency > div:last-child {
    display: flex;
    flex-direction: column;
}

.sidebar-emergency span {
    font-size: 10px;
    opacity: 0.9;
}

.sidebar-emergency strong {
    margin: 2px 0;

    font-size: 15px;
    letter-spacing: 0.3px;
}

.sidebar-emergency small {
    font-size: 9px;
    opacity: 0.8;
}


/* TRUST */

.sidebar-trust {
    margin-top: 12px;

    padding: 12px 10px;

    display: flex;
    gap: 9px;
    align-items: center;

    border: 1px solid #e9eef5;
    border-radius: 12px;

    background: #fff;
}

.trust-check {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    color: #159b67;
    background: #e9f9f1;

    font-weight: 900;
}

.sidebar-trust > div:last-child {
    display: flex;
    flex-direction: column;
}

.sidebar-trust span,
.sidebar-trust small {
    font-size: 9px;
    color: var(--muted);
}

.sidebar-trust strong {
    font-size: 12px;
    color: var(--text);
}


/* =========================================================
   MAIN
========================================================= */

.main-area {
    flex: 1;
    min-width: 0;
    padding: 0 18px 30px;
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    min-height: 76px;

    display: flex;
    align-items: center;
    gap: 18px;

    position: sticky;
    top: 0;

    z-index: 90;

    background: rgba(247, 249, 252, 0.94);
    backdrop-filter: blur(12px);
}


/* SEARCH */

.search-box {
    position: relative;

    flex: 1;
    max-width: 770px;
}

.search-box input {
    width: 100%;
    height: 48px;

    padding: 0 18px 0 47px;

    border: 1px solid #e1e7ef;
    border-radius: 12px;

    outline: none;

    background: white;

    color: var(--text);

    font-size: 13px;

    box-shadow: 0 2px 10px rgba(30, 60, 90, 0.03);

    transition: 0.2s;
}

.search-box input:focus {
    border-color: #9dcdf0;
    box-shadow: 0 0 0 4px rgba(8, 120, 201, 0.07);
}

.search-icon {
    position: absolute;
    z-index: 2;

    left: 17px;
    top: 50%;

    transform: translateY(-50%);

    color: #7a8799;

    font-size: 25px;
    line-height: 1;
}


/* SEARCH RESULTS */

.search-results {
    display: none;

    position: absolute;
    top: 55px;
    left: 0;
    right: 0;

    background: white;

    border: 1px solid #e5ebf2;
    border-radius: 12px;

    box-shadow: 0 15px 40px rgba(25, 45, 70, 0.13);

    overflow: hidden;
}

.search-results.show {
    display: block;
}

.search-results a {
    padding: 12px 15px;

    display: flex;
    align-items: center;
    gap: 11px;

    border-bottom: 1px solid #f1f3f6;
}

.search-results a:hover {
    background: #f7fbff;
}

.result-icon {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    color: var(--primary);
    background: #eaf5ff;
}

.search-results a span:last-child {
    display: flex;
    flex-direction: column;
}

.search-results strong {
    font-size: 13px;
}

.search-results small {
    margin-top: 2px;
    color: var(--muted);
}

.no-search-result {
    padding: 18px;
    color: var(--muted);
}


/* TOP ACTIONS */

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.support-btn {
    height: 46px;

    padding: 0 16px;

    display: flex;
    align-items: center;
    gap: 8px;

    border: 1px solid #e3e8ef;
    border-radius: 11px;

    background: #fff;

    font-weight: 600;
    font-size: 12px;

    white-space: nowrap;
}

.support-btn:hover {
    border-color: #b9d8ee;
    color: var(--primary);
}

.notification-btn {
    position: relative;

    width: 46px;
    height: 46px;

    border: 1px solid #e3e8ef;
    border-radius: 11px;

    background: white;

    cursor: pointer;

    font-size: 19px;
}

.notification-count {
    position: absolute;

    top: -5px;
    right: -4px;

    width: 18px;
    height: 18px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #e93141;
    color: white;

    font-size: 9px;
    font-weight: 800;
}

.profile-box {
    display: flex;
    align-items: center;
    gap: 9px;
}

.profile-avatar {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #1758a4;
    background: #e8f0ff;

    font-weight: 800;
    font-size: 15px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    min-width: 70px;
}

.profile-info strong {
    font-size: 12px;
}

.profile-info span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.profile-arrow {
    color: #6f7b8e;
    font-size: 17px;
}


/* MOBILE BRAND */

.mobile-brand {
    display: none;
}


/* =========================================================
   DASHBOARD GRID
========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        var(--right-width);

    gap: 16px;

    max-width: 1500px;
    margin: 0 auto;
}

.center-content {
    min-width: 0;
}


/* =========================================================
   HERO
========================================================= */

.hero-banner {
    min-height: 222px;

    position: relative;

    overflow: hidden;

    border-radius: 15px;

    padding: 26px 28px;

    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(78, 199, 255, 0.32),
            transparent 28%
        ),
        linear-gradient(
            110deg,
            #0848a5 0%,
            #087bc6 58%,
            #12a1c7 100%
        );

    color: white;

    box-shadow:
        0 12px 30px rgba(0, 95, 170, 0.16);
}

.hero-content {
    position: relative;
    z-index: 4;

    max-width: 530px;
}

.hero-small-title {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    opacity: 0.82;
}

.hero-content h1 {
    margin: 6px 0 6px;

    font-size: 29px;
    line-height: 1.08;
    letter-spacing: -1px;
}

.hero-content h1 strong {
    color: white;
}

.hero-content p {
    margin: 0;

    font-size: 12px;
    line-height: 1.5;

    opacity: 0.92;
}

.hero-buttons {
    margin-top: 17px;

    display: flex;
    gap: 8px;
}

.hero-btn {
    min-height: 34px;

    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;

    transition: 0.2s;
}

.hero-btn.primary {
    color: var(--primary-dark);
    background: white;
}

.hero-btn.emergency {
    color: white;
    background: #e83242;
}

.hero-btn:hover {
    transform: translateY(-2px);
}


/* HERO ART */

.hero-illustration {
    position: absolute;

    right: 115px;
    top: 12px;

    width: 290px;
    height: 195px;
}

.hero-glow {
    position: absolute;

    width: 180px;
    height: 180px;

    left: 52px;
    top: 3px;

    border-radius: 50%;

    background: rgba(255,255,255,0.12);

    filter: blur(1px);
}

.shield {
    position: absolute;

    z-index: 4;

    left: 100px;
    top: 5px;

    width: 75px;
    height: 91px;

    display: grid;
    place-items: center;

    clip-path: polygon(
        50% 0,
        94% 17%,
        88% 65%,
        50% 100%,
        12% 65%,
        6% 17%
    );

    background: linear-gradient(
        145deg,
        #7be7ff,
        #0063bb
    );

    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.shield::after {
    content: "";

    position: absolute;
    inset: 7px;

    clip-path: inherit;

    background: rgba(3,75,152,0.85);
}

.shield span {
    position: relative;
    z-index: 5;

    font-size: 33px;
    color: white;
}


/* HOSPITAL ART */

.hero-hospital {
    position: absolute;

    right: 15px;
    bottom: 13px;

    width: 105px;
    height: 100px;

    background: linear-gradient(
        180deg,
        #f4fbff,
        #bdddf1
    );

    border-radius: 5px 5px 0 0;

    box-shadow: 10px 8px 25px rgba(0,0,0,0.15);
}

.hospital-top {
    position: absolute;

    left: -10px;
    right: -10px;
    top: -9px;

    height: 13px;

    border-radius: 3px;

    background: #0c83bc;
}

.hospital-windows {
    padding: 18px 12px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.hospital-windows i {
    height: 11px;

    display: block;

    border-radius: 1px;

    background: #79c7e6;
}

.hero-hospital b {
    position: absolute;

    bottom: 10px;
    left: 43px;

    font-size: 21px;
    color: #e93b49;
}


/* AMBULANCE ART */

.hero-ambulance {
    position: absolute;

    z-index: 5;

    left: 13px;
    bottom: 17px;

    width: 122px;
    height: 45px;
}

.ambulance-box {
    position: absolute;

    left: 0;
    bottom: 5px;

    width: 75px;
    height: 32px;

    border-radius: 5px 4px 4px 5px;

    background: white;

    border-bottom: 4px solid #d92d3b;

    box-shadow: 0 6px 13px rgba(0,0,0,0.17);
}

.ambulance-box span {
    position: absolute;

    left: 30px;
    top: 4px;

    font-size: 21px;
    color: #e73542;
}

.ambulance-cabin {
    position: absolute;

    right: 3px;
    bottom: 5px;

    width: 53px;
    height: 29px;

    border-radius: 4px 7px 4px 2px;

    background: #eaf7ff;

    border-bottom: 4px solid #d92d3b;
}

.hero-ambulance i {
    position: absolute;

    bottom: 0;

    width: 14px;
    height: 14px;

    border-radius: 50%;

    background: #29384c;

    border: 3px solid white;
}

.hero-ambulance i:first-of-type {
    left: 18px;
}

.hero-ambulance i:last-of-type {
    right: 15px;
}

.hero-pill {
    position: absolute;

    width: 28px;
    height: 12px;

    border-radius: 20px;

    background: white;

    opacity: 0.8;
}

.pill-one {
    right: 155px;
    bottom: 30px;

    transform: rotate(-30deg);
}

.pill-two {
    right: 62px;
    top: 25px;

    transform: rotate(25deg);
}


/* HERO BENEFITS */

.hero-benefits {
    position: absolute;

    z-index: 8;

    right: 13px;
    top: 36px;

    width: 138px;

    padding: 10px 11px;

    border-radius: 10px;

    background: rgba(5, 65, 140, 0.52);

    border: 1px solid rgba(255,255,255,0.17);

    backdrop-filter: blur(6px);
}

.hero-benefits div {
    display: flex;
    align-items: center;
    gap: 5px;

    margin: 5px 0;

    font-size: 9px;
    font-weight: 600;
}

.hero-benefits b {
    width: 14px;
    height: 14px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #16ad70;
    color: white;

    font-size: 8px;
}


/* =========================================================
   QUICK SERVICES
========================================================= */

.quick-services {
    margin-top: 16px;

    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 8px;
}

.service-card {
    min-height: 91px;

    padding: 12px 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: white;

    transition: 0.2s;

    box-shadow: 0 2px 8px rgba(30,50,80,0.025);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    font-size: 19px;
}

.service-card > div {
    display: flex;
    flex-direction: column;
}

.service-card strong {
    font-size: 11px;
}

.service-card small {
    margin-top: 4px;

    color: var(--muted);

    font-size: 8px;
    line-height: 1.35;
}

.service-card.green .service-icon {
    color: #159b67;
    background: #e9f8f1;
}

.service-card.purple .service-icon {
    color: #6a37bd;
    background: #f2ecff;
}

.service-card.red .service-icon {
    color: #e53241;
    background: #fff0f1;
}

.service-card.blue .service-icon {
    color: #0878c9;
    background: #eaf5ff;
}

.service-card.orange .service-icon {
    color: #ed792c;
    background: #fff3e8;
}

.service-card.violet .service-icon {
    color: #703cc5;
    background: #f4edff;
}


/* =========================================================
   CONTENT SECTION
========================================================= */

.content-section {
    margin-top: 17px;
}

.section-heading {
    margin-bottom: 10px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.section-heading h2 {
    margin: 0;

    color: #18253b;

    font-size: 16px;
    letter-spacing: -0.3px;
}

.section-heading p {
    margin: 4px 0 0;

    color: var(--muted);

    font-size: 10px;
}

.section-heading > a {
    color: var(--primary-dark);

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

.section-heading > a:hover {
    text-decoration: underline;
}


/* =========================================================
   SPECIALITY
========================================================= */

.speciality-grid {
    display: grid;

    grid-template-columns: repeat(9, 1fr);

    gap: 7px;

    padding: 9px;

    border: 1px solid #edf1f6;
    border-radius: 12px;

    background: white;
}

.speciality-card {
    min-width: 0;

    padding: 9px 5px;

    text-align: center;

    border-radius: 9px;

    transition: 0.2s;
}

.speciality-card:hover {
    background: #f6faff;
    transform: translateY(-2px);
}

.speciality-icon {
    width: 38px;
    height: 38px;

    margin: 0 auto 7px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: #ca4774;

    background: #fff0f5;

    font-size: 22px;
}

.speciality-card:nth-child(2) .speciality-icon {
    color: #6d43c6;
    background: #f1ebff;
}

.speciality-card:nth-child(3) .speciality-icon {
    color: #8b36a5;
    background: #f8eafa;
}

.speciality-card:nth-child(4) .speciality-icon {
    color: #506177;
    background: #f0f3f7;
}

.speciality-card:nth-child(5) .speciality-icon {
    color: #df6280;
    background: #fff0f4;
}

.speciality-card:nth-child(6) .speciality-icon {
    color: #cf3c59;
    background: #ffeff1;
}

.speciality-card strong {
    display: block;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 9px;
}

.speciality-card small {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 7px;
}

.more-card .speciality-icon {
    color: #273449;
    background: #f1f3f6;

    font-size: 16px;
}


/* =========================================================
   SMART FEATURES
========================================================= */

.smart-features {
    margin-top: 12px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 7px;
}

.smart-feature {
    min-height: 67px;

    padding: 9px;

    display: flex;
    align-items: center;
    gap: 8px;

    border: 1px solid #e9edf4;
    border-radius: 10px;

    background: white;
}

.smart-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    color: var(--primary);
    background: #eaf5ff;

    font-size: 18px;
}

.smart-feature > div:last-child {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.smart-feature strong {
    font-size: 9px;
    color: #1e4c85;
}

.smart-feature small {
    margin-top: 3px;

    color: var(--muted);

    font-size: 7px;
    line-height: 1.3;
}


/* =========================================================
   HOSPITAL GRID
========================================================= */

.hospitals-section {
    padding-bottom: 3px;
}

.hospital-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 9px;
}

.hospital-card {
    overflow: hidden;

    border: 1px solid #e6ebf1;
    border-radius: 11px;

    background: white;

    transition: 0.22s;

    box-shadow: 0 2px 8px rgba(20,40,70,0.025);
}

.hospital-card:hover {
    transform: translateY(-3px);

    border-color: #cbddea;

    box-shadow:
        0 12px 28px rgba(30,60,90,0.10);
}

.hospital-image {
    height: 91px;

    position: relative;

    overflow: hidden;

    background: #e9f0f5;
}

.hospital-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: 0.3s;
}

.hospital-card:hover .hospital-image img {
    transform: scale(1.04);
}

.hospital-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;

    color: #5b8db0;

    background:
        linear-gradient(
            135deg,
            #dcecf5,
            #c7dfeb
        );
}

.hospital-placeholder span {
    font-size: 25px;
}

.hospital-placeholder small {
    font-size: 8px;
}

.hospital-rating {
    position: absolute;

    top: 7px;
    right: 7px;

    min-width: 32px;
    height: 22px;

    padding: 0 6px;

    display: grid;
    place-items: center;

    border-radius: 5px;

    color: white;
    background: #1ca56c;

    font-size: 10px;
    font-weight: 800;
}

.hospital-body {
    padding: 9px 9px 8px;
}

.hospital-body h3 {
    margin: 0;

    height: 30px;

    overflow: hidden;

    color: #1b2940;

    font-size: 11px;
    line-height: 1.35;
}

.hospital-stars {
    margin-top: 4px;

    color: #f2a72f;

    font-size: 10px;
    letter-spacing: 1px;
}

.hospital-location {
    margin: 3px 0 5px;

    color: var(--muted);

    font-size: 8px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hospital-tags {
    min-height: 17px;

    display: flex;
    gap: 4px;

    overflow: hidden;
}

.hospital-tags span {
    padding: 3px 5px;

    border-radius: 4px;

    background: #f2f5f8;

    color: #667286;

    font-size: 7px;

    white-space: nowrap;
}

.hospital-view {
    height: 27px;

    margin-top: 7px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border-radius: 5px;

    color: white;
    background: #0966c5;

    font-size: 8px;
    font-weight: 700;
}

.hospital-view span {
    font-size: 12px;
}


/* EMPTY */

.empty-state {
    min-height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    border: 1px dashed #d9e0e8;
    border-radius: 12px;

    background: white;

    color: var(--muted);
}

.empty-state div {
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 25px;
}

.empty-state strong {
    color: var(--text);
}

.empty-state span {
    margin-top: 4px;
    font-size: 11px;
}


/* =========================================================
   WHY SECTION
========================================================= */

.why-section {
    margin-top: 16px;

    padding: 14px;

    border: 1px solid #e9edf3;
    border-radius: 12px;

    background: white;
}

.why-section .section-heading {
    margin-bottom: 9px;
}

.why-grid {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 5px;
}

.why-grid > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.why-grid span {
    width: 29px;
    height: 29px;

    margin-bottom: 5px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    color: var(--primary);
    background: #edf7ff;

    font-size: 16px;
}

.why-grid strong {
    font-size: 8px;
}

.why-grid small {
    margin-top: 2px;

    color: var(--muted);

    font-size: 7px;
}


/* =========================================================
   RIGHT SIDEBAR
========================================================= */

.right-sidebar {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* PANEL */

.side-panel {
    position: relative;

    overflow: hidden;

    padding: 14px;

    border: 1px solid #e7ebf1;
    border-radius: 13px;

    background: white;

    box-shadow: 0 2px 8px rgba(30,50,80,0.025);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.panel-heading h3 {
    margin: 0;

    font-size: 14px;
    letter-spacing: -0.2px;
}

.availability {
    padding: 4px 7px;

    border-radius: 5px;

    color: #db3544;
    background: #fff0f1;

    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.delivery-time {
    padding: 4px 7px;

    border-radius: 5px;

    color: #218160;
    background: #e9f8f1;

    font-size: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.purple-label {
    padding: 4px 7px;

    border-radius: 5px;

    color: #6738b8;
    background: #f3ecff;

    font-size: 7px;
    font-weight: 700;
    white-space: nowrap;
}


/* LOCATION */

.location-box {
    margin-top: 11px;

    padding: 9px 10px;

    border: 1px solid #e8ecf2;
    border-radius: 9px;

    background: #fbfcfe;
}

.location-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-row div {
    display: flex;
    flex-direction: column;
}

.location-row small {
    color: #8a95a6;
    font-size: 8px;
}

.location-row strong {
    margin-top: 2px;
    font-size: 10px;
}

.location-dot {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;
}

.green-dot {
    background: #159b67;
}

.red-dot {
    background: #e93343;
}

.location-line {
    height: 12px;

    margin: 0 0 0 3px;

    border-left: 1px dashed #ccd3dd;
}


/* AMBULANCE VISUAL */

.ambulance-visual {
    height: 85px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.ambulance-art {
    position: relative;

    width: 185px;
    height: 70px;
}

.amb-body {
    position: absolute;

    left: 8px;
    bottom: 11px;

    width: 115px;
    height: 45px;

    border-radius: 8px 3px 3px 7px;

    background: white;

    border: 2px solid #e5e9ed;
    border-bottom: 5px solid #df3441;

    box-shadow: 0 8px 14px rgba(30,50,70,0.13);
}

.amb-body b {
    position: absolute;

    left: 45px;
    top: 8px;

    font-size: 27px;
    color: #e93343;
}

.amb-cabin {
    position: absolute;

    right: 8px;
    bottom: 11px;

    width: 70px;
    height: 42px;

    border-radius: 3px 10px 5px 2px;

    background: #eff8fd;

    border: 2px solid #e0e8ed;
    border-bottom: 5px solid #df3441;
}

.ambulance-art i {
    position: absolute;

    bottom: 2px;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    background: #25384b;

    border: 4px solid white;
}

.ambulance-art i:first-of-type {
    left: 27px;
}

.ambulance-art i:last-of-type {
    right: 25px;
}


/* PANEL BUTTON */

.panel-btn {
    width: 100%;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    font-size: 10px;
    font-weight: 800;

    transition: 0.2s;
}

.panel-btn:hover {
    transform: translateY(-1px);
}

.red-btn {
    color: white;
    background: #e62e3e;
}

.green-btn {
    color: white;
    background: #159b67;
}

.purple-btn {
    color: white;
    background: #6731c0;
}


/* =========================================================
   MEDICINE PANEL
========================================================= */

.medicine-panel {
    min-height: 196px;

    background:
        radial-gradient(
            circle at 95% 0%,
            #e9faf2,
            transparent 45%
        ),
        white;
}

.panel-description {
    max-width: 170px;

    margin: 11px 0 4px;

    color: #4d596c;

    font-size: 10px;
    line-height: 1.5;
}

.medicine-art {
    height: 66px;

    position: relative;
}

.medicine-bottle {
    position: absolute;

    display: block;

    border-radius: 4px;

    background: linear-gradient(
        90deg,
        #f6f6f6,
        #d8d8d8
    );

    box-shadow: 0 6px 10px rgba(20,40,50,0.12);
}

.bottle-one {
    width: 27px;
    height: 48px;

    right: 34px;
    bottom: 2px;
}

.bottle-two {
    width: 22px;
    height: 37px;

    right: 9px;
    bottom: 2px;
}

.medicine-pill {
    position: absolute;

    width: 35px;
    height: 15px;

    border-radius: 20px;

    transform: rotate(-28deg);

    box-shadow: 0 4px 8px rgba(30,40,50,0.12);
}

.pill-red {
    right: 53px;
    bottom: 12px;

    background: linear-gradient(
        90deg,
        #ef3947 50%,
        #f8f8f8 50%
    );
}

.pill-blue {
    right: 16px;
    bottom: 27px;

    transform: rotate(22deg);

    background: linear-gradient(
        90deg,
        #54a8dc 50%,
        #f5f5f5 50%
    );
}


/* =========================================================
   PATHOLOGY
========================================================= */

.pathology-panel {
    min-height: 185px;

    background:
        radial-gradient(
            circle at 95% 0%,
            #f4efff,
            transparent 45%
        ),
        white;
}

.pathology-art {
    height: 67px;

    position: relative;
}

.tube {
    position: absolute;

    display: block;

    width: 13px;
    height: 43px;

    bottom: 4px;

    border-radius: 3px 3px 7px 7px;

    background: linear-gradient(
        180deg,
        #f7f7f7 45%,
        #76d6d0 45%
    );

    border: 1px solid #d6dce3;
}

.tube::before {
    content: "";

    position: absolute;

    left: -1px;
    top: -7px;

    width: 13px;
    height: 7px;

    border-radius: 2px 2px 0 0;

    background: #9ca9b6;
}

.tube-one {
    right: 55px;
    transform: rotate(-8deg);
}

.tube-two {
    right: 33px;
    height: 35px;

    background: linear-gradient(
        180deg,
        #f7f7f7 45%,
        #ee7c89 45%
    );

    transform: rotate(9deg);
}

.flask {
    position: absolute;

    right: 4px;
    bottom: 4px;

    width: 30px;
    height: 38px;

    border: 2px solid #8997a6;
    border-top: 0;

    border-radius: 4px 4px 12px 12px;

    transform: skewX(-5deg);

    background: linear-gradient(
        180deg,
        transparent 43%,
        #7dc8e8 43%
    );
}


/* =========================================================
   HEALTH PACKAGE
========================================================= */

.package-panel {
    min-height: 167px;

    display: flex;

    padding: 0;

    background:
        linear-gradient(
            100deg,
            #edf7ff,
            #dcefff
        );
}

.package-content {
    position: relative;
    z-index: 4;

    width: 58%;

    padding: 15px;
}

.package-label {
    color: #1b6498;

    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1px;
}

.package-content h3 {
    margin: 6px 0;

    color: #07549a;

    font-size: 17px;
    line-height: 1.05;
}

.package-content p {
    margin: 0;

    color: #536b83;

    font-size: 9px;
    line-height: 1.45;
}

.package-btn {
    display: inline-flex;

    margin-top: 10px;

    padding: 7px 9px;

    border-radius: 6px;

    color: white;
    background: #0b63b9;

    font-size: 8px;
    font-weight: 800;
}

.family-art {
    position: absolute;

    right: 0;
    bottom: 0;

    width: 48%;
    height: 125px;
}

.person {
    position: absolute;

    bottom: 0;

    border-radius: 45% 45% 0 0;

    background: #c5d5e2;
}

.person::before {
    content: "";

    position: absolute;

    width: 27px;
    height: 27px;

    top: -22px;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    background: #d9c0a8;
}

.person-one {
    left: 45px;

    width: 48px;
    height: 78px;

    background: #537ca3;
}

.person-two {
    left: 88px;

    width: 42px;
    height: 65px;

    background: #d87b70;
}

.person-three {
    left: 18px;

    width: 35px;
    height: 58px;

    background: #6c9b74;
}

.person-three::before {
    width: 21px;
    height: 21px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1450px) {

    :root {
        --sidebar-width: 225px;
        --right-width: 300px;
    }

    .main-area {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-illustration {
        right: 100px;
        transform: scale(0.9);
        transform-origin: right bottom;
    }

    .quick-services {
        grid-template-columns: repeat(3, 1fr);
    }

    .speciality-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .hospital-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 13px;
    }
}


@media (max-width: 1150px) {

    :root {
        --sidebar-width: 215px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .right-sidebar {
        display: grid;

        grid-template-columns: repeat(2, 1fr);
    }

    .hero-illustration {
        right: 40px;
    }

    .hero-benefits {
        display: none;
    }

    .support-btn {
        display: none;
    }
}


@media (max-width: 850px) {

    .sidebar {
        width: 70px;
        min-width: 70px;

        padding-left: 8px;
        padding-right: 8px;
    }

    .brand {
        padding-left: 6px;
        padding-right: 6px;
    }

    .brand-text,
    .nav-item > span:not(.nav-icon),
    .nav-item small,
    .sidebar-emergency > div:last-child,
    .sidebar-trust > div:last-child {
        display: none;
    }

    .brand-link {
        justify-content: center;
    }

    .nav-item {
        justify-content: center;
        padding: 0;
    }

    .sidebar-emergency,
    .sidebar-trust {
        justify-content: center;
        padding: 10px 5px;
    }

    .emergency-icon {
        width: 35px;
        height: 35px;
    }

    .trust-check {
        margin: 0;
    }

    .topbar {
        gap: 8px;
    }

    .profile-info,
    .profile-arrow {
        display: none;
    }

    .top-actions {
        margin-left: 0;
    }

    .notification-btn {
        width: 42px;
        height: 42px;
    }

    .profile-avatar {
        width: 42px;
        height: 42px;
    }

    .hero-illustration {
        opacity: 0.45;
        right: 5px;
    }

    .quick-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .smart-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .speciality-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


@media (max-width: 650px) {

    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        display: none;
    }

    .main-area {
        padding: 0 10px 20px;
    }

    .topbar {
        min-height: 65px;

        position: sticky;
    }

    .mobile-brand {
        display: block;
    }

    .mobile-brand a {
        display: flex;
        align-items: center;
        gap: 6px;

        white-space: nowrap;
    }

    .mobile-brand strong {
        font-size: 14px;
        color: #142b4c;
    }

    .mobile-brand-icon {
        width: 27px;
        height: 27px;

        display: grid;
        place-items: center;

        border-radius: 8px;

        color: white;
        background: var(--primary);

        font-weight: 800;
    }

    .search-box {
        max-width: none;
    }

    .search-box input {
        height: 40px;
        padding-left: 38px;
    }

    .search-icon {
        left: 12px;
        font-size: 20px;
    }

    .top-actions {
        gap: 5px;
    }

    .notification-btn {
        display: none;
    }

    .profile-avatar {
        width: 36px;
        height: 36px;
    }

    .hero-banner {
        min-height: 270px;
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 25px;
    }

    .hero-content p {
        max-width: 230px;
    }

    .hero-illustration {
        right: -35px;
        bottom: -15px;

        transform: scale(0.75);
        transform-origin: right bottom;

        opacity: 0.35;
    }

    .hero-buttons {
        flex-wrap: wrap;
    }

    .quick-services {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card {
        min-height: 82px;
    }

    .speciality-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .smart-features {
        grid-template-columns: 1fr;
    }

    .hospital-grid {
        grid-template-columns: 1fr 1fr;
    }

    .right-sidebar {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-heading h2 {
        font-size: 14px;
    }
}


@media (max-width: 430px) {

    .mobile-brand {
        display: none;
    }

    .topbar {
        gap: 6px;
    }

    .profile-avatar {
        width: 34px;
        height: 34px;
    }

    .hero-banner {
        min-height: 260px;
    }

    .hero-content h1 {
        font-size: 23px;
    }

    .hero-small-title {
        font-size: 8px;
    }

    .quick-services {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .service-card {
        padding: 10px 8px;
    }

    .service-card strong {
        font-size: 10px;
    }

    .speciality-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hospital-grid {
        grid-template-columns: 1fr;
    }

    .hospital-image {
        height: 140px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}