* {
    box-sizing: border-box;
}

:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 64px;
    --clr-1: #f8f9fa;
    --clr-2: #e9ecef;
    --clr-3: #dee2e6;
    --clr-4: #d97706;
    --clr-5: #1e293b;
    --primary-clr: var(--clr-4);
    --bg-clr: var(--clr-1);
    --sidebar-bg: var(--clr-5);
    --text-clr: var(--clr-5);
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
    --primary-gradient: linear-gradient(135deg, var(--clr-4) 0%, #b45309 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.animate-fade-in {
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-clr);
    color: var(--text-clr);
    display: flex;
    /* min-height: 100vh; */
    font-size: 14px; /* Reduced from 15px */
    letter-spacing: -0.01em;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--white);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    height: 32px;
    max-width: 100%;
    object-fit: contain;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.sidebar-toggle:hover {
    opacity: 1;
}

.sidebar-menu {
    flex: 1;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 13.5px;
    font-weight: 500;
}

.menu-item i {
    width: 20px;
    font-size: 16px;
    margin-right: 16px;
}

.menu-item:hover, .menu-item.active {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
}

.menu-item.active {
    background-color: rgba(217, 119, 6, 0.15);
    color: var(--clr-4);
}

.menu-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 16px 24px;
}

.menu-item.logout {
    margin-top: auto;
    color: #ef4444;
}

.menu-item.logout:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.sidebar-footer p {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Login Page Styles */
.dashboard-login-body {
    background: linear-gradient(135deg, #f7f7ee 0%, #e3e3c4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* min-height: 100vh; */
    margin: 0;
    /* overflow: hidden; */
    position: relative;
}

.dashboard-login-body::before {
    content: '';
    position: absolute;
    /* width: 150%; */
    /* height: 150%; */
    background: radial-gradient(circle, rgba(229, 149, 53, 0.1) 0%, transparent 70%);
    top: -25%;
    left: -25%;
    z-index: 0;
}

#signin-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 24px;
    min-height: auto; /* Reset style.css */
    display: block; /* Reset style.css flex */
    margin: 0;
    background-color: transparent; /* Reset style.css */
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-glass-card {
    background: var(--clr-5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(58, 58, 58, 0.1);
    margin: 0 auto;
}

.logo-area-signin {
    text-align: center;
    /* margin-bottom: 40px; */
}

.signin-logo {
    /* height: 60px; */
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.signin-logo:hover {
    transform: scale(1.05);
}

.login-title {
    color: var(--clr-3);
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.login-subtitle {
    color: var(--clr-1);
    font-size: 15px;
    margin-bottom: 32px;
}

.s-input-section {
    margin-bottom: 24px;
    text-align: left;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--clr-1);
    margin-bottom: 8px;
    margin-left: 4px;
    letter-spacing: 0.01em;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    font-size: 14px;
    transition: color 0.2s ease;
    z-index: 10;
}

.password-wrapper .toggle-btn:hover {
    color: var(--clr-4);
}

.s-input-section .input-text {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #e3e3c4;
    border-radius: 16px;
    padding: 16px 20px;
    color: #3A3A3A;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.s-input-section .input-text:focus {
    background: #ffffff;
    border-color: #E59535;
    outline: none;
    box-shadow: 0 0 0 4px rgba(229, 149, 53, 0.15);
}

.s-input-section .input-text::placeholder {
    color: #a0a0a0;
}

.sign-btn {
    width: 100%;
    background: linear-gradient(135deg, #E59535 0%, #d97706 100%);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    box-shadow: 0 10px 20px -5px rgba(229, 149, 53, 0.4);
}

.sign-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(229, 149, 53, 0.5);
    filter: brightness(1.1);
}

.sign-btn:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 13px;
    color: #999;
}



/* Main Content Area */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.top-header {
    height: var(--header-height);
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 900;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--clr-5);
    margin: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.user-profile:hover {
    background-color: var(--clr-1);
}

.user-name {
    font-weight: 500;
    color: var(--clr-5);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-clr);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.content-body {
    padding: 32px;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background-color: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid var(--clr-2);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.icon-orange { background-color: rgba(217, 119, 6, 0.1); color: var(--clr-4); }
.icon-blue { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.icon-green { background-color: rgba(34, 197, 94, 0.1); color: #22c55e; }
.icon-purple { background-color: rgba(168, 85, 247, 0.1); color: #a855f7; }

.stat-info h3 {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-info .stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-top: 4px;
    color: var(--clr-5);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

/* Secondary Stats Row */
.stats-row-secondary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.mini-stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--clr-2);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.mini-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--clr-4);
}

.mini-stat-card.highlight {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: none;
}

.mini-stat-card.highlight h4 {
    color: rgba(255, 255, 255, 0.7);
}

.mini-stat-card.highlight .mini-stat-value {
    color: var(--white);
}

.mini-stat-card.highlight .mini-stat-label {
    color: var(--clr-4);
}

.mini-stat-info h4 {
    margin: 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.mini-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--clr-5);
}

.mini-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 4px;
}

/* Refined Stat Cards */
.stat-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.stat-card:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 70%);
    pointer-events: none;
}

.icon-orange { background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%); color: var(--clr-4); }
.icon-blue { background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%); color: #3b82f6; }
.icon-green { background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%); color: #22c55e; }
.icon-purple { background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%); color: #a855f7; }

/* Tables & Cards */
.card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--clr-2);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--clr-5);
}

.table-responsive {
    overflow-x: auto;
    margin: 0 -24px;
}

table.table {
    width: 100%;
    border-collapse: collapse;
}

table.table thead th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #f8fafc;
    color: #64748b;
    padding: 12px 24px;
    text-align: left;
    border-bottom: 1px solid var(--clr-3);
}

table.table tbody tr {
    border-bottom: 1px solid var(--clr-2);
    transition: background-color var(--transition);
}

table.table tbody tr:hover {
    background-color: #f8fafc;
}

table.table tbody td {
    padding: 14px 24px;
    color: var(--clr-5);
    vertical-align: middle;
}

.premium-table tr.bold-row td {
    font-weight: 700 !important;
    color: #000;
}

.premium-table td, .premium-table th {
    padding: 8px 16px !important;
}

.content-section .pdf-footer {
    margin-top: auto;
}

#pdf-footer-img {
    width: 100%;
    display: block;
}

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

.guest-name {
    font-weight: 600;
    color: var(--clr-5);
    font-size: 14px;
}

.text-right {
    text-align: right !important;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.2), 0 2px 4px -1px rgba(217, 119, 6, 0.1);
}

.btn-primary:hover {
    background-color: #b45309;
    transform: translateY(-1px);
}

.btn-cancel {
    background-color: var(--clr-1);
    color: #475569;
}

.btn-cancel:hover {
    background-color: var(--clr-2);
}

.btn-icon {
    background: none;
    border: none;
    color: #64748b;
    padding: 8px;
    margin: 0 2px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 6px;
}

.btn-icon:hover {
    color: var(--clr-4);
    background-color: rgba(217, 119, 6, 0.1);
}

.edit-booking { color: var(--clr-4); }
.delete-booking { color: #ef4444; }
.delete-booking:hover { background-color: rgba(239, 68, 68, 0.1); }

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #475569;
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--clr-3);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background-color: var(--white);
    transition: var(--transition);
    color: var(--clr-5);
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-4);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

/* Modal / Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
    padding: 24px;
}

#popup-main {
    z-index: 3000;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-box {
    background-color: var(--white);
    width: 100%;
    max-width: 800px;
    max-height: 90vh; /* Fix scroll issue */
    overflow-y: auto; /* Fix scroll issue */
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--clr-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}

.modal-body {
    padding: 32px;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--clr-2);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: var(--white);
    z-index: 10;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--clr-5);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-1);
    color: #64748b;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--clr-2);
    color: var(--clr-5);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.full-width {
    grid-column: span 2;
}

.section-divider {
    grid-column: span 2;
    padding: 12px 0 8px;
    margin-top: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--clr-2);
    margin-bottom: 1.5rem;
}

/* Badges */
.badge {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.02em;
}

.badge-upcoming { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-checkedout { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-noshow { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-info { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }

.status-active { background-color: #dcfce7; color: #166534; }
.status-inactive { background-color: #fee2e2; color: #991b1b; }

/* Dropdown styling */
.dropdownWrapper {
    position: relative;
    width: 100%;
}

.dropdown {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--clr-3);
    border-radius: 8px;
    font-size: 14px;
    background-color: var(--white);
    color: var(--clr-5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.dropdown:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.dropdown-itemsWrapper {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background-color: var(--white);
    border: 1px solid var(--clr-3);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    list-style: none;
    padding: 8px;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-itemsWrapper.inactive {
    display: none;
}

.dropdown-itemsWrapper li {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13.5px;
}

.dropdown-itemsWrapper li:hover {
    background-color: var(--clr-1);
}

/* Responsiveness */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-5);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
}


/* Glassmorphism Card Style */
.glass-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-panel.active {
    display: block;
    animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background-color: var(--clr-1);
    padding: 6px;
    border-radius: 12px;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.settings-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--clr-5);
}

.tab-btn.active {
    background-color: var(--white);
    color: var(--clr-4);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.settings-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.settings-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsiveness adjustments for forms */
.settings-panel .form-grid {
    max-width: 800px;
}


/* Booking Details Popup Optimization */
.booking-summary-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0;
}

.booking-info-section {
    padding: 24px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
}

.payment-info-section {
    padding: 24px;
    display: flex;
    flex-direction: column;
    background: #f8fafc;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.info-item div {
    font-weight: 600;
    color: #1e293b;
}

.payment-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.payment-card-header {
    background: #f8fafc;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 8px;
}

.payment-summary {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    color: #64748b;
}

.summary-row.total-balance {
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
    margin-top: 12px;
    font-size: 15px;
    color: #1e293b;
}

.summary-row span:last-child {
    font-weight: 600;
}

/* Search Bar Styling */
.search-filter-container {
    background: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid var(--clr-2);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.search-input-wrapper .form-control {
    padding-left: 40px;
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

.search-input-wrapper .form-control:focus {
    background-color: var(--white);
    border-color: var(--clr-4);
}

/* Mobile Card View for Tables */

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    min-width: 280px;
    max-width: 400px;
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--clr-4);
    transition: var(--transition);
}

.toast.removing {
    animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-icon {
    font-size: 18px;
}

.toast-content {
    flex: 1;
}

.toast-message {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--clr-5);
}

/* Toast Variants */
.toast-success { border-left-color: #059669; }
.toast-success .toast-icon { color: #059669; }

.toast-error { border-left-color: #e11d48; }
.toast-error .toast-icon { color: #e11d48; }

.toast-info { border-left-color: #3b82f6; }
.toast-info .toast-icon { color: #3b82f6; }

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@media (max-width: 576px) {
    .toast-container {
        top: auto;
        bottom: 24px;
        left: 16px;
        right: 16px;
    }
    .toast {
        min-width: 0;
        width: 100%;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

/* Guest Selection Tabs */
.guest-selection-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.guest-tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
    color: #64748b;
}

.guest-tab-item i {
    font-size: 24px;
    opacity: 0.7;
}

.guest-tab-item span {
    font-weight: 600;
    font-size: 13px;
}

.guest-tab-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.guest-tab-item.active {
    background: #fffbeb;
    border-color: var(--clr-4);
    color: var(--clr-4);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.1);
}

.guest-tab-item.active i {
    opacity: 1;
}

/* Delete Confirm Modal */
.modal-confirm-box {
    max-width: 400px !important;
    text-align: center;
    padding: 40px 32px !important;
}

.confirm-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 24px;
}

.modal-confirm-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--clr-5);
    margin-bottom: 12px;
}

.modal-confirm-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 32px;
}

.confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .guest-selection-tabs {
        gap: 12px;
    }
    
    .guest-tab-item {
        padding: 16px 12px;
    }
    
    .guest-tab-item i {
        font-size: 20px;
    }
    
    .confirm-actions {
        grid-template-columns: 1fr;
        flex-direction: column-reverse;
    }
}

/* Modern Payment List UI - Redesigned */
.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 12px;
    margin-bottom: 4px;
    border-left: 4px solid transparent;
}

.payment-item:hover {
    background-color: #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transform: translateX(4px);
    border-left-color: var(--clr-4);
}

.payment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.payment-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.btn-payment-edit {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #d97706;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-payment-edit:hover {
    background: #fef3c7;
    transform: scale(1.05);
}

.payment-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-type-tag {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
}

.payment-meta {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-weight: 500;
}

.payment-meta .dot {
    width: 4px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 50%;
}

.payment-item-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.payment-value-block {
    text-align: right;
    min-width: 120px;
}

.payment-amount {
    display: block;
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.2;
}

.payment-status-pill {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 4px;
    display: inline-block;
}

.status-paid {
    background: #ecfdf5;
    color: #059669;
}

.status-unpaid {
    background: #fff1f2;
    color: #e11d48;
}

.payment-actions {
    display: flex;
    gap: 8px;
    opacity: 0.6;
    transition: var(--transition);
}

.payment-item:hover .payment-actions {
    opacity: 1;
}

.btn-action-sm {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.btn-dl {
    background: #f0f9ff;
    color: #0ea5e9;
    border-color: #e0f2fe;
}

.btn-dl:hover {
    background: #0ea5e9;
    color: #fff;
    border-color: #0ea5e9;
}

.btn-del {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fee2e2;
}

.btn-del:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.btn-mail {
    background: #f5f3ff;
    color: #8b5cf6;
    border-color: #ede9fe;
}

.btn-mail:hover {
    background: #8b5cf6;
    color: #fff;
    border-color: #8b5cf6;
}

/* Header Status Badges */
.modal-header-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.modal-header .badge {
    padding: 4px 10px;
    font-size: 11px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
}

.badge-partial {
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.modal-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Notifications */
.notifications-wrapper {
    position: relative;
    margin-right: 16px;
}

.notification-bell {
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.notification-bell:hover {
    background-color: var(--clr-1);
    color: var(--clr-4);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    visibility: hidden;
}

.notification-badge.active {
    visibility: visible;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--clr-2);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.active {
    display: block;
}

.notification-header {
    padding: 16px;
    border-bottom: 1px solid var(--clr-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8fafc;
}

.notification-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.notification-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    padding: 16px;
    border-bottom: 1px solid var(--clr-2);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 12px;
}

.notification-item:hover {
    background-color: #f8fafc;
}

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

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(217, 119, 6, 0.1);
    color: var(--clr-4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
}

.notif-title {
    font-weight: 600;
    font-size: 13.5px;
    display: block;
    margin-bottom: 2px;
}

.notif-desc {
    font-size: 12.5px;
    color: #64748b;
}

.notif-time {
    font-size: 11px;
    color: #94a3b8;
    display: block;
    margin-top: 4px;
}

/* Pending Badge */
.badge-pending {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
    animation: pulse-pending 2s infinite;
}

@keyframes pulse-pending {
    0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.2); }
    70% { box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

/* Booking Details Grid */
.booking-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.detail-item {
    margin-bottom: 16px;
}

.detail-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-weight: 600;
}

.detail-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--clr-5);
}

.clickable-tile {
    cursor: pointer;
    transition: var(--transition);
}

.clickable-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--clr-4);
}

/* Adjust Notification wrapper for header profile alignment */
.user-profile .notifications-wrapper {
    margin-right: 0;
    margin-left: 4px;
}

/* Extra Services UI */
.extra-service-item {
    transition: var(--transition);
    border: 1px solid transparent;
}
.extra-service-item:hover {
    border-color: #cbd5e1;
    background: #e2e8f0 !important;
}
.delete-extra-service {
    opacity: 0.6;
    transition: var(--transition);
}
.delete-extra-service:hover {
    opacity: 1;
    transform: scale(1.1);
}
.add-extra-service-form .form-control:focus {
    background: #fff;
}


/* Premium Invoice PDF Styles */
.premium-invoice {
    background: #fff;
    font-family: 'Inter', 'Poppins', sans-serif;
    color: #1e293b;
    padding: 0;
}

.invoice-body {
    padding: 40px;
    background: #fff;
}

.invoice-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.invoice-label {
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.invoice-meta {
    text-align: right;
}

.invoice-meta p {
    margin: 4px 0;
    font-size: 14px;
    color: #64748b;
}

.invoice-meta strong {
    color: #0f172a;
}

.invoice-divider {
    border: 0;
    border-top: 2px solid #f1f5f9;
    margin: 30px 0;
}

.invoice-info-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.info-block {
    flex: 1;
}

.info-block h3 {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 8px;
}

.info-block p {
    margin: 2px 0;
    font-size: 13px;
    line-height: 1.4;
}

.company-name, .guest-name {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #0f172a !important;
    margin-bottom: 6px !important;
}

.invoice-table-container {
    /* margin-bottom: 40px; */
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
}

.premium-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.premium-table td {
    padding: 20px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

.item-desc {
    display: flex;
    flex-direction: column;
}

.item-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 15px;
}

.item-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.invoice-summary-container {
    display: flex;
    justify-content: flex-end;
}

.summary-box {
    width: 300px;
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.total-row {
    font-weight: 600;
    color: #0f172a;
}

.balance-row {
    font-weight: 800;
    font-size: 18px;
    color: #0f172a;
    margin-top: 12px;
}

.invoice-footer-note {
    margin-top: 40px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
}

.current-inv-row td {
    font-weight: 700 !important;
    background-color: #f8fafc;
    color: #0f172a;
}

.table-total-row td {
    border-top: 2px solid #0f172a;
    background: #f1f5f9;
}

.pdf-footer {
    width: 100%;
    margin-top: 40px;
    padding-bottom: 20px; /* Buffer to prevent cropping */
    display: flex;
    justify-content: center;
    background: #fff;
}

#pdf-footer-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Settings Page Styles */
.id-badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}
.value-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
}
.count-badge {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #9a3412;
    border: 1px solid #fed7aa;
}
.price-badge {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border: 1px solid #bbf7d0;
}
.card-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}
.table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-top: none !important;
}
.modal-box {
    border: none;
}
.modal-header {
    background: linear-gradient(to right, #ffffff, #f8fafc);
}
#save-config-btn {
    background: linear-gradient(135deg, var(--clr-4) 0%, #b45309 100%);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}
/* ============================================================
   RESPONSIVE OVERRIDES (Mobile First)
   ============================================================ */

/* Medium Devices (Tablets, 992px and down) */
@media (max-width: 992px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }
    .sidebar .menu-item span, .sidebar .sidebar-logo {
        display: none;
    }
    .sidebar-header {
        justify-content: center;
        padding: 0;
    }
    .sidebar-toggle {
        display: none;
    }
    .main-wrapper {
        margin-left: var(--sidebar-collapsed-width);
    }
}

/* Small Devices (Mobiles, 768px and down) */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .mobile-toggle {
        display: block;
    }

    .sidebar {
        left: -100%;
        width: var(--sidebar-width) !important;
        box-shadow: 20px 0 50px rgba(0,0,0,0.1);
    }

    .sidebar.active {
        left: 0;
    }

    .sidebar .menu-item span, .sidebar .sidebar-logo {
        display: flex;
    }

    .sidebar-header {
        justify-content: space-between;
        padding: 0 24px;
    }

    .sidebar-toggle {
        display: block;
    }

    .main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden;
    }

    .top-header {
        padding: 0 16px;
    }

    .header-left {
        display: flex;
        align-items: center;
    }

    .user-name {
        display: none; /* Hide name on mobile to save space */
    }

    .content-body {
        padding: 16px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .card {
        padding: 16px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .full-width, .section-divider {
        grid-column: span 1;
    }

    /* Premium Tabs for Mobile */
    .settings-tabs {
        display: flex;
        width: 100vw;
        margin-left: -16px;
        margin-right: -16px;
        padding: 12px 16px;
        border-radius: 0;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        position: sticky;
        top: 0;
        z-index: 100;
        gap: 12px;
        flex-wrap: nowrap;
    }

    .settings-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 10px 18px;
        font-size: 13px;
        background: var(--white);
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }

    .tab-btn.active {
        background: var(--primary-gradient);
        color: var(--white);
        border-color: transparent;
        box-shadow: 0 8px 15px rgba(217, 119, 6, 0.25);
    }

    /* Mobile Table Cards */
    .table-responsive {
        border: none;
        margin: 0;
        overflow: visible;
    }

    table.table-card-mobile,
    table.table-card-mobile thead,
    table.table-card-mobile tbody,
    table.table-card-mobile th,
    table.table-card-mobile td,
    table.table-card-mobile tr {
        display: block;
    }

    table.table-card-mobile thead {
        display: none;
    }

    table.table-card-mobile tbody tr {
        background: var(--white);
        margin-bottom: 24px;
        border: 1px solid #f1f5f9;
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    table.table-card-mobile tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border: none;
        font-size: 14px;
    }

    table.table-card-mobile tbody td:not(:last-child) {
        border-bottom: 1px solid #f8fafc;
    }

    table.table-card-mobile tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #94a3b8;
        text-transform: uppercase;
        font-size: 10px;
        letter-spacing: 0.1em;
        margin-right: 15px;
    }

    table.table-card-mobile tbody td:last-child {
        margin: 12px -16px -16px -16px;
        padding: 12px 16px;
        border-top: 1px solid #f1f5f9;
        background: #f8fafc;
        justify-content: flex-end;
        gap: 12px;
    }

    /* Modals & Popups Responsiveness */
    .modal-overlay {
        padding: 0;
        align-items: flex-end; /* Mobile: appear from bottom */
    }
    
    .modal-box {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0;
        height: auto !important;
        max-height: 95vh !important;
        border-radius: 24px 24px 0 0 !important;
        display: flex;
        flex-direction: column;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.2) !important;
        animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* For detailed forms/info modals, use more height */
    #booking-details-modal .modal-box,
    #add-config-modal .modal-box {
        height: 95vh !important;
    }

    @keyframes modalSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .modal-header {
        padding: 16px 20px;
        background: var(--white);
        border-bottom: 1px solid #f1f5f9;
        position: sticky;
        top: 0;
        z-index: 10;
        flex-shrink: 0;
    }

    .modal-body {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-footer {
        padding: 16px 20px;
        background: var(--white);
        border-top: 1px solid #f1f5f9;
        flex-direction: column-reverse;
        gap: 10px;
        position: sticky;
        bottom: 0;
        z-index: 10;
        flex-shrink: 0;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0 !important;
        padding: 12px;
        justify-content: center;
        font-size: 15px;
    }

    .modal-confirm-box {
        padding: 32px 20px !important;
        border-radius: 24px 24px 0 0 !important;
    }

    .modal-confirm-box .confirm-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Notification Dropdown Mobile */
    .notification-dropdown {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100vw;
        height: calc(100vh - var(--header-height));
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .notification-list {
        max-height: none;
        height: 100%;
    }

    /* Search/Filter Container Mobile */
    .search-filter-container {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }

    .search-filter-container .btn {
        width: 100%;
        justify-content: center;
    }

    /* Booking Summary Popup Responsiveness */
    .booking-summary-grid {
        grid-template-columns: 1fr !important;
    }

    .booking-info-section {
        border-right: none !important;
        border-bottom: 1px solid #e2e8f0;
        padding: 20px !important;
    }

    .payment-info-section {
        padding: 20px !important;
    }

    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Internal fields refinement */
    .add-extra-service-form {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .add-extra-service-form .input-group {
        width: 100% !important;
        max-width: 100% !important;
    }

    .payment-summary {
        padding: 16px !important;
    }

    .payment-summary .summary-row {
        flex-direction: row !important; /* Keep amount on same row but allow wrapping if needed */
        justify-content: space-between !important;
        width: 100%;
        font-size: 14px !important;
    }

    .payment-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 16px !important;
    }

    .payment-item-right {
        width: 100% !important;
        justify-content: space-between !important;
        border-top: 1px solid #f1f5f9;
        padding-top: 12px;
    }

    .payment-value-block {
        text-align: left !important;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    /* Floating Action Button (FAB) */
    .btn-fab-container {
        position: fixed;
        bottom: 32px;
        right: 24px;
        z-index: 999;
    }

    .btn-fab {
        width: 60px;
        height: 60px;
        border-radius: 30px;
        background: var(--primary-gradient);
        color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 25px rgba(217, 119, 6, 0.4);
        font-size: 24px;
        border: none;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .btn-fab:active {
        transform: scale(0.85);
        box-shadow: 0 5px 15px rgba(217, 119, 6, 0.3);
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .toast-container {
        top: auto;
        bottom: 24px;
        left: 16px;
        right: 16px;
    }
}

/* Modern Toast Notifications */
#notification-bar {
    position: fixed;
    top: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px 28px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10000;
    transform: translateX(150%);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-left: 6px solid #ef4444;
    min-width: 300px;
    pointer-events: none;
}

#notification-bar.active {
    transform: translateX(0);
    pointer-events: auto;
}

#notification-bar[data-type="success"] {
    border-left-color: #10b981;
}

#notification-bar[data-type="success"] i {
    color: #10b981;
}

#notification-bar i {
    font-size: 22px;
    color: #ef4444;
    flex-shrink: 0;
}

#notification-bar .n-text {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    letter-spacing: -0.01em;
}
