:root {
    --brand-orange: #e57f22;
    --brand-orange-soft: #f39b3c;
    --brand-dark: #222831;
    --brand-dark-soft: #343a46;
    --brand-light: #f8f5f0;
    --brand-muted: #6c757d;
    --brand-card: #ffffff;
    --brand-border: #ece5dc;
}

body {
    background: linear-gradient(180deg, #fff8f1 0%, #f8f5f0 100%);
    color: var(--brand-dark);
    min-height: 100vh;
}

.navbar-brand,
.brand-title {
    font-weight: 700;
    letter-spacing: .3px;
}

.topbar-custom {
    background: linear-gradient(90deg, var(--brand-dark) 0%, #2f3640 45%, var(--brand-orange) 100%);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.card-custom {
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(34,40,49,.06);
}

.hero-panel {
    background: linear-gradient(135deg, rgba(229,127,34,.95), rgba(47,54,64,.96));
    border-radius: 22px;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.hero-panel::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -40px;
    width: 220px;
    height: 220px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}

.hero-panel .hero-icon {
    font-size: 3rem;
    opacity: .92;
}

.btn-brand {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: #fff;
}

.btn-brand:hover,
.btn-brand:focus {
    background: #d66f12;
    border-color: #d66f12;
    color: #fff;
}

.btn-outline-brand {
    color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.btn-outline-brand:hover {
    background: var(--brand-orange);
    color: #fff;
}

.section-title {
    font-weight: 700;
    color: var(--brand-dark);
}

.stat-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(34,40,49,.06);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.lab-card {
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.lab-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(34,40,49,.10);
}

.lab-badge {
    background: rgba(229,127,34,.12);
    color: var(--brand-orange);
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .8rem;
    font-weight: 600;
}

.table thead th {
    background: #fff1e1;
    color: var(--brand-dark);
    border-bottom: 1px solid var(--brand-border);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(229,127,34,.45);
    box-shadow: 0 0 0 .25rem rgba(229,127,34,.15);
}

.login-wrapper {
    min-height: 100vh;
}

.auth-card {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(34,40,49,.12);
}

.auth-side {
    background: url('../images/auth_panel_replacement.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100%;
    position: relative;
}

.auth-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
}

.auth-side > div {
    display: none;
}

.auth-side .feature-item {
    display: none;
}

.footer-note,
.small-muted {
    color: var(--brand-muted);
    font-size: .92rem;
}

.badge-soft-orange {
    background: rgba(229,127,34,.12);
    color: var(--brand-orange);
}

.action-link {
    text-decoration: none;
}

/* Admin Sidebar */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: #f8f5f0;
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #222831 0%, #2e3540 58%, #e57f22 100%);
    color: #fff;
    padding: 22px;
    position: fixed;
    min-height: 100vh;
    left: 0;
    top: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.16);
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.14);
    font-size: 1.25rem;
}

.brand-main {
    font-weight: 800;
    font-size: 1.05rem;
}

.brand-sub {
    font-size: .82rem;
    opacity: .75;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.10);
}

.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-user small {
    opacity: .75;
}

.sidebar-menu {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.sidebar-menu a {
    color: rgba(255,255,255,.82);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 15px;
    transition: all .2s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: #fff;
    background: rgba(255,255,255,.16);
    transform: translateX(3px);
}

.sidebar-menu a i {
    width: 22px;
}

.sidebar-footer {
    position: absolute;
    bottom: 22px;
    left: 22px;
    right: 22px;
}

.admin-main {
    margin-left: 280px;
    width: calc(100% - 280px);
    padding: 26px;
}

.admin-topbar {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 0 8px 20px rgba(34,40,49,.05);
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-topbar small {
    color: var(--brand-muted);
}

.admin-topbar-badge {
    background: rgba(229,127,34,.12);
    color: var(--brand-orange);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        width: 100%;
        position: static;
        min-height: auto;
        border-radius: 0 0 22px 22px;
    }

    .admin-layout {
        display: block;
    }

    .admin-main {
        margin-left: 0;
        width: 100%;
        padding: 18px;
    }

    .sidebar-footer {
        position: static;
        margin-top: 18px;
    }
}

@media (max-width: 767.98px) {
    .hero-panel { border-radius: 18px; }
    .auth-side { display: none; }
}


.auth-side .campus-caption {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: .82rem;
    font-weight: 600;
}


.auth-image-fill {
    min-height: 100%;
    width: 100%;
}

@media (max-width: 767.98px) {
    .auth-side {
        display: none !important;
    }
}


/* ===============================
   Elegant Campus Image UI Upgrade
   =============================== */

.auth-card {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(34,40,49,.18);
    border: 1px solid rgba(255,255,255,.55);
}

.auth-side {
    background:
        linear-gradient(180deg, rgba(20, 22, 28, .05), rgba(20, 22, 28, .16)),
        url('../images/auth_panel_replacement.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 720px;
    position: relative;
}

.auth-side::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 24px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}

.auth-side > div {
    display: none !important;
}

.auth-form-logo {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-form-logo img {
    max-width: 270px;
    width: 82%;
    height: auto;
}

.auth-form-panel {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--brand-border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(34,40,49,.06);
}

.auth-page-note {
    background: linear-gradient(90deg, rgba(229,127,34,.10), rgba(34,40,49,.06));
    border: 1px solid rgba(229,127,34,.18);
    border-radius: 16px;
    padding: 12px 14px;
    color: var(--brand-muted);
    font-size: .9rem;
}

/* Hero dashboard with campus image theme */
.hero-panel {
    background:
        linear-gradient(135deg, rgba(229,127,34,.92), rgba(34,40,49,.94)),
        url('../images/auth_panel_replacement.png') !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 26px;
    box-shadow: 0 18px 42px rgba(34,40,49,.12);
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 0%, rgba(255,255,255,.20), transparent 36%),
        linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,.08));
    pointer-events: none;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.campus-mini-logo {
    height: 54px;
    width: auto;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
}

.dashboard-campus-card {
    background:
        linear-gradient(160deg, rgba(255,255,255,.96), rgba(255,248,241,.94));
    border: 1px solid var(--brand-border);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(34,40,49,.08);
}

.navbar-logo-mini {
    height: 34px;
    width: auto;
    background: rgba(255,255,255,.90);
    border-radius: 10px;
    padding: 3px 6px;
    margin-right: 8px;
}

.admin-topbar {
    background:
        linear-gradient(90deg, rgba(255,255,255,.97), rgba(255,241,225,.92));
}

.admin-sidebar {
    background:
        linear-gradient(180deg, rgba(34,40,49,.96), rgba(34,40,49,.94) 54%, rgba(229,127,34,.96)),
        url('../images/auth_panel_replacement.png');
    background-size: cover;
    background-position: center;
}

@media (max-width: 991.98px) {
    .auth-side {
        min-height: 360px;
        display: block !important;
    }

    .auth-side::after {
        inset: 12px;
        border-radius: 18px;
    }
}

@media (max-width: 767.98px) {
    .auth-side {
        min-height: 300px;
        display: block !important;
    }

    .auth-form-panel {
        padding: 18px;
    }
}


/* =========================================================
   FINAL OVERRIDE: gunakan gambar gedung_kampus.png
   tanpa blur pada tampilan aplikasi
   ========================================================= */

/* Panel kiri login & register */
.auth-side {
    background-image: url('../images/gedung_kampus.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    filter: none !important;
    backdrop-filter: none !important;
}

.auth-side::before,
.auth-side::after {
    backdrop-filter: none !important;
}

/* Hero dashboard user/admin */
.hero-panel {
    background-image:
        linear-gradient(135deg, rgba(229,127,34,.55), rgba(34,40,49,.45)),
        url('../images/gedung_kampus.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    filter: none !important;
}

.hero-panel::before {
    background:
        radial-gradient(circle at 12% 0%, rgba(255,255,255,.12), transparent 32%),
        linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.06)) !important;
}

/* Sidebar admin */
.admin-sidebar {
    background-image:
        linear-gradient(180deg, rgba(34,40,49,.90), rgba(34,40,49,.88) 54%, rgba(229,127,34,.88)),
        url('../images/gedung_kampus.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    filter: none !important;
}

/* Pastikan gambar tampil tajam */
.auth-side,
.hero-panel,
.admin-sidebar {
    image-rendering: auto !important;
}


/* =========================================================
   FINAL PREMIUM LOGIN UPGRADE
   - gambar gedung fit penuh tanpa terpotong
   - posisi fokus gambar lebih pas
   - tampilan login lebih premium
   ========================================================= */

body {
    background: linear-gradient(180deg, #f5f1ea 0%, #f2eee8 100%);
}

.auth-card {
    border-radius: 30px !important;
    overflow: hidden !important;
    box-shadow: 0 28px 70px rgba(34,40,49,.16) !important;
    border: 1px solid rgba(255,255,255,.72) !important;
    background: rgba(255,255,255,.90) !important;
}

.auth-side {
    background: linear-gradient(180deg, rgba(229,127,34,.10), rgba(34,40,49,.14)) !important;
    position: relative !important;
    min-height: 760px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

.auth-side::before,
.auth-side::after {
    display: none !important;
}

.auth-side > div {
    display: flex !important;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.auth-side-image {
    width: 100%;
    height: 100%;
    max-height: 720px;
    object-fit: contain;
    object-position: center center;
    border-radius: 24px;
    display: block;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(34,40,49,.10);
}

.auth-image-frame {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.62));
    border: 1px solid rgba(229,127,34,.18);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.30);
}

.auth-form-shell {
    width: 100%;
}

.auth-form-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-form-logo img {
    max-width: 300px;
    height: auto;
}

.auth-form-panel {
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(252,250,247,.98));
    border: 1px solid #eadfce;
    border-radius: 28px;
    padding: 34px 36px;
    box-shadow: 0 16px 34px rgba(34,40,49,.08);
}

.auth-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(229,127,34,.10);
    color: #c56b11;
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.auth-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: .35rem;
}

.auth-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.auth-form-panel .input-group-text {
    background: #f5f7fb;
    border-color: #d9dee7;
}

.auth-form-panel .form-control {
    border-color: #d9dee7;
    background: #fbfcfe;
    height: 54px;
}

.auth-form-panel .btn.btn-brand {
    height: 54px;
    font-size: 1.08rem;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 10px 18px rgba(229,127,34,.18);
}

.auth-page-note {
    background: linear-gradient(90deg, rgba(229,127,34,.08), rgba(34,40,49,.04));
    border: 1px solid rgba(229,127,34,.18);
    border-radius: 18px;
    padding: 14px 16px;
    color: #64748b;
    font-size: .95rem;
}

/* Hero/Sidebar keep building theme but clean */
.hero-panel {
    background-image:
        linear-gradient(135deg, rgba(229,127,34,.58), rgba(34,40,49,.48)),
        url('../images/gedung_kampus.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.admin-sidebar {
    background-image:
        linear-gradient(180deg, rgba(34,40,49,.92), rgba(34,40,49,.90) 54%, rgba(229,127,34,.90)),
        url('../images/gedung_kampus.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

@media (max-width: 991.98px) {
    .auth-side {
        min-height: 360px !important;
        padding: 16px !important;
    }

    .auth-side-image {
        max-height: 320px;
    }

    .auth-form-panel {
        padding: 24px 22px;
        border-radius: 24px;
    }
}

@media (max-width: 767.98px) {
    .auth-side {
        min-height: 250px !important;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .auth-form-logo img {
        max-width: 240px;
    }
}


/* =========================================================
   FIX FINAL: gambar gedung tidak blur dan tidak terpotong
   ========================================================= */

/* matikan background lama di sisi kiri */
.auth-side {
    background: transparent !important;
    min-height: 760px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px !important;
    position: relative !important;
}

.auth-side::before,
.auth-side::after {
    display: none !important;
    content: none !important;
}

.auth-image-wrap {
    width: 100%;
    height: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(229,127,34,.12);
    box-shadow: 0 12px 30px rgba(34,40,49,.08);
    padding: 14px;
}

.auth-side-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 670px !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 18px !important;
    image-rendering: auto !important;
    filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    background: #fff !important;
}

/* pastikan dashboard/hero tetap memakai gambar tetapi tidak blur */
.hero-panel {
    background-image:
        linear-gradient(135deg, rgba(229,127,34,.56), rgba(34,40,49,.44)),
        url('../images/gedung_kampus.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    filter: none !important;
}

.admin-sidebar {
    background-image:
        linear-gradient(180deg, rgba(34,40,49,.92), rgba(34,40,49,.90) 54%, rgba(229,127,34,.90)),
        url('../images/gedung_kampus.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    filter: none !important;
}

@media (max-width: 991.98px) {
    .auth-side {
        min-height: 360px !important;
        padding: 12px !important;
    }

    .auth-image-wrap {
        min-height: 320px;
        padding: 10px;
    }

    .auth-side-image {
        max-height: 300px !important;
    }
}

@media (max-width: 767.98px) {
    .auth-side {
        min-height: 270px !important;
    }

    .auth-image-wrap {
        min-height: 230px;
    }

    .auth-side-image {
        max-height: 210px !important;
    }
}


/* =========================================================
   FIX PROPORSIONAL PANEL KIRI LOGIN/REGISTER
   Masalah sebelumnya: object-fit contain membuat ruang kosong besar.
   Solusi: object-fit cover + tinggi panel mengikuti card.
   ========================================================= */

.login-wrapper {
    min-height: 100vh;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.auth-card {
    min-height: 720px !important;
    border-radius: 30px !important;
    overflow: hidden !important;
}

.auth-card > .row {
    min-height: 720px !important;
}

.auth-side {
    min-height: 720px !important;
    padding: 0 !important;
    background: transparent !important;
    display: block !important;
    position: relative !important;
}

.auth-side::before,
.auth-side::after {
    display: none !important;
    content: none !important;
}

.auth-image-wrap {
    width: 100% !important;
    height: 100% !important;
    min-height: 720px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden !important;
    display: block !important;
}

.auth-side-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 720px !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: 45% center !important;
    display: block !important;
    border-radius: 0 !important;
    filter: none !important;
    image-rendering: auto !important;
}

/* Panel form kanan disejajarkan agar komposisi lebih premium */
.auth-form-shell {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.auth-form-panel {
    margin-top: 0 !important;
}

/* Responsif tablet */
@media (max-width: 991.98px) {
    .auth-card,
    .auth-card > .row {
        min-height: auto !important;
    }

    .auth-side {
        min-height: 360px !important;
        height: 360px !important;
    }

    .auth-image-wrap {
        min-height: 360px !important;
        height: 360px !important;
    }

    .auth-side-image {
        min-height: 360px !important;
        height: 360px !important;
        object-position: center center !important;
    }
}

/* Responsif mobile */
@media (max-width: 767.98px) {
    .auth-side {
        min-height: 260px !important;
        height: 260px !important;
    }

    .auth-image-wrap {
        min-height: 260px !important;
        height: 260px !important;
    }

    .auth-side-image {
        min-height: 260px !important;
        height: 260px !important;
        object-position: center center !important;
    }
}

/* =========================================================
   USER DASHBOARD - LAB SCHEDULE / AVAILABILITY
   ========================================================= */
.schedule-card {
    overflow: hidden;
}

.schedule-legend {
    font-size: .78rem;
}

.schedule-key,
.availability-badge,
.schedule-slot {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.schedule-key {
    padding: .42rem .72rem;
    border: 1px solid transparent;
}

.schedule-key-available {
    background: rgba(25, 135, 84, .10);
    color: #146c43;
    border-color: rgba(25, 135, 84, .18);
}

.schedule-key-pending {
    background: rgba(255, 193, 7, .16);
    color: #8a6800;
    border-color: rgba(255, 193, 7, .28);
}

.schedule-key-booked {
    background: rgba(34, 40, 49, .10);
    color: #222831;
    border-color: rgba(34, 40, 49, .16);
}

.schedule-date-tabs .nav-link {
    min-width: 98px;
    border: 1px solid rgba(34, 40, 49, .09);
    background: #fff;
    color: #5f6368;
    border-radius: 14px;
    padding: .62rem .85rem;
    box-shadow: 0 4px 12px rgba(34,40,49,.04);
}

.schedule-date-tabs .nav-link.active {
    background: linear-gradient(135deg, #e57f22, #c95f0c);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(229,127,34,.24);
}

.schedule-day-name {
    font-size: .78rem;
    font-weight: 600;
}

.schedule-date-label {
    font-size: .95rem;
    font-weight: 800;
}

.schedule-table-wrap {
    border: 1px solid rgba(34, 40, 49, .08);
    border-radius: 16px;
}

.schedule-table > :not(caption) > * > * {
    padding: .9rem .85rem;
}

.schedule-lab-desc {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-empty {
    display: inline-flex;
    align-items: center;
    color: #6c757d;
    font-size: .88rem;
}

.schedule-slot {
    padding: .42rem .68rem;
    font-size: .8rem;
}

.schedule-slot-booked {
    background: rgba(34, 40, 49, .10);
    color: #222831;
    border: 1px solid rgba(34, 40, 49, .14);
}

.schedule-slot-pending {
    background: rgba(255, 193, 7, .16);
    color: #806000;
    border: 1px solid rgba(255, 193, 7, .28);
}

.schedule-mine {
    display: inline-flex;
    margin-left: .42rem;
    padding: .10rem .34rem;
    border-radius: 999px;
    background: rgba(229,127,34,.14);
    color: #a34d08;
    font-size: .66rem;
    font-weight: 800;
}

.availability-badge {
    padding: .4rem .68rem;
    font-size: .8rem;
}

.availability-full {
    background: rgba(25, 135, 84, .11);
    color: #146c43;
}

.availability-partial {
    background: rgba(13, 110, 253, .10);
    color: #0a58ca;
}

.schedule-note {
    display: flex;
    align-items: flex-start;
    background: rgba(13, 110, 253, .06);
    border: 1px solid rgba(13, 110, 253, .12);
    color: #425466;
    border-radius: 13px;
    padding: .78rem .9rem;
    font-size: .82rem;
    line-height: 1.5;
}

.btn-outline-brand {
    color: #d66e13;
    border-color: rgba(229,127,34,.45);
    background: #fff;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    color: #fff;
    background: #e57f22;
    border-color: #e57f22;
}

.lab-badge-available {
    background: rgba(25,135,84,.10);
    color: #146c43;
}

.lab-badge-partial {
    background: rgba(13,110,253,.10);
    color: #0a58ca;
}

@media (max-width: 767.98px) {
    .schedule-date-tabs .nav-link {
        min-width: 88px;
    }

    .schedule-table > :not(caption) > * > * {
        padding: .75rem .7rem;
    }
}

/* =========================================================
   USER DASHBOARD - MONTHLY LAB CALENDAR
   Calendar-like proportional layout
   ========================================================= */
.monthly-schedule-card {
    overflow: visible;
}

.monthly-calendar-toolbar {
    background: #fff;
    border: 1px solid rgba(34, 40, 49, .09);
    border-radius: 14px;
    padding: .7rem .8rem;
}

.monthly-calendar-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2c3137;
    line-height: 1.2;
}

.monthly-today-link {
    display: inline-block;
    margin-top: .15rem;
    color: #c95f0c;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
}

.monthly-calendar-wrap {
    width: 100%;
    border: 1px solid rgba(34, 40, 49, .11);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.monthly-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
}

.monthly-calendar-head {
    background: #f6f7f9;
    border-bottom: 1px solid rgba(34, 40, 49, .10);
}

.monthly-weekday {
    padding: .72rem .4rem;
    text-align: center;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: #626a73;
    border-right: 1px solid rgba(34, 40, 49, .07);
}

.monthly-weekday:nth-child(6),
.monthly-weekday:nth-child(7) {
    background: #fffaf5;
    color: #b85d15;
}

.monthly-weekday:nth-child(7) {
    border-right: 0;
}

.monthly-calendar-body {
    background: #fff;
}

.monthly-day {
    min-width: 0;
    min-height: 108px;
    aspect-ratio: 1.35 / 1;
    padding: .55rem .6rem;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border-right: 1px solid rgba(34, 40, 49, .07);
    border-bottom: 1px solid rgba(34, 40, 49, .07);
    transition: background .15s ease, box-shadow .15s ease;
    position: relative;
    overflow: hidden;
}

.monthly-day:nth-child(7n) {
    border-right: 0;
}

.monthly-day:hover {
    background: #fffaf6;
    box-shadow: inset 0 0 0 2px rgba(229, 127, 34, .18);
    z-index: 2;
}

.monthly-day.is-selected {
    background: #fff7ef;
    box-shadow: inset 0 0 0 2px #e57f22;
    z-index: 3;
}

.monthly-day.is-today {
    background: #fffcf8;
}

.monthly-day.is-today .monthly-day-number {
    background: #e57f22;
    color: #fff;
}

.monthly-day-empty {
    min-height: 108px;
    aspect-ratio: 1.35 / 1;
    background: #f8f9fa;
    pointer-events: none;
    border-right: 1px solid rgba(34, 40, 49, .07);
    border-bottom: 1px solid rgba(34, 40, 49, .07);
}

.monthly-day-empty:nth-child(7n) {
    border-right: 0;
}

.monthly-calendar-body > :nth-child(7n+6):not(.monthly-day-empty),
.monthly-calendar-body > :nth-child(7n):not(.monthly-day-empty) {
    background-color: #fffdfb;
}

.monthly-day-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .35rem;
    min-height: 30px;
    margin-bottom: .35rem;
}

.monthly-day-number {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: .88rem;
    font-weight: 800;
    color: #343a40;
}

.monthly-today-badge {
    font-size: .61rem;
    line-height: 1;
    font-weight: 800;
    color: #b45509;
    background: rgba(229, 127, 34, .11);
    border-radius: 999px;
    padding: .22rem .38rem;
    white-space: nowrap;
}

.monthly-day-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .28rem;
    min-width: 0;
    margin-top: auto;
    padding-bottom: .05rem;
}

.monthly-compact-status {
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    border-radius: 6px;
    padding: .24rem .4rem;
    font-size: .68rem;
    line-height: 1.15;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.monthly-compact-status i {
    flex: 0 0 auto;
    font-size: .65rem;
}

.monthly-compact-status span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-available {
    background: rgba(25, 135, 84, .09);
    color: #146c43;
}

.compact-booked {
    background: rgba(34, 40, 49, .09);
    color: #2e343b;
}

.compact-pending {
    background: rgba(255, 193, 7, .17);
    color: #765800;
}

.compact-past {
    background: rgba(108, 117, 125, .08);
    color: #7a8188;
}

.monthly-day.is-past {
    background: #fafafa;
}

.monthly-day.is-past:not(.is-selected) {
    opacity: .72;
}

.monthly-detail {
    scroll-margin-top: 88px;
}

.monthly-past-label,
.availability-past {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .26rem .46rem;
    font-size: .73rem;
    font-weight: 800;
    background: rgba(108, 117, 125, .10);
    color: #6c757d;
}

.availability-past {
    padding: .4rem .68rem;
    font-size: .8rem;
}

@media (max-width: 991.98px) {
    .monthly-calendar-wrap {
        overflow-x: auto;
    }

    .monthly-calendar-grid {
        min-width: 760px;
    }

    .monthly-day,
    .monthly-day-empty {
        min-height: 102px;
        aspect-ratio: auto;
    }
}

@media (max-width: 575.98px) {
    .monthly-calendar-toolbar {
        padding: .6rem;
    }

    .monthly-calendar-toolbar .btn {
        padding-left: .48rem;
        padding-right: .48rem;
        font-size: .69rem;
    }

    .monthly-calendar-title {
        font-size: .98rem;
    }

    .monthly-weekday {
        padding: .62rem .3rem;
        font-size: .72rem;
    }

    .monthly-day,
    .monthly-day-empty {
        min-height: 96px;
    }

    .monthly-day {
        padding: .45rem .48rem;
    }

    .monthly-day-number {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
        font-size: .8rem;
    }

    .monthly-today-badge {
        display: none;
    }

    .monthly-compact-status {
        font-size: .63rem;
        padding: .22rem .34rem;
    }
}
