/* =========================================
   Service Booking System - Premium Theme (Light Mode)
   ========================================= */

:root {
    --bg-main: #f8fafc;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-surface-solid: #ffffff;
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04);

    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.2);
    --secondary: #6366f1;

    --text-main: #0f172a;
    --text-muted: #64748b;

    --sidebar-width: 260px;
    --mobile-nav-height: 60px;
    --desktop-nav-height: 70px;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-surface);
    /* For a smoother light theme */
    background-image:
        radial-gradient(at 0% 0%, rgba(255, 255, 255, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 255, 255, 0.6) 0px, transparent 50%);
    background-attachment: fixed;
    /* Native App feel: allow vertical scroll and smooth touch scrolling */
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Base Bootstrap Overrides */
.card,
.panel-lite,
.offcanvas,
.modal-content,
.toast,
.list-group-item {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    color: var(--text-main);
    border-radius: 16px;
}

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

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

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: #60a5fa;
    text-shadow: 0 0 10px var(--primary-glow);
}

.btn {
    border-radius: 99px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    color: #fff;
}

.btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
}

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

textarea.form-control {
    min-height: 200px;
    resize: vertical;
}

/* Dashboard Top Navigation */
.dashboard-top-nav {
    height: var(--desktop-nav-height);
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 990;
    margin: 0 -2rem 2rem -2rem;
}

.search-bar-wrapper {
    flex: 1;
    max-width: 600px;
}

.search-bar-wrapper form {
    position: relative;
    width: 100%;
}

.search-bar-wrapper .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.search-bar-wrapper .search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.8rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.search-bar-wrapper .search-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    outline: none;
}

.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-profile-lite {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.user-profile-lite .user-name {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.1;
    text-transform: lowercase;
}

.user-profile-lite .user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Role Badges & Identity */
.role-badge {
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 999px;
    color: white;
    display: inline-block;
    line-height: 1;
    border: none;
}

.role-badge-staff { background: #2563eb; }
.role-badge-admin { background: #dc2626; }
.role-badge-customer { background: #7c3aed; }

.user-identity-name {
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: lowercase;
    margin-top: 3px;
    letter-spacing: 0.2px;
}

/* Mobile Search Icon */
.mobile-search-trigger {
    color: var(--text-main);
    font-size: 1.25rem;
    padding: 0.5rem;
}

/* Layout Structure */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--bg-surface-solid);
    border-right: 1px solid var(--glass-border);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
}

.nav-unread-badge {
    margin-left: auto;
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary);
}

.sidebar-nav a i {
    font-size: 1.2rem;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: calc(100vh - 2rem);
}

/* Mobile Nav Structure */
.mobile-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    height: var(--mobile-nav-height);
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .mobile-header {
        height: var(--desktop-nav-height);
        padding: 0 1.5rem;
    }
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-surface-solid);
    border-top: 1px solid var(--glass-border);
    padding: 0.5rem;
    z-index: 1000;
    justify-content: space-around;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
}

body.modal-open .mobile-bottom-nav {
    display: none !important;
}

/* Custom Mobile Modal Fixes */
@media (max-width: 767px) {
    .custom-mobile-modal {
        display: flex !important;
        align-items: center !important;
        min-height: calc(100% - 1rem) !important;
        margin: 0.5rem !important;
    }

    .custom-mobile-modal .modal-content {
        max-height: calc(100dvh - 1rem) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .custom-mobile-modal .modal-body {
        overflow-y: auto !important;
        flex: 1 !important;
    }
}

@media (min-width: 768px) {
    .custom-mobile-modal {
        display: flex;
        align-items: center;
        min-height: calc(100% - 3.5rem);
    }
}

.mobile-bottom-nav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 8px;
}

.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
}

.mobile-bottom-nav i {
    font-size: 1.25rem;
}

.mobile-unread-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 1.1rem;
    height: 1.1rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
    border: 2px solid var(--bg-surface-solid);
    pointer-events: none;
    z-index: 2;
}

.offcanvas-unread-dot {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.28rem;
}

.mobile-bottom-nav .nav-fab {
    background: var(--primary);
    color: #fff !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-24px);
    border: 5px solid var(--bg-surface-solid);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4) !important;
    padding: 0;
    margin: 0 10px;
}

.mobile-bottom-nav .nav-fab:hover {
    background: var(--primary-glow);
    transform: translateY(-26px);
}

.mobile-bottom-nav .nav-fab i {
    font-size: 1.8rem;
    color: #ffffff;
}


/* Responsive Adjustments */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 0;
        padding-bottom: calc(var(--mobile-nav-height) + 1rem);
    }

    .mobile-header {
        display: flex;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .responsive-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-showcase img {
        transform: none;
    }

    .service-card img {
        height: 190px;
    }
}

/* Native App Style Layouts */
.app-nav-bar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
    padding: 1rem;
    align-items: center;
    justify-content: space-between;
}

.app-nav-back {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-nav-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0;
}

/* iOS Style Settings Groups */
.app-list-group {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.app-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    background: transparent;
    transition: background 0.2s;
    text-decoration: none;
    gap: 1rem;
}

.app-list-item:last-child {
    border-bottom: none;
}

.app-list-item:active {
    background: var(--bg-surface);
}

.app-chevron {
    color: var(--text-muted);
    font-size: 1.2rem;
    opacity: 0.6;
}

@media (max-width: 991px) {
    .app-nav-bar {
        display: flex;
    }

    /* Transform specific elements to full-bleed lists on mobile */
    .mobile-full-bleed {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
}

/* Grids and Cards */
.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 0 15px var(--primary-glow);
    border-color: rgba(59, 130, 246, 0.3);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
    background: #eee;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.service-card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: auto;
}

/* Staff Profile / Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

.avatar-xl {
    width: 120px;
    height: 120px;
}

/* Badges / Status */
.badge-glass {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    color: var(--text-main);
    padding: 0.35em 0.75em;
    border-radius: 99px;
    font-weight: 500;
}

.badge-status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.2);
}

/* Decorative utils */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
}

.stat-chip {
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.stat-chip h6 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-chip p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Role-aware dashboard/page sections */
.role-hero {
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.role-hero-home {
    padding: 1.75rem;
}

.role-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.3rem 0.62rem;
    letter-spacing: 0.02em;
}

.role-hero-copy {
    color: var(--text-muted);
    font-size: 1.04rem;
    max-width: 560px;
}

.role-panel {
    border-radius: 18px;
}

.staff-availability-lists {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.staff-leave-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.staff-leave-date {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.staff-leave-status {
    white-space: nowrap;
    flex-shrink: 0;
}

.staff-slots-section {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    padding: 1rem 0;
}

.booking-calendar-card .card-body {
    padding: 0 !important;
}

.booking-calendar-shell {
    padding: 1rem 0.25rem !important;
    margin: 0 -0.5rem !important;
}

.staff-section-title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.staff-slots-grid {
    gap: 0.55rem !important;
}

.staff-slot-form .staff-slot-btn {
    min-width: 170px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.availability-subpanel {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    padding: 0.9rem 0.9rem 0.45rem;
    min-height: 100%;
}

.availability-list .list-group-item {
    border-color: rgba(100, 116, 139, 0.24) !important;
}

.availability-list-item {
    padding-top: 0.72rem !important;
    padding-bottom: 0.72rem !important;
}

.availability-empty {
    background: rgba(248, 250, 252, 0.95) !important;
    border: 1px dashed rgba(148, 163, 184, 0.38) !important;
    border-radius: 12px;
    padding: 0.95rem 0.9rem !important;
}

.staff-leave-date {
    font-weight: 600;
}

.role-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.kpi-card {
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    padding: 0.9rem;
    height: 100%;
}

.kpi-card h6 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--text-main);
}

.kpi-card p {
    margin: 0.24rem 0 0;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.84rem;
}

.kpi-card-strong {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(99, 102, 241, 1));
    border-color: rgba(59, 130, 246, 0.5);
}

.kpi-card-strong h6,
.kpi-card-strong p {
    color: #fff;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.7rem;
}

.dashboard-action-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: #fff;
    color: var(--text-main);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.dashboard-action-btn i {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    font-size: 1rem;
}

.dashboard-action-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.22);
    color: var(--text-main);
}

.service-admin-create {
    padding: 1.2rem;
}

.service-admin-create form {
    align-items: flex-end;
}

/* Search and Filter Controls */
.search-filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.dashboard-table-controls {
    margin-bottom: 0.35rem;
}

.dashboard-filter-status {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.message-list {
    display: grid;
    gap: 0.7rem;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.message-item {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem;
    background: #fff;
}

.message-check-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.message-toolbar {
    padding: 0.35rem 0.1rem 0.15rem;
    border-bottom: 1px dashed rgba(100, 116, 139, 0.25);
}

.service-admin-staff-select {
    min-width: 200px;
}

.service-mobile-card {
    padding: 0.95rem;
}

.staff-pills-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.staff-pill-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    background: #f9fafb;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
}

.staff-pill-toggle:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-1px);
}

.staff-pill-toggle[data-assigned="true"] {
    background: #dbeafe;
    border-color: #3b82f6;
    color: #1e40af;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.staff-pill-toggle[data-assigned="true"]:hover {
    background: #bfdbfe;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.staff-pill-icon {
    display: inline-flex;
    font-size: 1rem;
}

.staff-pill-toggle.saving {
    opacity: 0.7;
    pointer-events: none;
}

.staff-pill-toggle.saving .staff-pill-icon i {
    animation: spin 0.8s linear infinite;
}

.staff-pill-toggle.saved {
    border-color: #10b981;
    background: #dcfce7;
}

.staff-pill-toggle.error {
    border-color: #ef4444;
    background: #fee2e2;
    color: #991b1b;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hero-showcase {
    perspective: 1000px;
}

.hero-showcase img {
    transform: rotateY(-4deg) rotateX(3deg);
    transition: transform 0.35s ease;
}

.hero-showcase:hover img {
    transform: rotateY(-2deg) rotateX(1deg) translateY(-4px);
}

/* Guest landing / staff directory mobile responsiveness */
.hero-block {
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.5rem;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
}

.staff-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.staff-directory-card {
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.staff-directory-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.staff-directory-head img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 18px;
    flex: 0 0 auto;
}

.staff-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.staff-meta-chip,
.staff-key-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary);
}

.staff-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 767px) {
    .main-content {
        padding: 0.85rem;
        padding-bottom: calc(58px + env(safe-area-inset-bottom) + 0.85rem);
    }

    .responsive-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .hero-block {
        padding: 0.9rem;
    }

    .home-hero,
    .role-hero-home {
        padding: 0.9rem !important;
    }

    .staff-directory-head {
        flex-direction: column;
        align-items: stretch;
    }

    .staff-directory-head img {
        width: 100%;
        height: 180px;
    }

    .staff-directory-card {
        padding: 0.9rem;
    }

    .service-card img {
        height: 180px;
    }

    .service-card-body {
        padding: 1rem 0;
    }

    .booking-calendar-card .card-body {
        padding: 0 !important;
    }

    .booking-calendar-shell {
        padding: 1rem 0.25rem !important;
        margin: 0 -0.5rem !important;
    }

    .service-card-title {
        font-size: 1.1rem;
    }

    .hero-showcase img {
        transform: none;
    }

    .mobile-bottom-nav {
        padding: 0.35rem 0.45rem;
        gap: 0.15rem;
    }

    .mobile-bottom-nav a {
        padding: 0.4rem 0.15rem;
        font-size: 0.68rem;
        min-width: 0;
    }

    .mobile-bottom-nav .nav-fab {
        width: 52px;
        height: 52px;
        transform: translateY(-20px);
        margin: 0 6px;
    }

    .mobile-bottom-nav .nav-fab:hover {
        transform: translateY(-21px);
    }

    .staff-leave-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .staff-leave-status {
        padding-left: 1.6rem;
    }

    .staff-slot-form .staff-slot-btn {
        min-width: 0;
        width: 100%;
    }

    .staff-slot-form {
        flex: 1 1 calc(50% - 0.4rem);
    }

    .availability-subpanel {
        padding: 0.8rem 0.8rem 0.4rem;
    }

    .staff-meta-chip,
    .staff-key-tag {
        font-size: 0.75rem;
        padding: 0.35rem 0.62rem;
    }
}

/* Compact login layout */
.auth-wrap-compact {
    max-width: 640px;
    margin: 0 auto;
}

.auth-wrap-compact .auth-split-card {
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--bg-surface);
    box-shadow: var(--glass-shadow);
}

.auth-wrap-compact .auth-form-area {
    padding: 1.2rem 1.2rem 1rem;
}

.auth-wrap-compact .auth-back-link {
    display: block;
    text-align: center;
    margin-bottom: 0.55rem;
}

.auth-wrap-compact h3 {
    margin-bottom: 0.2rem;
}

.auth-wrap-compact .text-muted.mb-4 {
    margin-bottom: 0.9rem !important;
}

.auth-wrap-compact .mb-3 {
    margin-bottom: 0.7rem !important;
}

.auth-wrap-compact .btn.w-100.py-2 {
    padding-top: 0.58rem !important;
    padding-bottom: 0.58rem !important;
}

@media (max-width: 576px) {
    .auth-wrap-compact {
        max-width: 100%;
    }

    .auth-wrap-compact .auth-form-area {
        padding: 0.95rem;
    }
}

/* Modern profile page */
.profile-modern-shell {
    display: grid;
    gap: 0.95rem;
}

.profile-modern-header {
    padding: 1.15rem;
    border-radius: 18px;
}

.profile-modern-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0.95rem;
    align-items: start;
}

.profile-side-card,
.profile-main-card {
    border-radius: 18px;
    padding: 1rem 0;
}

.booking-calendar-card .card-body {
    padding: 0 !important;
}

.booking-calendar-shell {
    padding: 1rem 0.25rem !important;
    margin: 0 -0.5rem !important;
}

.profile-photo-wrap {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-photo-preview,
.profile-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff, #eef3fb);
}

.profile-photo-placeholder {
    display: grid;
    place-items: center;
    color: var(--text-muted);
}

.profile-photo-placeholder i {
    font-size: 2rem;
}

.profile-photo-delete {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: #ef4444;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.24);
}

.profile-section-title {
    font-size: 0.79rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.55rem;
}

.profile-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.profile-main-card .form-control,
.profile-side-card .form-control {
    background: #fff !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    border-radius: 12px;
}

.profile-save-wrap {
    margin-top: 1rem;
}

@media (max-width: 991px) {
    .profile-modern-grid {
        grid-template-columns: 1fr;
    }

    .profile-side-card {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.9rem;
        align-items: center;
    }

    .profile-side-card .form-label,
    .profile-side-card .invalid-feedback,
    .profile-side-card .text-muted.small {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {

    .profile-modern-header,
    .profile-side-card,
    .profile-main-card {
        padding: 0.9rem;
    }

    .profile-field-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
}

/* Analytics dashboard */
.analytics-shell .main-content {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.05), transparent 28%),
        radial-gradient(circle at top right, rgba(99, 102, 241, 0.06), transparent 26%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.analytics-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.3rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.84) 56%, rgba(79, 70, 229, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
}

.analytics-hero h3,
.analytics-hero .text-muted {
    color: rgba(255, 255, 255, 0.88) !important;
}

.analytics-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    margin-bottom: 0.55rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.analytics-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.analytics-mini-metric {
    min-width: 104px;
    padding: 0.75rem 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.analytics-mini-metric span {
    display: block;
    font-size: 0.76rem;
    opacity: 0.8;
}

.analytics-mini-metric strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1.1;
}

.analytics-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 700;
    white-space: nowrap;
}

.analytics-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.analytics-stat-card::after {
    content: '';
    position: absolute;
    inset: auto -18px -18px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 68%);
    pointer-events: none;
}

.analytics-stat-card p {
    margin-bottom: 0.3rem;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.analytics-stat-card h3 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 800;
}

.analytics-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    margin-bottom: 0.7rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.16);
}

.analytics-stat-card.stat-month .analytics-stat-icon {
    background: linear-gradient(135deg, #0f766e, #2563eb);
}

.analytics-stat-card.stat-completed .analytics-stat-icon {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.analytics-stat-card.stat-pending .analytics-stat-icon {
    background: linear-gradient(135deg, #d97706, #fb7185);
}

.analytics-panel {
    border-radius: 22px;
}

.analytics-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.analytics-panel-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.analytics-chart-wrap {
    position: relative;
    width: 100%;
}

.analytics-chart-large {
    min-height: 320px;
}

.analytics-chart-donut {
    min-height: 280px;
}

.analytics-status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.analytics-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    font-size: 0.84rem;
    font-weight: 700;
    background: #f8fafc;
    color: var(--text-main);
}

.analytics-pill.pending {
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
}

.analytics-pill.in-progress {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.analytics-pill.completed {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.analytics-pill.cancelled {
    background: rgba(239, 68, 68, 0.12);
    color: #991b1b;
}

.analytics-status-stack {
    display: grid;
    gap: 0.9rem;
}

.analytics-status-item {
    padding: 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.92));
}

.analytics-status-item label {
    font-weight: 800;
}

.analytics-table thead th {
    background: rgba(59, 130, 246, 0.05) !important;
}

@media (max-width: 991px) {
    .analytics-hero {
        flex-direction: column;
    }

    .analytics-hero-meta {
        width: 100%;
        justify-content: flex-start;
    }

    .analytics-chart-large,
    .analytics-chart-donut {
        min-height: 260px;
    }
}

@media (max-width: 767px) {

    .analytics-hero,
    .analytics-panel,
    .analytics-stat-card {
        border-radius: 18px;
    }

    .analytics-hero {
        padding: 1rem 0;
    }

    .booking-calendar-card .card-body {
        padding: 0 !important;
    }

    .booking-calendar-shell {
        padding: 1rem 0.25rem !important;
        margin: 0 -0.5rem !important;
    }

    .analytics-hero-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .analytics-hero-badge,
    .analytics-mini-metric {
        width: 100%;
        justify-content: center;
    }

    .analytics-mini-metric {
        min-width: 0;
    }

    .analytics-stat-card h3 {
        font-size: 1.65rem;
    }

    .analytics-panel-head {
        flex-direction: column;
    }

    .analytics-status-pills {
        gap: 0.45rem;
    }

    .analytics-pill {
        width: 100%;
        justify-content: center;
    }

    .analytics-chart-large,
    .analytics-chart-donut {
        min-height: 230px;
    }
}

/* Tables Overrides */
.table {
    color: var(--text-main);
    margin-bottom: 0;
}

.table-dark {
    --bs-table-bg: transparent;
}

.table th,
.table td {
    background-color: transparent !important;
    border-bottom-color: rgba(0, 0, 0, 0.05);
    padding: 0.65rem 0.8rem;
    vertical-align: middle;
    font-size: 0.88rem;
}

.table thead th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.table-responsive-stack {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}



/* Flatpickr Calendar Customization moved to flatpickr-custom.css */

/* Booking Page Redesign */
.booking-page-shell {
    display: grid;
    gap: 1.25rem;
}

.booking-page-hero {
    padding: 1.4rem 1.5rem;
}

.booking-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
    padding: 0.65rem 0.9rem;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary);
    font-weight: 700;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.booking-stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.booking-stepper button {
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--text-muted);
    font-weight: 800;
    padding: 0.8rem 1rem;
    cursor: default !important;
    pointer-events: none;
}

.booking-stepper button.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.18);
}

.booking-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.95fr);
    gap: 1.25rem;
    align-items: start;
}

.booking-main-column {
    display: grid;
    gap: 1.1rem;
}

.booking-sidebar-column {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 1.25rem;
    display: grid;
    gap: 1rem;
}

.booking-flow-card,
.summary-card,
.detail-panel-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    padding: 1.25rem;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.booking-service-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 0.75rem;
}

.booking-service-hint {
    margin-top: 0.55rem;
}

.booking-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.booking-service-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.booking-service-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.booking-service-card-inner {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    height: 100%;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.booking-service-card:hover .booking-service-card-inner {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 16px 30px rgba(59, 130, 246, 0.1);
}

.booking-service-card.selected .booking-service-card-inner {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 24px 48px rgba(59, 130, 246, 0.18), 0 6px 18px rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.09), #ffffff 28%);
    transform: translateY(-4px) scale(1.01);
}

.booking-service-card.selected .booking-service-card-inner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 6px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 1), rgba(99, 102, 241, 1));
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.12);
}

.booking-service-topline,
.booking-service-bottomline,
.detail-list div,
.summary-stack div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.booking-service-name {
    font-weight: 800;
    color: var(--text-main);
}

.booking-service-meta,
.booking-service-description,
.booking-service-footer-note,
.summary-notes {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.booking-service-description {
    min-height: 3rem;
}

.service-availability-badge,
.booking-slot-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    white-space: nowrap;
}

.service-availability-badge.is-empty {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

.booking-page-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: stretch;
}

.booking-header-column {
    grid-column: 1 / -1;
}

/* Single column stack for Step 1 */
.booking-page-grid:has(.wizard-step[data-step="1"].active) {
    display: flex;
    flex-direction: column;
}

.booking-page-grid:has(.wizard-step[data-step="1"].active) .booking-main-column,
.booking-page-grid:has(.wizard-step[data-step="1"].active) .booking-sidebar-column {
    width: 100%;
    max-width: 100%;
}

.booking-page-grid:has(.wizard-step[data-step="1"].active) .sidebar-sticky {
    position: static;
    height: auto;
}

.booking-main-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.wizard-step.active {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.booking-sidebar-column {
    position: relative;
    height: 100%;
}

.sidebar-sticky {
    position: sticky;
    top: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.75rem;
    height: calc(100% - 0.75rem);
}

.booking-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.booking-schedule-grid {
    display: block;
    width: 100%;
}

.booking-calendar-card {
    width: 100%;
}

.booking-detail-panel {
    display: grid;
    gap: 1rem;
}

.booking-calendar-shell {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.04), rgba(99, 102, 241, 0.02));
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: 28px;
    padding: 1.5rem;
    height: 100%;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.calendar-toolbar-title {
    font-weight: 800;
    font-size: 1.05rem;
    text-align: center;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
}

.calendar-weekdays {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-grid {
    grid-auto-rows: 100px;
}

.calendar-empty,
.calendar-day {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
}

.calendar-empty {
    background: transparent;
    border: none;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    font-weight: 800;
    color: var(--text-main);
    padding: 0.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.calendar-day.is-available:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.08);
}

.calendar-day.is-today {
    border: 2px solid var(--primary);
    position: relative;
}

.calendar-day.is-today::after {
    content: "•";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: var(--primary);
}

@media (min-width: 992px) {
    .calendar-day.is-today::after {
        content: "Today";
        position: absolute;
        top: 4px;
        right: 4px;
        font-size: 0.55rem;
        text-transform: uppercase;
        background: var(--primary);
        color: #fff;
        padding: 1px 4px;
        border-radius: 4px;
        font-weight: 900;
        transform: none;
        left: auto;
        bottom: auto;
    }
}

.calendar-day.is-selected {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(59, 130, 246, 0.22);
}

.calendar-day.is-unavailable {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.calendar-day-number {
    font-size: 1.05rem;
    line-height: 1;
}

.calendar-day-label {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.9;
}

.time-slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.time-slot-btn {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    color: var(--text-main);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.time-slot-btn.is-available:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.08);
}

.time-slot-btn.is-selected {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-color: transparent;
}

.time-slot-btn.is-unavailable {
    background: #f8fafc;
    color: #94a3b8;
}

.booking-slot-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 22px;
    padding: 1rem 0;
}

.booking-calendar-card .card-body {
    padding: 0 !important;
}

.booking-calendar-shell {
    padding: 1rem 0.25rem !important;
    margin: 0 -0.5rem !important;
}

.booking-detail-panel {
    position: sticky;
    top: 1.25rem;
}

.detail-list,
.summary-stack,
.booking-review {
    display: grid;
    gap: 0.75rem;
}

.detail-list div,
.summary-stack div,
.booking-review div {
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.detail-list div:last-child,
.summary-stack div:last-child,
.booking-review div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-list span,
.summary-stack span,
.booking-review strong {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-main);
    margin-top: 0.55rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.legend-dot.available {
    background: #22c55e;
}

.legend-dot.selected {
    background: var(--primary);
}

.legend-dot.unavailable {
    background: #cbd5e1;
}

.legend-dot.partial {
    background: #f59e0b;
}

.legend-dot.booked-out {
    background: #ea580c;
}

.legend-dot.closed {
    background: #ef4444;
}

.calendar-day.is-open {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.18);
    color: #166534;
}

.calendar-day.is-partial,
.calendar-day.is-booked {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.22);
    color: #92400e;
}

.calendar-day.is-booked-out {
    background: rgba(234, 88, 12, 0.11);
    border-color: rgba(234, 88, 12, 0.24);
    color: #9a3412;
}

.calendar-day.is-closed,
.calendar-day.is-past {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.22);
    color: #991b1b;
}

.calendar-day.is-closed .calendar-day-label,
.calendar-day.is-past .calendar-day-label,
.calendar-day.is-partial .calendar-day-label,
.calendar-day.is-booked .calendar-day-label,
.calendar-day.is-booked-out .calendar-day-label,
.calendar-day.is-open .calendar-day-label {
    opacity: 1;
}

.calendar-day.is-closed:disabled,
.calendar-day.is-booked-out:disabled,
.calendar-day.is-past:disabled {
    cursor: not-allowed;
    opacity: 1;
}

/* Legend removed as requested */

.confirmation-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-actions .d-none {
    display: none !important;
}

/* On mobile/tablet keep actions in normal flow under the last card */
@media (max-width: 991px) {
    .booking-page-grid {
        padding-bottom: 2rem;
    }

    .booking-actions {
        margin-top: 2rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        box-sizing: border-box;
    }

    .booking-actions .dashboard-top-nav {
        left: 0;
        height: 70px;
        padding: 0 1rem;
    }

    .booking-actions .btn {
        flex: 1;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        border-radius: 12px;
    }
}

@media (max-width: 420px) {

    /* Extra compact staff form on very small screens */
    .staff-job-update-form .form-select,
    .staff-job-update-form .btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }

    .staff-job-update-form .btn {
        padding: 0.4rem 0.5rem;
    }
}

/* Selection summary visibility */
.detail-panel-card {
    display: block;
}

.confirmation-copy {
    color: var(--text-muted);
}

.confirmation-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-weight: 600;
    color: var(--text-main);
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

@media (max-width: 991px) {

    .booking-page-grid,
    .booking-schedule-grid,
    .confirmation-grid,
    .booking-calendar-card {
        grid-template-columns: 1fr;
    }

    .booking-detail-panel,
    .sidebar-sticky {
        position: static;
        height: auto;
        max-height: none;
    }

    .booking-service-controls {
        grid-template-columns: 1fr;
    }

    .booking-service-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   GUEST MARKETPLACE & HOME PAGE UI (Isolated Styles)
   ========================================================================== */

/* Hero Section */
.hero-marketplace {
    padding-top: 60px;
    padding-bottom: 60px;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05), transparent 30%),
        radial-gradient(circle at 10% 80%, rgba(37, 99, 235, 0.04), transparent 30%),
        #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.hero-marketplace h1 {
    letter-spacing: -1px;
    line-height: 1.1;
}

.discovery-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.hero-search-container {
    background: white;
    padding: 6px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.hero-search-container input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.trust-icons .trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Category Slider */
.category-pills-slider {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-pills-slider::-webkit-scrollbar {
    display: none;
}

.category-pill-btn {
    flex: 0 0 auto;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.category-pill-btn:hover,
.category-pill-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* High-Density Service Grid */
.marketplace-grid {
    display: grid;
    gap: 1.25rem;
}

@media (max-width: 767px) {
    .marketplace-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .marketplace-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.service-card-modern {
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.service-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.service-card-image-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.service-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.service-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.service-card-price {
    margin-top: auto;
    font-weight: 800;
    color: var(--text-main);
}

/* Auth & Guest Shell Background */
.guest-shell {
    background-color: #f8fbff;
    background-image: radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.05) 0, transparent 50%),
        radial-gradient(at 50% 0%, rgba(37, 99, 235, 0.03) 0, transparent 50%);
}

.guest-shell .extra-small {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Floating Pill Header (Guest) */
.header-container header {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.header-container .navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.header-container .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header-container .navbar-nav .nav-link:hover::after {
    width: 20px;
}

/* General Auth Layout Optimization */
.guest-shell .auth-wrap {
    padding-top: 20px !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-height: calc(100vh - 20px) !important;
}

.guest-shell .auth-split-card {
    display: flex !important;
    flex-direction: row !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1080px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Page Specific Overrides */
.guest-shell .login-wrap {
    padding-top: 100px !important; /* Add space from top for login */
    align-items: center !important; /* Center login card vertically */
    min-height: calc(100vh - 100px) !important;
}

.guest-shell .register-wrap {
    padding-top: 180px !important; /* SIGNIFICANT GAP FROM HEADER */
    align-items: flex-start !important;
    min-height: calc(100vh - 180px) !important;
}

.guest-shell .register-wrap .auth-split-card {
    min-height: 520px !important; /* Reduced height to fit without scroll */
    max-width: 1000px !important; /* Reduced width as requested earlier */
}

.guest-shell .register-wrap .auth-form-area {
    padding: 1.5rem 2.5rem !important; /* Tighter vertical padding */
}

.guest-shell .register-wrap .mb-3,
.guest-shell .register-wrap .mb-4 {
    margin-bottom: 0.55rem !important; /* Minimal gap between fields */
}

/* Force Password Page Specific Tweaks */
.guest-shell    .auth-wrap.force-pw-container {
        padding: 0 !important;
        margin-top: 60px !important;
        height: calc(100vh - 120px) !important;
}

.force-pw-container .auth-split-card {
    min-height: 520px !important;
    max-width: 1080px !important;
}

.force-pw-container .auth-form-area {
    padding: 1.5rem 2.5rem !important;
}

.force-pw-container .mb-3 {
    margin-bottom: 0.55rem !important;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.force-pw-container .auth-tips-box {
    padding: 0.6rem 1rem !important;
    margin-top: 0.25rem !important;
}

.force-pw-container h3 {
    margin-bottom: 0.25rem !important;
}

.force-pw-container p.text-muted {
    margin-bottom: 1.5rem !important;
}

@media (max-width: 768px) {
    .guest-shell .auth-wrap {
        padding: 40px 0.75rem 20px !important; /* Significantly reduced top padding */
        min-height: 100vh !important;
        height: 100vh !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .guest-shell .auth-split-card {
        border-radius: 24px !important;
        max-height: 92vh !important;
        margin: 0 !important;
        width: 100% !important;
        flex-direction: column !important;
        max-width: 100% !important;
        min-height: auto;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    }
    
    .guest-shell .auth-image-area {
        display: none !important; 
    }
    
    .guest-shell .auth-form-area {
        padding: 1.25rem 1.5rem !important;
    }

    .guest-shell h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }

    .guest-shell p.text-muted {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }

    .auth-form-grid .mb-3, 
    .auth-form-grid .mb-4 {
        margin-bottom: 0.75rem !important; /* Tighten field spacing */
    }

    .guest-shell .form-control {
        height: 48px !important; /* Slightly shorter inputs */
        font-size: 0.9rem !important;
    }

    .guest-shell .btn-primary {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 48px !important;
        padding: 0 !important;
    }

    .auth-tips-box {
        padding: 0.5rem !important;
        font-size: 0.75rem !important;
    }

    .auth-tips-list li {
        font-size: 0.75rem !important;
        margin-bottom: 2px !important;
    }
    
    .force-pw-container .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    .force-pw-container .auth-tips-box {
        padding: 0.5rem !important;
        font-size: 0.75rem !important;
    }
}



.guest-shell .auth-for.mobile-header {
    height: 60px;
    padding: 0 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guest-shell .auth-image-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.guest-shell .form-control,
.guest-shell input[type="text"],
.guest-shell input[type="password"],
.guest-shell input[type="email"],
.guest-shell input[type="tel"] {
    height: 48px;
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    color: #0f172a;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
    text-align: center;
}

.guest-shell .form-control:focus,
.guest-shell input:focus {
    background: #ffffff;
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 4px 12px rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}

.guest-shell .form-control::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
    opacity: 0.6;
    text-align: center;
}

.guest-shell .form-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    text-align: center;
    width: 100%;
}

.guest-shell .mb-3 {
    margin-bottom: 0.85rem !important;
}

/* Password Toggle Integration - Inside Icon Approach */
.password-field-group {
    position: relative !important;
    display: block !important; /* Overriding input-group flex */
}

.password-field-group .form-control {
    border-radius: 50px !important;
    border: 1px solid #e2e8f0 !important;
    padding-right: 3.5rem !important;
    width: 100% !important;
}

.password-toggle-btn {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    padding: 0 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.password-toggle-btn.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.password-toggle-btn:hover {
    background: rgba(59, 130, 246, 0.05) !important;
    color: #3b82f6 !important;
}

.guest-shell .btn-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50px !important;
    height: 48px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 0.95rem !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3) !important;
}

.guest-shell .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.4) !important;
}


.guest-shell .invalid-feedback {
    text-align: center;
    width: 100%;
}

/* Removed redundant btn-primary definition */

/* Redundant mobile padding block removed */

/* Marketplace Grid Fixes */
.marketplace-grid .service-card-wrapper {
    height: 100%;
}

.hero-image-frame {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.5s;
}

.hero-image-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.auth-form-grid {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.auth-form-grid .mb-2,
.auth-form-grid .mb-3 {
    margin-bottom: 1.25rem !important;
}

/* Hero Background Cross-fade Slider */
.hero-marketplace {
    position: relative;
    height: calc(100vh + 20px);
    /* Compensate for margin-top to achieve perfect 100% fit */
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #000;
    overflow: visible !important;
    /* Changed from hidden to allow search dropdown to overflow */
    margin-top: -20px;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
}

.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 25%;
    /* Further shifted to cut more of the top and maximize staff visibility */
    opacity: 0;
    animation: hero-fade 24s infinite;
}

.hero-slide:nth-child(1) {
    background-image: url('../img/hero-tech.png');
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    background-image: url('../img/s-cleaning.png');
    animation-delay: 6s;
}

.hero-slide:nth-child(3) {
    background-image: url('../img/s-electrical.png');
    animation-delay: 12s;
}

.hero-slide:nth-child(4) {
    background-image: url('../img/s-plumbing.png');
    animation-delay: 18s;
}

@keyframes hero-fade {
    0% {
        opacity: 0;
        transform: scale(1.02);
    }

    5% {
        opacity: 1;
    }

    20% {
        opacity: 1;
    }

    25% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        opacity: 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Deeper gradient on the left half for maximum text visibility */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0) 70%);
    z-index: 2;
}

/* Infinite Horizontal Highlights Slider */
.hero-highlights-infinite {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 18px 0;
    overflow: hidden;
    z-index: 15;
}

.highlights-track {
    display: flex;
    width: max-content;
    animation: infinite-scroll 40s linear infinite;
}

.highlight-item-horizontal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 50px;
    white-space: nowrap;
}

.highlight-item-horizontal i {
    font-size: 1.4rem;
    color: var(--primary);
}

.highlight-item-horizontal .val {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
}

.highlight-item-horizontal .lbl {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

@keyframes infinite-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pause on hover for better readability */
.hero-highlights-infinite:hover .highlights-track {
    animation-play-state: paused;
}

/* Mobile Specific Enhancements */
@media (max-width: 768px) {
    .hero-marketplace {
        height: 100vh;
        margin-top: -10px;
    }

    .hero-marketplace h1 {
        font-size: 2.5rem !important;
        letter-spacing: -1px !important;
        line-height: 1.1 !important;
    }

    .hero-marketplace p {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 2rem !important;
    }

    .hero-text-card {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        margin-top: 1rem !important;
        background: rgba(0, 0, 0, 0.15) !important;
        backdrop-filter: blur(5px) !important;
    }

    .hero-search-wrapper {
        margin-top: -10px;
    }

    .glass-search-container {
        padding: 4px !important;
    }

    .glass-search-container .btn {
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 576px) {
    /* Mobile specific search adjustments */
}

@media (min-width: 992px) {
    .service-card .service-img {
        height: 220px !important;
    }

    .service-card .service-name {
        font-size: 1.15rem !important;
        letter-spacing: -0.5px;
    }

    .service-card .service-price {
        font-size: 1.1rem !important;
    }
}

/* Service Card Grid Optimization for 2x2 Mobile View */
@media (max-width: 768px) {
    .service-card .service-img {
        height: 120px !important;
    }

    .service-card .service-name {
        font-size: 0.85rem !important;
        line-height: 1.2;
    }

    .service-card .service-price {
        font-size: 0.85rem !important;
    }

    .guest-services-grid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .guest-services-grid>.col-6 {
        padding-left: 5px;
        padding-right: 5px;
    }

    .w-100-mobile {
        width: 100% !important;
    }
}

/* Native App UI: Ultra-slim Navbar for mobile */
@media (max-width: 991px) {
    .navbar {
        padding: 0 15px !important;
        height: 50px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        box-shadow: none !important;
        /* No boxed shadow */
    }

    .navbar-brand img {
        height: 18px !important;
    }

    .navbar-brand span {
        font-size: 1rem !important;
    }
}

/* Native App UI: Large Flat Header for mobile */
@media (max-width: 991px) {
    .navbar {
        height: 56px !important;
        min-height: 56px !important;
        padding: 0 15px !important;
        background: #ffffff !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
        border-radius: 0 !important;
        /* Flat edges */
        margin: 0 !important;
        width: 100% !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        align-items: center !important;
        z-index: 2000 !important;
    }

    .navbar-brand {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
    }

    .navbar-brand span {
        font-size: 1.25rem !important;
        font-weight: 800 !important;
    }

    .navbar-brand img {
        height: 26px !important;
        margin-right: 12px !important;
    }

    .hero-marketplace {
        padding-top: 56px !important;
        /* Fixed Header Space */
        min-height: calc(100vh - 121px) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .hero-marketplace .row {
        align-items: flex-start !important;
        height: auto !important;
        margin-top: -180px !important;
        /* Subtler upward shift */
        transform: scale(0.9);
        /* Comfortable scale for mobile readability */
        transform-origin: top center;
    }

    .hero-marketplace .container {
        height: auto !important;
        padding-top: 0 !important;
    }

    .hero-content {
        position: relative !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        width: 100% !important;
        z-index: 10 !important;
    }

    .hero-content h1 {
        font-size: 2.6rem !important;
        /* Increased heading size */
        margin-top: 10px !important;
        line-height: 1.1 !important;
    }

    .hero-content .hero-subtitle {
        font-size: 1.1rem !important;
        /* Increased subtitle size */
        margin-bottom: 15px !important;
    }
}

/* Native App UI: Refined Bottom Navigation */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff !important;
        height: 65px !important;
        /* Standard app height */
        border-radius: 0 !important;
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 0 10px !important;
        z-index: 2100;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .mobile-nav-item {
        color: #94a3b8 !important;
        /* Muted inactive */
        font-size: 0.65rem !important;
        font-weight: 700 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        transition: none !important;
        /* No stickiness */
        position: relative;
        height: 100%;
        justify-content: center;
        flex: 1;
        background: transparent !important;
        /* Force transparent */
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
        /* No mobile tap grey box */
    }

    .mobile-nav-item:hover,
    .mobile-nav-item:focus,
    .mobile-nav-item:active {
        background: transparent !important;
        color: #94a3b8 !important;
    }

    /* Active Indicator (Top Bar) */
    .mobile-nav-item.active {
        color: var(--primary) !important;
    }

    .mobile-nav-item.active::after {
        content: '';
        position: absolute;
        top: 0;
        left: 20%;
        right: 20%;
        height: 3px;
        background: var(--primary);
        border-radius: 0 0 4px 4px;
    }

    .mobile-nav-item i {
        font-size: 1.25rem !important;
        margin-bottom: 2px !important;
    }

    .mobile-nav-item span {
        display: block !important;
        line-height: 1;
    }

    /* Native App UI: Infinity Slider */
    .hero-highlights-infinite {
        position: absolute !important;
        bottom: 55px !important;
        /* Perfect middle ground positioning */
        left: 0 !important;
        right: 0 !important;
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding: 10px 0 !important;
        z-index: 20 !important;
        display: block !important;
    }

    .hero-highlights-infinite .highlight-item-horizontal {
        color: white !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
}

/* Service Card Hover Effect */
.service-card:hover {
    transform: translateY(-4px) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.3) !important;
    background: #ffffff !important;
}

.service-card:hover .service-img {
    transform: scale(1.08);
}

.service-card:hover .service-name {
    color: var(--primary) !important;
}

.service-card .service-img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Infinity Slider: High-end Glassmorphism for Desktop (within Hero) */
@media (min-width: 992px) {
    .hero-highlights-infinite {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 0;
        z-index: 20;
    }

    .hero-highlights-infinite .highlight-item-horizontal {
        color: white !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}


/* Premium Auth System: Split Card Layout */
.auth-page-main {
    min-height: 100vh;
    padding-top: 100px !important; /* Increased to ensure clearance of fixed header */
    background: #f8faff;
}

.auth-wrap {
    min-height: calc(100vh - 121px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f8faff;
    padding: 30px 20px;
}

@media (min-width: 992px) {
    body.guest-shell, html:has(body.guest-shell) {
        overflow: hidden !important;
        height: 100vh !important;
        max-height: 100vh !important;
    }
    body.guest-shell .register-wrap {
        padding-top: 35px !important; 
        align-items: flex-start !important;
        padding-bottom: 0 !important;
        overflow: hidden !important;
        max-height: 100vh !important;
    }
    body.guest-shell .login-wrap {
        padding-top: 65px !important; 
        align-items: flex-start !important;
    }
    body.guest-shell .register-wrap .auth-split-card {
        max-width: 1000px !important;
        margin-bottom: 50px !important;
    }
    
    /* Registration Compaction for Desktop */
    body.guest-shell .register-wrap .auth-form-area {
        padding: 15px 30px !important;
    }
    body.guest-shell .register-wrap .auth-form-area h3 {
        font-size: 1.5rem !important;
        margin-bottom: 5px !important;
    }
    body.guest-shell .register-wrap .auth-form-area .text-muted.small.mb-4 {
        margin-bottom: 10px !important;
    }
    body.guest-shell .register-wrap .auth-form-area .mb-3 {
        margin-bottom: 8px !important;
    }
    body.guest-shell .register-wrap .auth-form-area .mb-4 {
        margin-bottom: 12px !important;
    }
    body.guest-shell .register-wrap .auth-form-area .form-control {
        padding: 7px 12px !important;
    }
    body.guest-shell .register-wrap .auth-form-area .mt-4 {
        margin-top: 10px !important;
    }
}

.auth-split-card {
    display: flex !important;
    flex-direction: row !important;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    width: 100% !important;
    max-width: 1100px !important;
    min-height: 380px;
}

.auth-image-area {
    flex: 1;
    background-color: #2563eb;
    /* Fallback color */
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    background-size: cover;
    background-position: center;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 15px 25px;
    color: #ffffff !important;
}

.auth-image-register {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("../img/register-premium.png") !important;
}

.auth-image-login {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("../img/auth-premium.png") !important;
}

.auth-image-area h2 {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #ffffff !important;
}

.auth-image-area p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
    color: #ffffff !important;
}

.auth-form-area {
    flex: 1;
    padding: 15px 35px;
    background: #ffffff;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.auth-form-area h3 {
    font-weight: 800;
    color: #1a1a1a;
    font-size: 1.8rem;
}

.auth-form-area .form-control {
    background: #f4f7fe;
    border: 2px solid transparent;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-form-area .form-control:focus {
    background: #ffffff;
    border-color: #4e73df;
    box-shadow: 0 8px 20px rgba(78, 115, 223, 0.1);
}


/* Mobile Responsiveness for Auth */
@media (max-width: 768px) {
    .auth-page-main {
        padding-top: 0 !important;
        min-height: auto !important;
    }

    .auth-wrap {
        padding: 0 !important;
        background: #ffffff;
        min-height: 100vh !important;
    }

    .auth-split-card {
        flex-direction: column !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        min-height: auto !important;
        max-width: 100% !important;
    }

    .auth-image-area {
        display: none !important;
        /* Hide image on mobile */
    }

    .auth-form-area {
        padding: 30px 20px !important;
        justify-content: flex-start !important;
    }
}

/* Ultra-Compact Mobile Auth for Small Screens */
@media (max-width: 480px) {
    .auth-wrap {
        padding: 0 !important;
    }

    .auth-form-area {
        padding: 20px 15px !important;
    }

    .auth-form-area h2,
    .auth-form-area h3 {
        font-size: 1.4rem !important;
        margin-bottom: 4px !important;
    }

    .auth-form-area p {
        font-size: 0.8rem !important;
        margin-bottom: 12px !important;
    }

    .auth-form-area .form-label {
        font-size: 0.6rem !important;
        margin-bottom: 2px !important;
        font-weight: 700 !important;
    }

    .auth-form-area .form-control {
        padding: 6px 10px !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
        height: auto !important;
    }

    .auth-form-area .mb-2,
    .auth-form-area .mb-3 {
        margin-bottom: 6px !important;
    }

    .auth-form-area .btn-primary {
        padding: 8px !important;
        margin-top: 4px !important;
        font-size: 0.9rem !important;
    }
}

/* --- PREMIUM DASHBOARD NAVIGATION --- */
:root {
    --dash-sidebar-width: 260px;
    --dash-top-bar-height: 70px;
    --dash-bottom-nav-height: 65px;
    --dash-bg: #f8fafc;
}

.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 60px);
    background: var(--dash-bg);
}

/* Sidebar Styling */
.dashboard-sidebar {
    width: var(--dash-sidebar-width);
    background: white;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar-nav {
    padding: 20px;
    flex-grow: 1;
}

.nav-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #64748b;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.nav-item-link i {
    font-size: 1.25rem;
}

.nav-item-link:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.nav-item-link.active {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-color);
}

/* Content Area */
.dashboard-main {
    flex-grow: 1;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Mobile Navigation Bar */
.dashboard-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--dash-bottom-nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 0 10px;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none !important;
    font-size: 0.65rem;
    font-weight: 700;
    gap: 4px;
    flex: 1;
}

.mobile-nav-link i {
    font-size: 1.4rem;
}

.mobile-nav-link.active {
    color: var(--primary-color);
}

/* Section Header Styles */
.dash-section-header {
    margin-bottom: 25px;
}

.dash-section-header h2 {
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 5px;
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .dashboard-sidebar {
        display: none;
    }

    .dashboard-bottom-nav {
        display: flex;
    }

    .dashboard-main {
        padding: 20px;
        padding-bottom: 100px;
    }
}

/* --- PREMIUM DASHBOARD TABS --- */
.dash-tabs-container {
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--dash-bg);
    padding: 0.5rem 0;
}

.dash-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
}

.dash-tabs::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome/Safari */
}

.dash-tab-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    color: #64748b;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-tab-link i {
    font-size: 1.1rem;
}

.dash-tab-link:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
}

.dash-tab-link.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.dash-content-container {
    animation: fadeIn 0.3s ease-out;
}


/* --- PREMIUM MESSAGING UI --- */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-item {
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    position: relative;
}

.message-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-glow);
}

.message-item.unread {
    border-left: 4px solid var(--primary);
    background: rgba(var(--primary-rgb), 0.02);
}

.message-check-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.message-toolbar {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* --- DASHBOARD NAVIGATION & LAYOUT --- */
.sidebar-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 1.5rem 0.5rem;
}

.sidebar-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
}

.sidebar-nav a.active {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.sidebar-nav a:hover:not(.active) {
    background: rgba(59, 130, 246, 0.05);
}

.dash-content-container {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    min-height: calc(100vh - 4rem);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
}

.dash-tabs-container {
    display: none !important;
}

@media (max-width: 991px) {
    .dash-content-container {
        padding: 1.25rem;
    }
}

/* Disabled Service Card */
.booking-service-card.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.4);
}

.booking-service-card.is-disabled:hover {
    transform: none !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    box-shadow: none !important;
}

/* Dashboard Stats Grid & Component Styles */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dash-stat-card {
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dash-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

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

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.bg-primary-soft {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
}

.bg-warning-soft {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: #d97706 !important;
}

.bg-success-soft {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
}

.bg-info-soft {
    background-color: rgba(6, 182, 212, 0.1) !important;
    color: #0891b2 !important;
}

.role-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

@media (max-width: 767px) {
    .main-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0.25rem !important;
    }

    .dash-section-header {
        padding: 0 1rem !important;
        margin-bottom: 1rem !important;
    }

    .dash-section-header h2 {
        font-size: 1.25rem !important;
    }

    .dash-section-header p {
        font-size: 0.8rem !important;
        margin-bottom: 0 !important;
    }

    .container,
    .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .col-lg-7,
    .col-lg-5,
    .col-lg-8,
    .col-lg-4,
    .col-lg-9,
    .col-lg-3 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .panel-lite {
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .card.booking-calendar-card {
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        width: 100% !important;
    }

    .booking-calendar-shell {
        padding: 0.25rem 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
    }

    .calendar-grid {
        gap: 1px !important;
        width: 100% !important;
        grid-auto-rows: minmax(95px, auto) !important;
    }

    .calendar-weekdays {
        padding: 0 2px !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
    }

    .calendar-day {
        border-radius: 4px !important;
        padding: 0.75rem 0.1rem !important;
    }

    .calendar-day-number {
        font-size: 1.3rem !important;
        font-weight: 800 !important;
    }

    .calendar-day-label {
        font-size: 0.7rem !important;
        font-weight: 700 !important;
    }
}

/* Calendar Job Marking & Legend */
.calendar-day {
    position: relative;
}

.calendar-day.has-booking::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 2;
}

/* Status Colors & Animations */
.has-booking-confirmed,
.has-booking-in_progress,
.calendar-day.has-booking-confirmed::after,
.calendar-day.has-booking-in_progress::after {
    background-color: #3b82f6 !important;
}

.has-booking-pending,
.calendar-day.has-booking-pending::after {
    background-color: #f59e0b !important;
}

.has-booking-completed,
.calendar-day.has-booking-completed::after {
    background-color: #10b981 !important;
}

.has-booking-cancelled,
.calendar-day.has-booking-cancelled::after {
    background-color: #ef4444 !important;
}

.calendar-day.has-booking-confirmed::after,
.calendar-day.has-booking-in_progress::after {
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
    animation: pulse-blue 2s infinite;
}

.calendar-day.has-booking-pending::after {
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    animation: pulse-orange 2s infinite;
}

.calendar-day.has-booking-completed::after {
    box-shadow: none;
    animation: none;
}

/* Legend Specific adjustments */
.legend-box {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    display: inline-block;
}

.legend-box.is-open {
    background-color: rgba(16, 185, 129, 0.15);
    border: 2px solid rgba(16, 185, 129, 0.4);
}

.legend-box.is-closed {
    background-color: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.2);
}

.legend-box.has-booking-legend {
    border-radius: 50%;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #3b82f6;
    border: 2px solid #2563eb;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
}

@keyframes pulse-blue {
    0% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        transform: translateX(-50%) scale(1.1);
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }

    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@keyframes pulse-orange {
    0% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    70% {
        transform: translateX(-50%) scale(1.1);
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }

    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

@media (max-width: 767px) {
    .calendar-day.has-booking::after {
        top: 8px;
        right: 8px;
        bottom: auto;
        left: auto;
        transform: none;
        width: 14px;
        height: 14px;
        border-width: 3px;
    }

    @keyframes pulse-blue {
        0% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
        }

        70% {
            transform: scale(1.1);
            box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
        }

        100% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
        }
    }

    @keyframes pulse-orange {
        0% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
        }

        70% {
            transform: scale(1.1);
            box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
        }

        100% {
            transform: scale(1);
            box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
        }
    }
}

/* Message Center Enhancements */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.message-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.message-item.unread {
    background: rgba(59, 130, 246, 0.03);
    border-left-color: var(--primary);
}

.message-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.95);
}

.border-dashed {
    border: 2px dashed rgba(0, 0, 0, 0.05);
}

@media (max-width: 991.98px) {
    .role-hero h2 {
        font-size: 1.5rem;
    }

    .message-toolbar {
        background: #fff;
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    }
}

/* Mobile Layout Fixes */
@media (max-width: 991.98px) {
    .message-center-wrapper {
        padding-bottom: 100px;
        /* Space for bottom navigation */
    }

    .tab-content {
        padding-bottom: 2rem;
    }

    /* Ensure form labels are visible */
    .form-label {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        display: block;
    }
}

/* Specific Fixes for Message Center Mobile Layout */
@media (max-width: 991.98px) {
    .message-center-wrapper {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        overflow-x: hidden;
    }

    .message-center-wrapper .panel-lite {
        padding: 1.5rem !important;
        /* Restore padding killed by global mobile override */
        margin-bottom: 1rem !important;
        border-radius: 1rem !important;
        /* Restore rounded corners */
        border: 1px solid var(--glass-border) !important;
    }

    .message-center-wrapper .tab-pane {
        width: 100% !important;
    }
}

/* =============================================
   Password Toggle � Eye Inside Input Field
   ============================================= */
.password-field-group {
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.fpw-tips-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.fpw-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fpw-tips ul li {
    font-size: 0.8rem;
    color: #166534;
    padding: 0.15rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.fpw-tips ul li::before {
    content: '?';
    color: #22c55e;
    font-weight: 700;
    font-size: 0.85rem;
}

/* -- Errors -- */
.fpw-error {
    font-size: 0.82rem;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    margin-top: 0.25rem;
}

.fpw-error-box {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 4px solid #ef4444;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    color: #be123c;
    font-weight: 500;
}

/* -- Submit Button -- */
.fpw-submit-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
    margin-top: 0.5rem;
}

.fpw-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
    opacity: 0.95;
}

.fpw-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* -- Mobile -- */
@media (max-width: 576px) {
    .fpw-overlay {
        padding: 1rem 0.75rem;
        align-items: flex-start;
        padding-top: 2rem;
        background: #f8fafc;
    }
    .fpw-card {
        border-radius: 20px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    }
    .fpw-header {
        padding: 2rem 1.5rem 1.75rem;
    }
    .fpw-title {
        font-size: 1.35rem;
    }
    .fpw-body {
        padding: 1.5rem 1.25rem 2rem;
    }
}


/* --- Auth Tips Box (used in force_password_change) --- */
.auth-tips-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.auth-tips-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.4rem;
}

.auth-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-tips-list li {
    font-size: 0.8rem;
    color: #166534;
    padding: 0.1rem 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-tips-list li::before {
    content: 'checkmark';
    content: '\2713';
    color: #22c55e;
    font-weight: 700;
}


/* ─── Global Guest Shell Lockdown (No Scroll, Premium Feel) ─── */
html.guest-shell, 
body.guest-shell,
body.guest-shell .app-layout,
body.guest-shell .app-page,
body.guest-shell .app-page-main {
    overflow: hidden !important;
    height: 100vh !important;
    max-height: 100vh !important;
    position: fixed !important;
    width: 100vw !important;
    top: 0;
    left: 0;
    overscroll-behavior: none !important;
}

/* Force hide dashboard-specific navigation in guest-shell mode (Keep Guest Navbar) */
body.guest-shell footer,
body.guest-shell .mobile-header,
body.guest-shell .mobile-bottom-nav,
body.guest-shell .nav-fab,
body.guest-shell .dashboard-top-nav,
body.guest-shell aside {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Force Premium Pill Design for ALL guest-shell inputs */
body.guest-shell input[type="text"],
body.guest-shell input[type="password"],
body.guest-shell input[type="email"],
body.guest-shell .form-control {
    height: 48px !important;
    border-radius: 50px !important;
    text-align: center !important;
    font-size: 1rem !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
}

body.guest-shell .password-field-group {
    position: relative !important;
    display: block !important;
}

body.guest-shell .password-toggle-btn {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
}

/* Consolidated Mobile Auth Lockdown */
@media (max-width: 768px) {
    body.guest-shell {
        touch-action: none !important;
    }

    .guest-shell .auth-wrap {
        padding: 0 !important;
        height: 100vh !important;
        width: 100vw !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f8fbff !important;
    }

    .guest-shell .auth-split-card {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 94% !important;
        max-height: 98vh !important;
        border-radius: 20px !important;
        background: #ffffff !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
        margin: 0 !important;
        border: none !important;
    }

    .guest-shell .auth-image-area {
        display: none !important;
    }

    .guest-shell .auth-form-area {
        padding: 1.5rem 1rem !important;
        touch-action: auto !important;
    }

    .guest-shell input {
        height: 44px !important;
        font-size: 0.9rem !important;
    }

    /* Support for force-password page specifically */
    .force-pw-container h3 {
        font-size: 1.3rem !important;
        margin-bottom: 0.2rem !important;
    }

    .force-pw-container .auth-tips-box {
        padding: 8px 12px !important;
        font-size: 0.65rem !important;
        margin-bottom: 0.5rem !important;
        background: #f1f5f9 !important;
        border-radius: 12px !important;
    }

    .force-pw-container p.text-muted {
        display: none !important;
    }

    .force-pw-container .btn-primary {
        height: 48px !important;
        margin-top: 0.8rem !important;
    }
}



