/* =========================================================
   MEDI ASSET
   Professional Healthcare Appointment Platform
   ========================================================= */


/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
    --primary: #0d6efd;
    --primary-dark: #084298;
    --primary-soft: #eaf3ff;

    --secondary: #64748b;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;

    --text-dark: #1e293b;
    --text-body: #475569;
    --text-soft: #64748b;

    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --page-bg: #f4f8fc;

    --border: #e2e8f0;
    --border-soft: #edf2f7;

    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: all 0.25s ease;
}


/* =========================================================
   GLOBAL
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--text-dark);
    background: var(--page-bg);

    line-height: 1.6;
}

main {
    min-height: 60vh;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button,
a,
input,
select,
textarea {
    transition: var(--transition);
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-body);
}

.text-muted-soft {
    color: var(--text-soft) !important;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar-medi {
    background:
        linear-gradient(
            135deg,
            #0d6efd 0%,
            #0b5ed7 50%,
            #084298 100%
        );

    min-height: 72px;

    box-shadow:
        0 8px 25px rgba(13, 110, 253, 0.18);

    z-index: 1030;
}

.navbar-medi .navbar-brand {
    color: #ffffff !important;

    font-size: 1.35rem;
    font-weight: 800;

    letter-spacing: -0.02em;
}

.navbar-medi .navbar-brand i {
    font-size: 1.35rem;
}

.navbar-medi .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    padding: 0.45rem 0.65rem;
}

.navbar-medi .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

.navbar-medi .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;

    font-size: 0.95rem;
    font-weight: 500;

    padding:
        0.65rem 0.8rem !important;

    border-radius: 10px;

    white-space: nowrap;
}

.navbar-medi .nav-link:hover,
.navbar-medi .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.13);
}

.navbar-medi .btn-primary {
    border: none;
}

.navbar-medi .btn-outline-danger {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
}

.navbar-medi .btn-outline-danger:hover {
    color: #ffffff;
    background: rgba(220, 53, 69, 0.9);
    border-color: transparent;
}

.role-badge {
    color: var(--primary) !important;
    font-weight: 700;
    padding: 0.4rem 0.65rem;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;

    padding:
        110px 0
        90px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(13, 110, 253, 0.13),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(13, 110, 253, 0.08),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f6faff 100%
        );

    border-bottom:
        1px solid
        var(--border-soft);
}

.hero::before {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    right: -160px;
    top: -160px;

    background: rgba(13, 110, 253, 0.06);

    border-radius: 50%;
}

.hero::after {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    left: -120px;
    bottom: -120px;

    background: rgba(13, 110, 253, 0.05);

    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);

    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -0.045em;

    max-width: 850px;
}

.hero h1 .text-primary {
    position: relative;
}

.hero h1 .text-primary::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -3px;

    height: 5px;

    background:
        rgba(13, 110, 253, 0.15);

    border-radius: 10px;
}

.hero .lead {
    max-width: 700px;

    color: var(--text-body);

    font-size: 1.15rem;

    line-height: 1.8;
}


/* =========================================================
   SPECIALIZATION CHIP
   ========================================================= */

.specialization-chip {
    display: inline-flex;

    align-items: center;

    gap: 0.25rem;

    padding:
        0.4rem 0.8rem;

    border:
        1px solid
        rgba(13, 110, 253, 0.15);

    border-radius: 999px;

    background:
        rgba(13, 110, 253, 0.08);

    color: var(--primary);

    font-size: 0.8rem;

    font-weight: 700;

    line-height: 1.2;
}

.specialization-chip:hover {
    background:
        rgba(13, 110, 253, 0.13);

    border-color:
        rgba(13, 110, 253, 0.25);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    font-weight: 600;

    border-radius:
        11px;

    padding:
        0.65rem 1.1rem;

    box-shadow: none;
}

.btn-lg {
    padding:
        0.8rem 1.35rem;

    border-radius:
        13px;
}

.btn-primary {
    background:
        linear-gradient(
            135deg,
            #0d6efd,
            #0b5ed7
        );

    border-color:
        transparent;

    box-shadow:
        0 8px 18px
        rgba(13, 110, 253, 0.20);
}

.btn-primary:hover {
    background:
        linear-gradient(
            135deg,
            #0b5ed7,
            #084298
        );

    border-color:
        transparent;

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 24px
        rgba(13, 110, 253, 0.26);
}

.btn-outline-primary {
    color: var(--primary);

    border:
        1px solid
        rgba(13, 110, 253, 0.5);

    background: #ffffff;
}

.btn-outline-primary:hover {
    color: #ffffff;

    background:
        var(--primary);

    border-color:
        var(--primary);

    transform:
        translateY(-2px);
}

.btn-outline-danger {
    border-radius: 10px;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
    border:
        1px solid
        var(--border-soft);

    border-radius:
        var(--radius-md);

    background:
        var(--surface);

    box-shadow:
        var(--shadow-sm);

    overflow: hidden;
}

.card-body {
    padding:
        1.5rem;
}

.card-hover {
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.card-hover:hover {
    transform:
        translateY(-7px);

    box-shadow:
        var(--shadow-md);

    border-color:
        rgba(13, 110, 253, 0.15);
}


/* =========================================================
   STAT CARD
   ========================================================= */

.stat-value {
    font-size: clamp(1.8rem, 3vw, 2.5rem);

    line-height: 1;

    font-weight: 800;

    letter-spacing: -0.04em;
}

.stat-label {
    margin-top: 0.4rem;

    color: var(--text-soft);

    font-size: 0.8rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}

.stat-icon {
    width: 52px;
    height: 52px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    color: var(--primary);

    background:
        var(--primary-soft);

    font-size: 1.35rem;
}


/* =========================================================
   DOCTOR AVATAR / AVATAR
   ========================================================= */

.doctor-avatar,
.avatar {
    width: 72px;
    height: 72px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #eaf3ff,
            #dcecff
        );

    color: var(--primary);

    border:
        1px solid
        rgba(13, 110, 253, 0.12);

    font-size: 1.7rem;

    box-shadow:
        inset 0 0 0 4px rgba(255, 255, 255, 0.6);
}


/* =========================================================
   FORMS
   ========================================================= */

.form-label {
    color:
        var(--text-dark);

    font-size:
        0.9rem;

    font-weight:
        600;

    margin-bottom:
        0.45rem;
}

.form-control,
.form-select {
    min-height:
        48px;

    padding:
        0.72rem 0.9rem;

    color:
        var(--text-dark);

    background:
        #ffffff;

    border:
        1px solid
        var(--border);

    border-radius:
        11px;

    box-shadow:
        none;
}

textarea.form-control {
    min-height:
        120px;

    resize:
        vertical;
}

.form-control::placeholder {
    color:
        #94a3b8;
}

.form-control:hover,
.form-select:hover {
    border-color:
        #cbd5e1;
}

.form-control:focus,
.form-select:focus {
    color:
        var(--text-dark);

    background:
        #ffffff;

    border-color:
        rgba(13, 110, 253, 0.55);

    box-shadow:
        0 0 0 0.22rem
        rgba(13, 110, 253, 0.11);
}

.form-check-input {
    width: 1.05rem;
    height: 1.05rem;

    border:
        1px solid
        #cbd5e1;
}

.form-check-input:checked {
    background-color:
        var(--primary);

    border-color:
        var(--primary);
}

.form-check-input:focus {
    box-shadow:
        0 0 0 0.2rem
        rgba(13, 110, 253, 0.11);
}


/* =========================================================
   VALIDATION
   ========================================================= */

.text-danger {
    font-size:
        0.82rem;

    font-weight:
        500;
}

.is-invalid {
    border-color:
        var(--danger) !important;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    border:
        1px solid transparent;

    border-radius:
        13px;

    padding:
        0.9rem 1rem;

    font-weight:
        500;
}

.alert-success {
    border-color:
        rgba(25, 135, 84, 0.15);
}

.alert-danger {
    border-color:
        rgba(220, 53, 69, 0.15);
}

.alert-warning {
    border-color:
        rgba(255, 193, 7, 0.18);
}

.alert-info {
    border-color:
        rgba(13, 202, 240, 0.18);
}


/* =========================================================
   TABLES
   ========================================================= */

.table {
    margin-bottom:
        0;

    color:
        var(--text-body);

    vertical-align:
        middle;
}

.table thead th {
    padding:
        0.95rem 1rem;

    color:
        #334155;

    background:
        #f8fafc;

    border-bottom:
        1px solid
        var(--border);

    font-size:
        0.78rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        0.04em;
}

.table tbody td {
    padding:
        1rem;

    border-bottom:
        1px solid
        var(--border-soft);
}

.table tbody tr {
    transition:
        background-color 0.2s ease;
}

.table tbody tr:hover {
    background:
        #f8fbff;
}

.table tbody tr:last-child td {
    border-bottom:
        none;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
    font-weight:
        650;

    border-radius:
        999px;

    padding:
        0.45rem 0.7rem;
}


/* =========================================================
   DROPDOWN
   ========================================================= */

.dropdown-menu {
    border:
        1px solid
        var(--border-soft);

    border-radius:
        13px;

    padding:
        0.45rem;

    box-shadow:
        var(--shadow-md);
}

.dropdown-item {
    padding:
        0.65rem 0.8rem;

    border-radius:
        9px;

    font-size:
        0.9rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color:
        var(--primary);

    background:
        var(--primary-soft);
}


/* =========================================================
   EMPTY STATES
   ========================================================= */

.empty-state {
    padding:
        4rem 1.5rem;

    text-align:
        center;

    color:
        var(--text-soft);
}

.empty-state i {
    color:
        #94a3b8;

    font-size:
        3rem;
}


/* =========================================================
   SECTION SPACING
   ========================================================= */

section {
    position:
        relative;
}

section h2 {
    margin-bottom:
        0.55rem;
}

section .text-muted-soft {
    margin-bottom:
        0;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer-medi {
    margin-top:
        auto;

    padding:
        3.2rem 0 1.5rem;

    color:
        rgba(255, 255, 255, 0.72);

    background:
        linear-gradient(
            180deg,
            #172033 0%,
            #0f172a 100%
        );

    border-top:
        1px solid
        rgba(255, 255, 255, 0.06);
}

.footer-medi h5,
.footer-medi h6 {
    color:
        #ffffff;
}

.footer-medi p {
    color:
        rgba(255, 255, 255, 0.65);
}

.footer-medi a {
    color:
        rgba(255, 255, 255, 0.66);

    transition:
        var(--transition);
}

.footer-medi a:hover {
    color:
        #ffffff;
}


/* =========================================================
   HERO / CONTENT CARD POLISH
   ========================================================= */

.hero .card {
    border:
        1px solid
        rgba(13, 110, 253, 0.08);

    box-shadow:
        0 20px 45px
        rgba(13, 110, 253, 0.08);

    background:
        rgba(255, 255, 255, 0.95);

    backdrop-filter:
        blur(8px);
}


/* =========================================================
   CONTAINER WIDTH
   ========================================================= */

@media (min-width: 1200px) {

    .container {
        max-width:
            1160px;
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .navbar-medi {
        min-height:
            66px;
    }

    .navbar-medi .navbar-nav {
        padding-top:
            0.75rem;
        padding-bottom:
            0.75rem;
    }

    .navbar-medi .nav-link {
        margin:
            0.1rem 0;
    }

    .hero {
        padding:
            80px 0
            70px;
    }

    .hero h1 {
        font-size:
            3rem;
    }
}


@media (max-width: 767.98px) {

    .hero {
        padding:
            70px 0
            55px;
    }

    .hero h1 {
        font-size:
            2.45rem;

        line-height:
            1.12;
    }

    .hero .lead {
        font-size:
            1rem;

        line-height:
            1.7;
    }

    .card-body {
        padding:
            1.25rem;
    }

    .stat-value {
        font-size:
            1.7rem;
    }

    .stat-label {
        font-size:
            0.68rem;
    }

    .doctor-avatar,
    .avatar {
        width:
            62px;
        height:
            62px;

        font-size:
            1.45rem;
    }

    .table {
        min-width:
            720px;
    }
}


@media (max-width: 575.98px) {

    .hero {
        padding:
            55px 0
            45px;
    }

    .hero h1 {
        font-size:
            2.05rem;
    }

    .hero .btn-lg {
        width:
            100%;
    }

    .hero .d-flex {
        flex-direction:
            column;
    }

    .specialization-chip {
        font-size:
            0.74rem;
    }

    .footer-medi {
        text-align:
            center;
    }
}


/* =========================================================
   ACCESSIBILITY / FOCUS
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline:
        3px solid
        rgba(13, 110, 253, 0.25);

    outline-offset:
        2px;
}


/* =========================================================
   REDUCE MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior:
            auto;
    }

    *,
    *::before,
    *::after {
        transition:
            none !important;

        animation:
            none !important;
    }
}