/* ==========================================================================
   Kabusa Medical Services - Public Homepage Dedicated Styles
   ========================================================================== */

:root {
    /* ----------------------------------------------------------------------
       PRIMARY GREEN BRAND PALETTE
       ---------------------------------------------------------------------- */
    --kmc-primary: #215841;
    --kmc-primary-hover: #174a35;
    --kmc-primary-light: #e8f3ed;
    /* Supporting green */
    --kmc-accent-green: #2f855a;
    /* Emergency / status colors */
    --kmc-accent-red: #ef4444;
    --kmc-accent-amber: #f59e0b;
    /* Neutral colors */
    --kmc-bg-slate: #f8fafc;
    --kmc-text-main: #111111;
    --kmc-text-muted: #5f6863;
}


/* ==========================================================================
   GLOBAL LANDING PAGE
   ========================================================================== */

.ehr-landing-layout {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--kmc-text-main);
    background-color: var(--kmc-bg-slate);
}

.ehr-homepage {
    scroll-behavior: smooth;
}


/* ==========================================================================
   EMERGENCY RIBBON
   ========================================================================== */

.emergency-ribbon {
    background: linear-gradient(90deg, #b91c1c 0%, #dc2626 50%, #b91c1c 100%);
    letter-spacing: 0.2px;
}


/* ==========================================================================
   HOSPITAL NAVBAR
   ========================================================================== */

.navbar-brand .brand-logo-box {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    border-radius: 10px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(33, 88, 65, 0.20);
}


/* ==========================================================================
   LOGO IMAGE
   ========================================================================== */

.navbar-brand .hospital-brand-logo {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    display: block;
}


/* ==========================================================================
   LOGO ICON
   ========================================================================== */

.navbar-brand .brand-logo-box i {
    color: var(--kmc-primary);
}


/* ==========================================================================
   HOSPITAL NAME
   ========================================================================== */

.navbar-brand > div:last-child span {
    font-size: 1.15rem;
    letter-spacing: -0.3px;
    color: var(--kmc-text-main);
}


/* ==========================================================================
   HOSPITAL SUBTITLE
   ========================================================================== */

.navbar-brand > div:last-child small {
    font-size: 0.68rem;
    letter-spacing: 0.6px;
    color: var(--kmc-primary);
}


/* ==========================================================================
   NAVBAR HOVER EFFECTS
   ========================================================================== */

.hover-light:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}


/* ==========================================================================
   PRIMARY BUTTON
   ========================================================================== */

.btn-kmc-primary {
    background-color: var(--kmc-primary) !important;
    color: #ffffff !important;
    border-radius: 9999px;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--kmc-primary) !important;
    transition: all 0.2s ease;
}

    .btn-kmc-primary:hover {
        background-color: var(--kmc-primary-hover) !important;
        border-color: var(--kmc-primary-hover) !important;
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(33, 88, 65, 0.25);
    }


/* ==========================================================================
   DEPARTMENT / DOCTOR / SERVICE CARDS
   ========================================================================== */

.department-card,
.doctor-card,
.service-card {
    border-radius: 1rem;
    border: 1px solid #e2e8e3;
    background: #ffffff;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

    .department-card:hover,
    .doctor-card:hover,
    .service-card:hover {
        transform: translateY(-4px);
        border-color: #cbd5e1;
        box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08), 0 6px 12px -4px rgba(0, 0, 0, 0.03);
    }


/* ==========================================================================
   BOOKING
   ========================================================================== */

.booking-container-card {
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px -15px rgba(33, 88, 65, 0.12);
    border: 1px solid #e2e8e3;
}


/* ==========================================================================
   EMERGENCY ACTION CARD
   ========================================================================== */

.emergency-action-card {
    border: 2px solid #fecaca;
    background: #fff5f5;
    border-radius: 1rem;
}


/* ==========================================================================
   TRIAGE CHAT
   ========================================================================== */

.kmc-triage-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
}

.kmc-triage-drawer {
    width: 360px;
    height: 490px;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8e3;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.ehr-landing-layout footer {
    background-color: #111111 !important;
    border-top: 1px solid #2f3a35 !important;
}

    .ehr-landing-layout footer a:hover {
        color: 4ade80 !important;
        text-decoration: underline !important;
    }


/* ==========================================================================
   LOGIN PAGE LOGO
   ========================================================================== */

.login-brand-logo-box {
    width: 75px;
    height: 75px;
    margin: 0 auto 1rem auto;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(33, 88, 65, 0.15);
    flex-shrink: 0;
}

.login-hospital-brand-logo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}


/* ==========================================================================
   MOBILE NAVBAR
   ========================================================================== */

@media (max-width: 767.98px) {

    /* ----------------------------------------------------------------------
       Navbar container
       ---------------------------------------------------------------------- */

    .ehr-landing-layout header.navbar {
        top: 35px;
    }

        .ehr-landing-layout header.navbar .container-xl {
            padding-top: 0.35rem !important;
            padding-bottom: 0.35rem !important;
            display: flex;
            align-items: center;
        }


    /* ----------------------------------------------------------------------
       Hospital brand
       ---------------------------------------------------------------------- */

    .navbar-brand {
        margin-right: 0 !important;
        gap: 0.45rem !important;
        min-width: 0;
        max-width: calc(100% - 48px);
        display: flex;
        align-items: center;
        flex-shrink: 1;
    }


        /* ----------------------------------------------------------------------
       Mobile hospital logo
       ---------------------------------------------------------------------- */

        .navbar-brand .brand-logo-box {
            width: 38px !important;
            height: 38px !important;
            min-width: 38px !important;
            min-height: 38px !important;
            border-radius: 7px !important;
            flex-shrink: 0;
        }

            .navbar-brand .brand-logo-box i {
                font-size: 1.05rem !important;
            }


        /* ----------------------------------------------------------------------
       Mobile logo image
       ---------------------------------------------------------------------- */

        .navbar-brand .hospital-brand-logo {
            width: 100% !important;
            height: 100% !important;
        }


        /* ----------------------------------------------------------------------
       Hospital name
       ---------------------------------------------------------------------- */

        .navbar-brand > div:last-child span {
            font-size: 0.85rem !important;
            letter-spacing: -0.2px !important;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: block;
        }


        /* ----------------------------------------------------------------------
       Hospital subtitle
       ---------------------------------------------------------------------- */

        .navbar-brand > div:last-child small {
            font-size: 0.50rem !important;
            letter-spacing: 0.3px !important;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: block;
        }


    /* ----------------------------------------------------------------------
       Hamburger button
       ---------------------------------------------------------------------- */

    .navbar-toggler {
        margin-left: auto !important;
        padding: 0.2rem 0.35rem !important;
        flex-shrink: 0;
        border: 0 !important;
        box-shadow: none !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .navbar-toggler i {
            font-size: 1.55rem !important;
            color: var(--kmc-primary) !important;
        }


    /* ----------------------------------------------------------------------
       Mobile navigation menu
       ---------------------------------------------------------------------- */

    .ehr-landing-layout header.navbar .d-flex.flex-column {
        width: 100%;
    }


    /* ----------------------------------------------------------------------
       Login logo on mobile
       ---------------------------------------------------------------------- */

    .login-brand-logo-box {
        width: 60px;
        height: 60px;
        border-radius: 10px;
        margin-bottom: 0.75rem;
    }
}


/* ==========================================================================
   EXTRA SMALL MOBILE DEVICES
   ========================================================================== */

@media (max-width: 380px) {

    /* Smaller navbar logo */

    .navbar-brand .brand-logo-box {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        border-radius: 6px !important;
    }

        .navbar-brand .brand-logo-box i {
            font-size: 0.95rem !important;
        }


    /* Smaller hospital name */

    .navbar-brand > div:last-child span {
        font-size: 0.78rem !important;
    }


    /* Smaller subtitle */

    .navbar-brand > div:last-child small {
        font-size: 0.44rem !important;
        letter-spacing: 0.15px !important;
    }


    /* Smaller hamburger */

    .navbar-toggler i {
        font-size: 1.4rem !important;
    }
}


/* ==========================================================================
   VERY SMALL PHONES
   ========================================================================== */

@media (max-width: 340px) {

    .navbar-brand {
        gap: 0.3rem !important;
        max-width: calc(100% - 42px);
    }


        /* Very small logo */

        .navbar-brand .brand-logo-box {
            width: 32px !important;
            height: 32px !important;
            min-width: 32px !important;
            min-height: 32px !important;
        }


        /* Very small hospital name */

        .navbar-brand > div:last-child span {
            font-size: 0.70rem !important;
        }


        /* Very small subtitle */

        .navbar-brand > div:last-child small {
            font-size: 0.39rem !important;
        }


    /* Very small hamburger */

    .navbar-toggler {
        padding: 0.15rem 0.25rem !important;
    }

        .navbar-toggler i {
            font-size: 1.3rem !important;
        }
}
