:root {
    --primary-brand: #4F46E5;
    --secondary-brand: #4338CA;
    --accent-brand: #8B5CF6;
    --light-bg: #F8FAFC;
    --card-bg: rgba(255, 255, 255, 0.95);
    --surface-muted: #F1F5F9;
    --border-light: #E2E8F0;
    --text-dark: #0F172A;
    --text-light: #64748B;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --radius-md: 8px;
    --radius-lg: 16px;
    --glass-border: rgba(255, 255, 255, 0.6);
    --primary-gold: #F59E0B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top left, #EEF2FF 0%, #F8FAFC 40%, #F8FAFC 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

/* LOGIN STYLES */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #EEF2FF 0%, #E0E7FF 100%);
    padding: 20px;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1000px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.login-content {
    background: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.login-header h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    color: var(--primary-brand);
    font-weight: 700;
    margin-bottom: 5px;
}

.login-header p {
    color: var(--text-light);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-brand);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background-color: var(--card-bg);
    color: var(--text-dark);
    font-weight: 500;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.time-mode-row {
    margin-bottom: 8px;
}

.time-mode-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-brand);
    background: #f6fbfa;
}

.time-mode-select:focus {
    outline: none;
    border-color: var(--accent-brand);
    box-shadow: 0 0 0 3px rgba(77, 184, 168, 0.15);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-icon {
    position: absolute;
    right: 14px;
    top: 38px;
    color: var(--primary-gold);
}

.btn-login {
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-brand) 0%, var(--accent-brand) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 77, 62, 0.3);
}

.login-side {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95) 0%, rgba(67, 56, 202, 0.95) 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.side-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 36px;
    margin-bottom: 15px;
}

.side-content p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* DASHBOARD LAYOUT */
.dashboard-container {
    display: block;
    min-height: 100vh;
    background-color: var(--light-bg);
}

.sidebar {
    background: rgba(255, 255, 255, 0.85);
    border-right: 1px solid var(--border-light);
    color: var(--text-dark);
    padding: 30px 20px;
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    max-width: 40px;
    height: auto;
}

.brand-text h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.brand-text p {
    font-size: 12px;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: all 0.25s ease;
}

.nav-item:hover {
    background-color: #EEF2FF;
    color: var(--primary-brand);
    transform: translateX(2px);
}

.nav-item.active {
    background: #E0E7FF;
    color: var(--primary-brand);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--primary-brand);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-light);
    font-size: 13px;
    border-radius: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s;
}

.logout-btn:hover {
    background-color: rgba(212, 175, 55, 0.2);
    color: white;
}

.footer-credit {
    text-align: center;
    font-size: 10px;
    opacity: 0.7;
}

.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-header {
    background: white;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-left h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-brand);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-muted);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 6px 12px 6px 8px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-brand), var(--primary-gold));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.content-area {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
    animation: contentFade 0.25s ease;
}

@keyframes contentFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-brand);
}

/* METRICS & CARDS */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.metric-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
}

.metric-icon {
    font-size: 20px;
    color: var(--primary-gold);
}

.metric-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-brand);
    margin-bottom: 12px;
}

.metric-change {
    font-size: 12px;
    color: var(--success);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-box {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-box.checkin .stat-icon {
    background: linear-gradient(135deg, #45629F 0%, #1F305E 100%);
}

.stat-box.checkout .stat-icon {
    background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
}

.stat-box.maintenance .stat-icon {
    background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
}

.stat-box.monthly .stat-icon {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
}

.stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-brand);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.card-header h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-brand);
}

.chart-controls {
    display: flex;
    gap: 8px;
}

.btn-control {
    padding: 6px 12px;
    background: var(--light-bg);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-control:hover,
.btn-control.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: white;
}

/* ACTIVITY FEED */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: var(--light-bg);
}

.activity-icon.booking {
    background: #E8F8F5;
    color: var(--primary-brand);
}

.activity-icon.payment {
    background: #FFF8E8;
    color: var(--primary-gold);
}

.activity-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.activity-description {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

/* FLOOR SECTIONS */
.floor-section {
    margin-bottom: 40px;
}

.floor-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-brand);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-gold);
}

/* ROOMS GRID */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.room-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border-left: 5px solid transparent;
    cursor: pointer;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.room-card.available {
    border-left-color: #27AE60;
}

.room-card.occupied {
    border-left-color: #E74C3C;
}

.room-card.cleaning {
    border-left-color: #F39C12;
}

.room-card.maintenance {
    border-left-color: #95A5A6;
}

.room-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    position: relative;
    font-weight: bold;
}

.room-card.available .room-image {
    background: linear-gradient(135deg, #D4F1D4 0%, #B8E6B8 100%);
}

.room-card.occupied .room-image {
    background: linear-gradient(135deg, #FFD4D4 0%, #FFB8B8 100%);
}

.room-card.cleaning .room-image {
    background: linear-gradient(135deg, #FFE8B8 0%, #FFD9A1 100%);
}

.room-card.maintenance .room-image {
    background: linear-gradient(135deg, #E0E0E0 0%, #C8C8C8 100%);
}

.room-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 14px;
    background: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.room-status.available {
    color: #27AE60;
}

.room-status.occupied {
    color: #E74C3C;
}

.room-status.cleaning {
    color: #F39C12;
}

.room-status.maintenance {
    color: #95A5A6;
}

.room-info {
    padding: 20px;
}

.room-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-brand);
    margin-bottom: 15px;
}

.room-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.detail-label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 12px;
}

.detail-value {
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 4px;
}

.room-rate {
    font-size: 12px;
    color: var(--text-light);
}

.room-rate strong {
    color: var(--primary-gold);
    font-size: 16px;
}

.room-legend {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.room-legend h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    color: var(--primary-brand);
    margin-bottom: 15px;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* TABLES */
.data-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.data-table thead {
    background: var(--surface-muted);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-light);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

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

.data-table tbody tr:nth-child(even) {
    background-color: #FCFDFE;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.confirmed {
    background: #D4EDDA;
    color: #155724;
}

.status-badge.pending {
    background: #FFF3CD;
    color: #856404;
}

.status-badge.completed {
    background: #D4EDDA;
    color: #155724;
}

.status-badge.cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

.status-badge.paid {
    background: linear-gradient(135deg, #D4EDDA 0%, #B8E6C8 100%);
    color: #155724;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(21, 87, 36, 0.15);
}

/* BUTTONS */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-brand) 0%, var(--accent-brand) 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border: none;
    padding: 12px 20px;
    color: white;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 77, 62, 0.3);
}

.camera-capture-section {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: #FCFEFE;
}

.camera-capture-header {
    margin-bottom: 12px;
}

.camera-capture-header h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--primary-brand);
    font-size: 18px;
    margin-bottom: 4px;
}

.camera-capture-header p {
    font-size: 12px;
    color: var(--text-light);
}

.camera-controls-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.camera-live-box {
    position: relative;
    border: 1px dashed #bcd6d1;
    border-radius: 0;
    overflow: hidden;
    min-height: 220px;
    background: #f3f8f7;
    margin-bottom: 14px;
}

#bookingCameraPreview {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: none;
    border-radius: 0;
}

.camera-placeholder {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #5f7d7a;
    font-size: 13px;
}

.camera-placeholder i {
    font-size: 26px;
    color: var(--secondary-brand);
}

.camera-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.capture-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px;
    background: white;
}

.capture-card h5 {
    margin-bottom: 10px;
    color: var(--primary-brand);
    font-size: 13px;
}

.capture-preview {
    height: 160px;
    border: 1px dashed #cbd9de;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fbfd;
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.capture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capture-btn {
    width: 100%;
    justify-content: center;
}

/* PRICING */
.pricing-info {
    background: #E8F8F5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-brand);
}

.pricing-info h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--primary-brand);
    margin-bottom: 12px;
}

.pricing-info p {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-dark);
}

.pricing-info p:last-child {
    margin-bottom: 0;
}

.price-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 13px;
}

/* PAYMENT SUMMARY */
.payment-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.payment-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-gold);
}

.payment-card h4 {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.payment-amount {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-brand);
    margin: 0;
}

.analytics-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.analytics-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-brand) 0%, var(--accent-brand) 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border: none;
    flex: 1;
    min-width: 200px;
}

/* MODALS */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 26, 37, 0.54);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Keep nested action modals above room details modal */
#roomDetailsModal {
    z-index: 2200;
}

#extraAmountModal,
#receiptModal {
    z-index: 2300;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
    max-height: 90vh;
    overflow-y: auto;
}

#receiptModal .modal-content {
    max-width: 980px;
}

.form-group input,
.form-group select,
.form-group textarea,
.price-input {
    border-radius: 10px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.price-input:focus {
    outline: none;
    border-color: var(--accent-brand);
    box-shadow: 0 0 0 3px rgba(77, 184, 168, 0.18);
}

.modal-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    color: var(--primary-brand);
    margin-bottom: 20px;
}

.customer-modal-large {
    max-width: 900px;
}

.close-btn {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    margin-bottom: 15px;
}

.close-btn:hover {
    color: var(--danger);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-brand) 0%, var(--accent-brand) 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border: none;
    flex: 1;
}

/* CUSTOMER DETAILS MODAL STYLES */
.customer-detail-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-light);
}

.customer-photo {
    text-align: center;
}

.customer-photo-frame {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at center, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    margin: 0 auto;
    color: white;
    margin-bottom: 15px;
    border: 3px solid var(--primary-gold);
}

.customer-photo-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.customer-photo-edit {
    font-size: 11px;
    color: var(--primary-brand);
    cursor: pointer;
    border-bottom: 1px dotted var(--primary-brand);
}

.customer-info-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 32px;
    color: var(--primary-brand);
    margin-bottom: 5px;
}

.customer-id-badge {
    display: inline-block;
    background: var(--light-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-brand);
    margin-bottom: 15px;
}

.customer-status-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 10px;
}

.customer-status-tag.previous {
    background: #D4EDDA;
    color: #155724;
}

.customer-status-tag.new {
    background: #FFF3CD;
    color: #856404;
}

.customer-quick-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-brand);
    font-weight: bold;
}

.info-content h4 {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.info-content p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* CUSTOMER DETAILS SECTIONS */
.detail-section {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.detail-section h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    color: var(--primary-brand);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-gold);
}

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

.detail-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.detail-label-text {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.detail-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.detail-text.highlight {
    color: var(--primary-brand);
    font-size: 16px;
}

.booking-history {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.booking-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

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

.booking-dates {
    font-size: 12px;
    color: var(--text-light);
}

.booking-dates strong {
    display: block;
    color: var(--primary-brand);
    font-weight: 700;
    margin-bottom: 5px;
}

.booking-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-info {
    flex: 1;
}

.booking-info strong {
    display: block;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 4px;
}

.booking-info small {
    color: var(--text-light);
    font-size: 11px;
}

.booking-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.booking-badge.completed {
    background: #D4EDDA;
    color: #155724;
}

.booking-badge.ongoing {
    background: #FFF3CD;
    color: #856404;
}

.receipt-body {
    border: 1px solid #d7e3e8;
    padding: 0;
    border-radius: 14px;
    background: #ffffff;
    margin-bottom: 20px;
    overflow: hidden;
}

.receipt-professional {
    background: #fff;
}

.receipt-topbar {
    height: 8px;
    background: linear-gradient(90deg, var(--primary-brand), var(--primary-gold));
}

.receipt-cash .receipt-topbar {
    background: linear-gradient(90deg, #9b6a00, #f0b429);
}

.receipt-digital .receipt-topbar {
    background: linear-gradient(90deg, #0f766e, #22c1a8);
}

.receipt-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    border-bottom: 1px solid #e8eef1;
    background: #fbfefe;
}

.receipt-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.receipt-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #dbe7ec;
    padding: 4px;
}

.receipt-head h2 {
    margin: 0 0 4px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--primary-brand);
    font-size: 28px;
}

.receipt-head p {
    margin: 0;
    color: #60727c;
    font-size: 13px;
}

.receipt-pay-badge {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
}

.receipt-pay-badge.cash {
    color: #7a4b00;
    background: #fff4d8;
    border: 1px solid #f2d28c;
}

.receipt-pay-badge.digital {
    color: #0c6056;
    background: #def7f3;
    border: 1px solid #9de3d9;
}

.receipt-meta {
    text-align: right;
    font-size: 12px;
    color: #334f5d;
    line-height: 1.7;
}

.receipt-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 20px;
}

.receipt-panel {
    border: 1px solid #e5ecef;
    border-radius: 12px;
    padding: 14px;
    margin: 0 20px 12px;
    background: #ffffff;
}

.receipt-panel h4 {
    margin: 0 0 10px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--primary-brand);
    font-size: 17px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed #dde7ec;
    font-size: 13px;
}

.receipt-row span {
    color: #59707b;
}

.receipt-row strong {
    color: #1f343f;
    text-align: right;
}

.receipt-row:last-child {
    border-bottom: none;
}

.receipt-image-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 20px 12px;
}

.receipt-image-strip h5 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #4f646f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.receipt-image-strip .receipt-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.receipt-photo-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid #d5e2e8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5fafc;
    color: #708793;
    font-size: 12px;
    font-weight: 600;
}

.receipt-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.receipt-id-rectangle {
    width: 100%;
    max-width: 290px;
    height: 165px;
    border-radius: 10px;
    border: 3px solid #d5e2e8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5fafc;
    color: #708793;
    font-size: 12px;
    font-weight: 600;
}

.receipt-id-rectangle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.receipt-total {
    margin-top: 12px;
    border-radius: 10px;
    background: #eaf4f1;
    border: 1px solid #cfe2db;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-brand);
}

.receipt-cash .receipt-total {
    background: #fff7e8;
    border-color: #f0ddab;
    color: #7a4b00;
}

.receipt-digital .receipt-total {
    background: #e6f8f4;
    border-color: #bde7dd;
    color: #0c6056;
}

.receipt-total strong {
    font-size: 20px;
}

.receipt-footer-note {
    text-align: center;
    padding: 0 20px 18px;
    color: #6c8089;
    font-size: 12px;
}

/* FORM REDESIGN STYLES */
.form-section {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.form-section-header i {
    width: 36px;
    height: 36px;
    background: #eef2ff;
    color: var(--primary-brand);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.form-section-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-brand);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-section .form-row:last-child {
    margin-bottom: 0;
}

/* RESPONSIVE */

/* MOBILE MENU OVERLAY */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* RESPONSIVE TABLE WRAPPER */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-side {
        display: none;
    }

    .dashboard-container {
        display: block;
    }

    .sidebar {
        transform: translateX(-260px);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

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

    .mobile-menu-btn {
        display: block !important;
    }

    .header-left h2 {
        font-size: 22px;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .metrics-grid,
    .stats-row {
        grid-template-columns: 1fr;
    }

    .dashboard-grid,
    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 10px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-content {
        width: 95%;
    }

    .customer-detail-header {
        grid-template-columns: 1fr;
    }

    .customer-detail-header,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .analytics-buttons {
        flex-direction: column;
    }

    .analytics-buttons .btn-primary {
        background: linear-gradient(135deg, var(--primary-brand) 0%, var(--accent-brand) 100%);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        border: none;
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .receipt-head {
        flex-direction: column;
    }

    .receipt-meta {
        text-align: left;
    }

    .receipt-grid-2,
    .receipt-image-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 15px;
    }

    .metrics-grid {
        gap: 12px;
    }

    .metric-card {
        padding: 15px;
    }

    .metric-value {
        font-size: 24px;
    }

    .card {
        border-radius: 10px;
        padding: 15px;
    }

    .legend-items {
        grid-template-columns: 1fr;
    }

    #bookingCameraPreview,
    .camera-placeholder,
    .camera-live-box {
        min-height: 190px;
        height: 190px;
    }
}

/* Room Diary Styles */
.diary-date-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.diary-date-picker input {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
}

.diary-instructions {
    background: #f0f7ff;
    border-left: 4px solid #3b82f6;
    margin-bottom: 24px;
    padding: 12px 20px;
}

.diary-instructions p {
    margin: 0;
    font-size: 14px;
    color: #1e40af;
}

.diary-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.diary-floor-section h3 {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.diary-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.diary-room-item {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s;
}

.diary-room-item:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.diary-room-item label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.diary-room-item input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.diary-room-item input:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: #fffdf5;
}

@media (max-width: 768px) {
    .diary-rooms-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   BOOKING MONTH-WISE FILTER & SEGREGATION
   ======================================== */

/* Filter Toolbar */
.booking-filter-toolbar {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
}

.filter-row-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-year-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-brand), var(--accent-brand));
    padding: 6px 10px;
    border-radius: 12px;
}

.year-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.2s ease;
}

.year-nav-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
}

.year-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: white;
    min-width: 60px;
    text-align: center;
    letter-spacing: 1px;
}

.filter-status-select select {
    padding: 10px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.filter-status-select select:focus {
    outline: none;
    border-color: var(--primary-brand);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.filter-reset-btn {
    padding: 10px 18px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.filter-reset-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: #FEF2F2;
}

/* Month Pills */
.filter-month-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.month-pill {
    padding: 8px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    background: white;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.month-pill:hover {
    border-color: var(--primary-brand);
    color: var(--primary-brand);
    background: #EEF2FF;
    transform: translateY(-1px);
}

.month-pill.active {
    background: linear-gradient(135deg, var(--primary-brand), var(--accent-brand));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

/* Month Booking Sections */
.month-booking-section {
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.month-booking-section:hover {
    box-shadow: var(--shadow-md);
}

.month-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 12px;
}

.month-section-header:hover {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}

.month-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.month-toggle-icon {
    font-size: 12px;
    color: var(--primary-brand);
    transition: transform 0.3s ease;
}

.month-booking-section.collapsed .month-toggle-icon {
    transform: rotate(-90deg);
}

.month-section-header h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-brand);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.month-section-header h3 .fa-calendar-alt {
    font-size: 14px;
    color: var(--primary-gold);
}

.month-booking-count {
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: var(--primary-brand);
    padding: 3px 10px;
    border-radius: 20px;
}

.month-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.month-stats-chips {
    display: flex;
    gap: 8px;
}

.month-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.month-chip.confirmed {
    background: #ECFDF5;
    color: #059669;
}

.month-chip.completed {
    background: #EEF2FF;
    color: var(--primary-brand);
}

.month-chip.cancelled {
    background: #FEF2F2;
    color: #DC2626;
}

.month-revenue {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-brand);
    background: white;
    padding: 6px 14px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Collapse animation */
.month-section-body {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.month-booking-section.collapsed .month-section-body {
    max-height: 0;
}

.month-booking-section.collapsed .month-section-header {
    border-bottom: none;
}

/* Override card hover inside month sections */
.month-section-body .card {
    border: none;
    box-shadow: none;
}

.month-section-body .card:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .month-section-header {
        padding: 14px 16px;
    }

    .month-header-left h3 {
        font-size: 14px;
    }

    .month-revenue {
        font-size: 15px;
        padding: 4px 10px;
    }

    .month-stats-chips {
        display: none;
    }

    .filter-month-pills {
        gap: 4px;
    }

    .month-pill {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .filter-row-top {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-year-nav {
        justify-content: center;
    }

    .filter-reset-btn {
        margin-left: 0;
        justify-content: center;
    }

    .month-header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .month-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .month-header-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ===== ROLE-BASED ACCESS CONTROL ===== */

/* Hide elements marked as receptionist-only when owner is logged in */
.owner-view .receptionist-only {
    display: none !important;
}

/* Hide revenue/financial elements from receptionist — shown only for owner */
.owner-only {
    display: none !important;
}

.owner-view .owner-only {
    display: revert !important;
}

/* Role badge in header profile */
.role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 3px;
    text-transform: uppercase;
}

.role-badge.owner {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.role-badge.receptionist {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

/* ===== DOWNLOAD ALL DATA SECTION (OWNER) ===== */

.download-data-section {
    padding: 10px 0 0;
}

.download-data-info {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    border-left: 4px solid var(--primary-brand);
    padding: 12px 18px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 20px;
}

.download-data-info p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #3b52a5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-data-info p i {
    color: var(--primary-brand);
    font-size: 15px;
}

.download-data-controls {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.date-range-group {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.date-range-item {
    flex: 1;
    min-width: 160px;
}

.date-range-item label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-range-item label i {
    margin-right: 5px;
    color: var(--primary-gold);
}

.date-range-item input[type="date"] {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-dark);
    background: #fff;
    transition: all 0.25s ease;
    cursor: pointer;
}

.date-range-item input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-brand);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.date-range-item input[type="date"]:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.date-range-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    color: var(--primary-brand);
    font-size: 16px;
    opacity: 0.5;
    flex-shrink: 0;
}

.download-quick-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 9px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.preset-btn:hover {
    border-color: var(--primary-brand);
    color: var(--primary-brand);
    background: #eef2ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.preset-btn.active {
    background: linear-gradient(135deg, var(--primary-brand), var(--accent-brand));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
}

.preset-btn i {
    font-size: 11px;
}

.download-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.download-record-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    padding: 10px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    min-width: 200px;
}

.download-record-count i {
    color: var(--primary-gold);
    font-size: 14px;
}

.download-record-count.has-records {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.download-record-count.has-records i {
    color: #10b981;
}

.btn-download-all {
    padding: 12px 28px;
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.btn-download-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.45);
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
}

.btn-download-all:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.btn-download-all i {
    font-size: 16px;
}

/* Responsive for download section */
@media (max-width: 768px) {
    .date-range-group {
        flex-direction: column;
        gap: 12px;
    }

    .date-range-separator {
        transform: rotate(90deg);
        width: 100%;
        height: 24px;
    }

    .download-quick-presets {
        justify-content: center;
    }

    .download-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .download-record-count {
        justify-content: center;
        min-width: auto;
    }

    .btn-download-all {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .preset-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 8px 12px;
        font-size: 11px;
    }

    .download-data-info p {
        font-size: 12px;
    }
}