/**
 * Hotel Management System - Main Stylesheet
 * Modern, responsive design with professional aesthetics
 */

/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Enhanced with more vibrant, modern colors */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --primary-extra-light: #dbeafe;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --success-light: #34d399;
    --danger-color: #ef4444;
    --danger-light: #f87171;
    --warning-color: #f59e0b;
    --warning-light: #fbbf24;
    --info-color: #06b6d4;
    --info-light: #22d3ee;
    --light-color: #f8fafc;
    --dark-color: #1e293b;

    /* Grays - Extended palette */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Spacing - Extended scale */
    --spacing-xs: 0.25rem;    /* 4px */
    --spacing-sm: 0.5rem;     /* 8px */
    --spacing-md: 1rem;       /* 16px */
    --spacing-lg: 1.5rem;     /* 24px */
    --spacing-xl: 2rem;       /* 32px */
    --spacing-2xl: 3rem;      /* 48px */
    --spacing-3xl: 4rem;      /* 64px */

    /* Border Radius - Extended scale */
    --radius-sm: 0.375rem;    /* 6px */
    --radius-md: 0.5rem;      /* 8px */
    --radius-lg: 0.75rem;     /* 12px */
    --radius-xl: 1rem;        /* 16px */
    --radius-2xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;    /* Fully rounded */

    /* Shadows - Enhanced with layered shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

    /* Glassmorphism shadows */
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --glass-border: rgba(255, 255, 255, 0.18);

    /* Typography - Extended scale */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */

    /* Transitions - Enhanced timing */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-tooltip: 1070;

    /* Backdrop blur */
    --backdrop-blur-sm: blur(4px);
    --backdrop-blur-md: blur(8px);
    --backdrop-blur-lg: blur(16px);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-color);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-fluid {
    max-width: 100%;
    padding: 0 var(--spacing-lg);
}

.main-content {
    flex: 1;
    padding: var(--spacing-xl) 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--spacing-md));
}

.col-md-3, .col-md-4, .col-md-6, .col-md-8 {
    padding: 0 var(--spacing-md);
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.333%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.666%; }
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: white;
}

.navbar-brand i {
    font-size: var(--font-size-2xl);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    margin: 0;
}

.navbar-menu a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.navbar-user .dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + var(--spacing-sm));
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-header {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
}

.dropdown-header strong {
    display: block;
    color: var(--dark-color);
}

.dropdown-header small {
    color: var(--gray-500);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--gray-700);
    transition: background var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--gray-100);
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--gray-200);
}

.page-header h1 {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: 0;
}

.page-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ===== CARDS ===== */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur-sm);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: 0;
    font-size: var(--font-size-lg);
}

.card-body {
    padding: var(--spacing-lg);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-700) 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-800) 100%);
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 6px 20px 0 rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: white;
    box-shadow: 0 6px 20px 0 rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 4px 15px 0 rgba(6, 182, 212, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
    box-shadow: 0 6px 20px 0 rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-base);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: white;
    transition: all var(--transition-base);
}

.form-control:hover {
    border-color: var(--gray-300);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-control:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

/* Form Validation States */
.form-control.is-valid {
    border-color: var(--success-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid:focus {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--danger-color);
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--success-color);
}

.form-control.is-valid ~ .valid-feedback {
    display: block;
}

.char-count {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: right;
}

.char-count.near-limit {
    color: var(--warning-color);
}

.char-count.at-limit {
    color: var(--danger-color);
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: var(--spacing-md);
    margin: 0 calc(-1 * var(--spacing-sm));
}

.form-row .form-group {
    flex: 1;
    padding: 0 var(--spacing-sm);
}

.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

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

.filter-form .form-row {
    align-items: flex-end;
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-lg);
}

.table thead {
    background: var(--gray-100);
}

.table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-300);
}

.table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table-borderless th,
.table-borderless td {
    border: none;
}

.table-info {
    background: rgba(6, 182, 212, 0.1);
}

.table-success {
    background: rgba(16, 185, 129, 0.1);
}

.table-warning {
    background: rgba(245, 158, 11, 0.1);
}

.table-footer {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    white-space: nowrap;
}

.badge-lg {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
}

.badge-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.badge-secondary {
    background: rgba(100, 116, 139, 0.1);
    color: var(--secondary-color);
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info-color);
}

/* ===== GUEST STATUS BADGES ===== */
/* Numeric guest status system: 0=Pending, 1=Checkin, 2=Checkout, 3=No Show, 5=Cancelled, 6=Shifted */

.guest-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.75rem;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.guest-status-badge i {
    font-size: 0.875rem;
}

/* Status 0: Pending - Orange/Yellow */
.guest-status-0 {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.guest-status-0:hover {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

/* Status 1: Checkin (Check-in) - Green */
.guest-status-1 {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.guest-status-1:hover {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

/* Status 2: Checkout (Check-out) - Blue */
.guest-status-2 {
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.guest-status-2:hover {
    background-color: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
}

/* Status 3: No Show - Gray */
.guest-status-3 {
    background-color: rgba(107, 114, 128, 0.1);
    color: #4b5563;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.guest-status-3:hover {
    background-color: rgba(107, 114, 128, 0.15);
    border-color: rgba(107, 114, 128, 0.4);
}

/* Status 5: Cancelled - Red */
.guest-status-5 {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.guest-status-5:hover {
    background-color: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Status 6: Shifted - Purple */
.guest-status-6 {
    background-color: rgba(147, 51, 234, 0.1);
    color: #9333ea;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.guest-status-6:hover {
    background-color: rgba(147, 51, 234, 0.15);
    border-color: rgba(147, 51, 234, 0.4);
}

/* Unknown Status - Gray (fallback) */
.guest-status-unknown {
    background-color: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Small badge variant for tables */
.guest-status-badge-sm {
    padding: 0.25rem 0.625rem;
    font-size: 0.8125rem;
}

.guest-status-badge-sm i {
    font-size: 0.75rem;
}

/* Large badge variant for details pages */
.guest-status-badge-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 1rem;
}

.guest-status-badge-lg i {
    font-size: 1rem;
}

/* Guest Status Filter Dropdown Styling */
#guest_status_filter {
    min-width: 150px;
}

/* Status transition indicators */
.status-transition-allowed {
    cursor: pointer;
    opacity: 1;
}

.status-transition-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Status history timeline (for future implementation) */
.status-history-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-left: 2px solid var(--gray-200);
    margin-left: var(--spacing-lg);
}

.status-history-item:last-child {
    border-left-color: transparent;
}

.status-history-badge {
    flex-shrink: 0;
}

.status-history-content {
    flex: 1;
}

.status-history-time {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-top: var(--spacing-xs);
}

/* =============================================================================
   CANCELLATION DETAILS SECTION (GUEST STATUS 5)
   =============================================================================

   Styling for the cancellation details display on booking view page.
   Shows cancellation timestamp, refund calculation, policy information,
   and room release confirmation when a booking is cancelled.

   Key Features:
   - Red accent color scheme for cancellation theme
   - Icon-based detail rows for visual clarity
   - Highlighted refund amount with green color
   - Policy reference table for guest understanding
   - Room release confirmation alert
   - Responsive layout for mobile devices

   Usage: Automatically displayed when booking guest_status = 5 (Cancelled)
   Related Files: modules/bookings/view.php, includes/functions.php
   ============================================================================= */

/* Cancellation card container */
.cancellation-card {
    border: 1px solid #fecaca;
    background: #fff;
}

.cancellation-card .card-header {
    background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
    border-bottom: 2px solid #fecaca;
}

.cancellation-header h3 {
    color: #dc2626;
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cancellation-header h3 i {
    font-size: 1.125rem;
}

/* Cancellation detail rows (icon + content layout) */
.cancellation-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.cancellation-detail-row:last-of-type {
    border-bottom: none;
}

.cancellation-detail-row .detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    color: #dc2626;
    font-size: 1.125rem;
}

.cancellation-detail-row .detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cancellation-detail-row .detail-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cancellation-detail-row .detail-value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
}

.cancellation-detail-row .detail-value small {
    font-weight: 400;
    font-size: 0.875rem;
}

/* Divider between sections */
.cancellation-divider {
    margin: 1.5rem 0;
    border: none;
    border-top: 2px solid #f3f4f6;
}

/* Refund calculation section */
.cancellation-refund-section {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.refund-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refund-section-title i {
    color: #2563eb;
    font-size: 0.9375rem;
}

/* Cancellation table styling */
.cancellation-table {
    margin-bottom: 0;
}

.cancellation-table tr td {
    padding: 0.75rem 0;
    vertical-align: middle;
}

.cancellation-table-label {
    font-size: 0.9375rem;
    color: #4b5563;
    font-weight: 500;
}

.cancellation-table-value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 600;
    text-align: right;
}

/* Cancellation policy badge */
.cancellation-policy-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Cancellation charge row (red for penalties) */
.cancellation-charge-row td {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem !important;
}

.cancellation-charge-row .cancellation-table-value {
    color: #dc2626;
    font-size: 1.0625rem;
}

/* Refund amount row (green for money back) */
.cancellation-refund-row td {
    border-top: 2px solid #d1d5db;
    padding-top: 1rem !important;
    padding-bottom: 0 !important;
}

.cancellation-refund-row .cancellation-table-value {
    color: #059669;
}

.refund-amount-highlight {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Room release confirmation alert */
.cancellation-room-release {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.cancellation-room-release i {
    color: #16a34a;
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.cancellation-room-release strong {
    color: #15803d;
}

.cancellation-room-release small {
    color: #166534;
}

/* Cancellation policy info section */
.cancellation-policy-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
}

.policy-info-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.policy-info-title i {
    color: #3b82f6;
    font-size: 0.875rem;
}

.policy-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.policy-list li {
    padding: 0.5rem 0;
    color: #4b5563;
    font-size: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
}

.policy-list li:last-child {
    border-bottom: none;
}

.policy-list li strong {
    color: #1f2937;
    font-weight: 600;
}

.policy-note {
    margin: 0;
    padding: 0.75rem;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
}

.policy-note i {
    color: #d97706;
    margin-right: 0.5rem;
}

.policy-note small {
    color: #92400e;
    font-size: 0.8125rem;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    .cancellation-detail-row {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .cancellation-detail-row .detail-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .cancellation-table tr td {
        padding: 0.625rem 0;
    }

    .cancellation-table-label,
    .cancellation-table-value {
        font-size: 0.875rem;
    }

    .refund-amount-highlight {
        font-size: 1.25rem;
    }

    .cancellation-policy-info,
    .cancellation-refund-section {
        padding: 1rem;
    }

    .policy-list li {
        font-size: 0.8125rem;
    }
}

/* Print styles for cancellation details */
@media print {
    .cancellation-card {
        border: 2px solid #dc2626;
        page-break-inside: avoid;
    }

    .cancellation-header {
        background: #fef2f2 !important;
    }

    .cancellation-detail-row .detail-icon {
        background: #fecaca !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .cancellation-room-release {
        background: #f0fdf4 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* ===== ALERTS ===== */
.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.alert ul {
    margin: 0;
    padding-left: var(--spacing-lg);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    color: #0e7490;
    border-left: 4px solid var(--info-color);
}

.alert-dismissible {
    padding-right: 3rem;
}

.alert-close {
    position: absolute;
    right: var(--spacing-md);
    top: var(--spacing-md);
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition-fast);
}

.alert-close:hover {
    opacity: 1;
}

/* ===== STATISTICS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-2xl);
}

.stat-primary .stat-icon {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.stat-success .stat-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-danger .stat-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stat-warning .stat-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stat-info .stat-icon {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info-color);
}

.stat-content h3 {
    margin: 0;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--dark-color);
}

.stat-content p {
    margin: 0;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
}

/* ===== ROOMS GRID ===== */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.room-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.room-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.room-header h3 {
    margin: 0;
    font-size: var(--font-size-xl);
}

.room-body {
    padding: var(--spacing-lg);
}

.room-info p {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--gray-700);
}

.room-info i {
    color: var(--primary-color);
    width: 20px;
}

.room-notes {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.room-footer {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-200);
}

/* Room Status Colors */
.room-available {
    border-left: 4px solid var(--success-color);
}

.room-occupied {
    border-left: 4px solid var(--danger-color);
}

.room-maintenance {
    border-left: 4px solid var(--warning-color);
}

.room-blocked {
    border-left: 4px solid var(--secondary-color);
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* ===== CALENDAR ===== */
.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendar-nav h2 {
    margin: 0;
}

.calendar-legend {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
}

.calendar-container {
    overflow-x: auto;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.room-header {
    position: sticky;
    left: 0;
    background: var(--gray-100);
    z-index: 10;
    min-width: 150px;
    font-weight: 600;
    padding: var(--spacing-md);
    border: 1px solid var(--gray-300);
}

.day-header {
    min-width: 40px;
    text-align: center;
    padding: var(--spacing-sm);
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    font-weight: 600;
}

.day-header.weekend {
    background: rgba(239, 68, 68, 0.05);
}

.day-header.today {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.room-cell {
    position: sticky;
    left: 0;
    background: white;
    z-index: 5;
    padding: var(--spacing-md);
    border: 1px solid var(--gray-300);
}

.room-cell small {
    display: block;
    color: var(--gray-500);
    font-size: var(--font-size-sm);
}

/* Removed duplicate .calendar-cell definition - using the correct one at line 2304 */
/* These legacy classes below may be used elsewhere - keeping them */

.calendar-cell-available {
    background: rgba(16, 185, 129, 0.1);
}

.calendar-cell-confirmed {
    background: rgba(37, 99, 235, 0.3);
}

.calendar-cell-checked-in {
    background: rgba(6, 182, 212, 0.3);
}

.calendar-cell-checked-out {
    background: rgba(100, 116, 139, 0.2);
}

.calendar-cell-maintenance {
    background: rgba(245, 158, 11, 0.2);
}

.calendar-cell-blocked {
    background: rgba(239, 68, 68, 0.2);
}

.booking-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    font-weight: 600;
}

.guest-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    font-size: var(--font-size-sm);
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: var(--spacing-xl);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.timeline-item i {
    font-size: var(--font-size-lg);
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 24px;
    bottom: -24px;
    width: 2px;
    background: var(--gray-300);
}

.timeline-item div strong {
    display: block;
    color: var(--dark-color);
}

.timeline-item div small {
    color: var(--gray-500);
}

/* ===== LOGIN PAGE ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: var(--spacing-lg);
}

.login-box {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.login-header {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.login-header i {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.login-header h1 {
    margin: 0 0 var(--spacing-sm);
    color: white;
}

.login-header p {
    margin: 0;
    opacity: 0.9;
}

.login-form {
    padding: var(--spacing-xl);
}

.login-footer {
    padding: var(--spacing-xl);
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.demo-credentials {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.demo-credentials ul {
    margin-top: var(--spacing-sm);
    padding-left: var(--spacing-lg);
}

.demo-credentials li {
    margin-bottom: var(--spacing-xs);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-800);
    color: white;
    padding: var(--spacing-lg);
    text-align: center;
    margin-top: auto;
}

.footer p {
    margin: 0;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-md); }
.py-5 { padding: var(--spacing-2xl) 0; }

.bg-success { background-color: var(--success-color); }
.bg-danger { background-color: var(--danger-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-info { background-color: var(--info-color); }
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }

/* ===== MODERN DASHBOARD STYLES ===== */

/* Dashboard Header with Greeting */
.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
}

.greeting-section h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.btn-new-booking {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: #fbbf24;
    color: var(--dark-color);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.btn-new-booking:hover {
    background: #f59e0b;
    color: var(--dark-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(251, 191, 36, 0.4);
}

/* Modern Statistics Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.modern-stat-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--backdrop-blur-sm);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.modern-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.modern-stat-card:hover::before {
    left: 100%;
}

.modern-stat-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px) scale(1.02);
}

.stat-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 1.75rem;
    flex-shrink: 0;
    position: relative;
    transition: all var(--transition-base);
}

.modern-stat-card:hover .stat-icon-circle {
    transform: rotate(10deg) scale(1.1);
}

.stat-icon-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.card-checkin .stat-icon-circle {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.card-checkout .stat-icon-circle {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}

.card-ongoing .stat-icon-circle {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.card-upcoming .stat-icon-circle {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

/* Stat icon color modifiers for pricing module */
.stat-icon-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.stat-icon-green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.stat-icon-orange {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
}

.stat-icon-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
    margin: 0.5rem 0;
}

.stat-trend {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-up {
    color: var(--success-color);
}

.trend-down {
    color: var(--danger-color);
}

/* Modern Bookings Card */
.modern-bookings-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.bookings-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
}

.bookings-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.bookings-table-wrapper {
    overflow-x: auto;
}

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

.modern-bookings-table thead {
    background: var(--gray-50);
}

.modern-bookings-table th {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}

.modern-bookings-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background var(--transition-fast);
}

.modern-bookings-table tbody tr:hover {
    background: var(--gray-50);
}

.modern-bookings-table td {
    padding: var(--spacing-lg);
    vertical-align: top;
}

/* Guest Cell */
.guest-cell {
    min-width: 200px;
}

.guest-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: var(--spacing-xs);
}

.booking-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.booking-id {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.booking-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.badge-direct {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

/* Dates Cell */
.dates-cell {
    min-width: 180px;
}

.date-range {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: var(--spacing-xs);
}

.date-range i {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.nights-info {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Reservation Cell */
.reservation-cell {
    min-width: 220px;
}

.reservation-main {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: var(--spacing-xs);
}

.room-details {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Price Cell */
.price-cell {
    min-width: 160px;
}

.price-amount {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.payment-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.badge-prepaid {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-partial {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.badge-pending {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge-btc {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    font-weight: 600;
}

.collection-status {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Actions Cell */
.actions-cell {
    min-width: 200px;
}

.actions-cell {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-checkin {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.btn-checkin:hover {
    background: #059669;
    border-color: #059669;
    color: white;
}

.btn-view-details {
    background: white;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-view-details:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
}

.badge-checked-in {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
}

/* Empty State */
.empty-state {
    padding: var(--spacing-2xl) var(--spacing-xl);
    text-align: center;
    color: var(--gray-500);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100);
}

.empty-state-icon i {
    font-size: 2.5rem;
    color: var(--gray-400);
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 var(--spacing-sm) 0;
}

.empty-state-text {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin: 0 0 var(--spacing-lg) 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.empty-state-actions .btn {
    white-space: nowrap;
}

/* Legacy empty state (backward compatibility) */
.empty-state i:not(.empty-state-icon i) {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-state p:not(.empty-state-text) {
    margin: 0;
    font-size: 1rem;
}

/* Custom Confirmation Modal */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.confirm-modal {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.confirm-modal-overlay.show .confirm-modal {
    transform: scale(1);
}

.confirm-modal-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.confirm-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.confirm-modal-icon.icon-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.confirm-modal-icon.icon-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.confirm-modal-icon.icon-info {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.confirm-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.confirm-modal-body {
    padding: var(--spacing-xl);
}

.confirm-modal-message {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0 0 var(--spacing-md) 0;
}

.confirm-modal-consequence {
    padding: var(--spacing-md);
    background: var(--gray-50);
    border-left: 3px solid var(--gray-400);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--gray-600);
    margin: 0;
}

.confirm-modal-consequence.consequence-danger {
    background: rgba(239, 68, 68, 0.05);
    border-left-color: var(--danger-color);
    color: var(--danger-color);
}

.confirm-modal-consequence.consequence-warning {
    background: rgba(245, 158, 11, 0.05);
    border-left-color: var(--warning-color);
    color: #b45309;
}

.confirm-modal-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
}

.confirm-modal-footer .btn {
    min-width: 100px;
}

/* =============================================================================
   RECENT BOOKINGS WIDGET
   Modern glassmorphism design with enhanced hover effects
   ============================================================================= */

.recent-bookings-widget {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur-md);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-top: var(--spacing-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.recent-bookings-widget:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.recent-bookings-widget .widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl);
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
}

.recent-bookings-widget .widget-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    letter-spacing: -0.025em;
}

.recent-bookings-widget .widget-header h3 i {
    color: var(--primary-color);
    font-size: 1.125rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.view-all-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    background: transparent;
}

.view-all-link:hover {
    color: var(--primary-dark);
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(4px);
}

.view-all-link i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.view-all-link:hover i {
    transform: translateX(3px);
}

.widget-content {
    padding: var(--spacing-lg);
}

.empty-state-small {
    padding: var(--spacing-3xl);
    text-align: center;
    color: var(--gray-400);
}

.empty-state-small i {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.3;
    color: var(--primary-color);
}

.empty-state-small p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.recent-bookings-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.recent-booking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.recent-booking-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.recent-booking-item:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.recent-booking-item:hover::before {
    opacity: 1;
}

.booking-item-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.guest-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.2) 100%);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
    flex-shrink: 0;
    border: 2px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
    transition: all var(--transition-base);
}

.recent-booking-item:hover .guest-avatar {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.2);
}

.booking-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.guest-name-recent {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.booking-item-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.booking-item-meta .booking-ref {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--gray-700);
    padding: 2px 8px;
    background: rgba(107, 114, 128, 0.08);
    border-radius: var(--radius-md);
}

.booking-item-meta .separator {
    color: var(--gray-400);
    font-weight: 300;
}

.booking-item-meta .room-info {
    color: var(--primary-color);
    font-weight: 500;
}

.booking-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-sm);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.booking-dates-small {
    font-size: 0.8125rem;
    color: var(--gray-700);
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 8px;
    background: rgba(107, 114, 128, 0.08);
    border-radius: var(--radius-md);
}

.booking-item-status {
    display: flex;
    align-items: center;
}

.status-badge-small {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
    border: 1.5px solid;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge-small.badge-confirmed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.3);
}

.status-badge-small.badge-confirmed:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

.status-badge-small.badge-tentative {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.3);
}

.status-badge-small.badge-tentative:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.4);
}

.status-badge-small.badge-checked-in {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
    color: #0891b2;
    border-color: rgba(6, 182, 212, 0.3);
}

.status-badge-small.badge-checked-in:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-color: rgba(6, 182, 212, 0.4);
}

.status-badge-small.badge-checked-out {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.15) 0%, rgba(107, 114, 128, 0.05) 100%);
    color: var(--gray-600);
    border-color: rgba(107, 114, 128, 0.3);
}

.status-badge-small.badge-checked-out:hover {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(107, 114, 128, 0.1) 100%);
    border-color: rgba(107, 114, 128, 0.4);
}

.status-badge-small.badge-cancelled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.3);
}

.status-badge-small.badge-cancelled:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.4);
}

.status-badge-small.badge-no-show {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0.05) 100%);
    color: #9333ea;
    border-color: rgba(168, 85, 247, 0.3);
}

.status-badge-small.badge-no-show:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-color: rgba(168, 85, 247, 0.4);
}

/* Responsive adjustments for Recent Bookings Widget */
@media (max-width: 768px) {
    .recent-booking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }

    .booking-item-left {
        width: 100%;
    }

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

    .guest-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

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

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

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

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

    .form-row {
        flex-direction: column;
    }

    .table-responsive {
        font-size: var(--font-size-sm);
    }

    .modern-bookings-table {
        font-size: 0.875rem;
    }

    .modern-bookings-table th,
    .modern-bookings-table td {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* ===== MODERN BOOKINGS PAGE STYLES ===== */

/* Bookings Page Container */
.bookings-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

/* Page Header */
.bookings-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
}

.bookings-page-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

/* Tab Navigation */
.bookings-tabs {
    display: flex;
    gap: var(--spacing-lg);
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: var(--spacing-xl);
}

.tab-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) 0;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--gray-600);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
    text-decoration: none;
    cursor: pointer;
}

.tab-item:hover {
    color: var(--primary-color);
}

.tab-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 var(--spacing-sm);
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 12px;
}

.tab-item.active .tab-count {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

/* Filter Bar */
.bookings-filters {
    margin-bottom: var(--spacing-xl);
}

.filters-form {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.filter-dropdown {
    position: relative;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--backdrop-blur-sm);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    box-shadow: var(--shadow-xs);
}

.filter-toggle:hover {
    border-color: var(--primary-light);
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.filter-toggle.active {
    border-color: var(--primary-color);
    background: var(--primary-extra-light);
    color: var(--primary-dark);
}

.filter-toggle i:first-child {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.filter-toggle i:last-child {
    margin-left: var(--spacing-xs);
    font-size: 0.75rem;
    color: var(--gray-400);
    transition: transform var(--transition-fast);
}

.filter-toggle.active i:last-child {
    transform: rotate(180deg);
}

.filter-label {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 250px;
    max-width: 320px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
}

.filter-dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    text-decoration: none;
    transition: background var(--transition-fast);
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--gray-50);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--spacing-xs) 0;
}

.dropdown-date-picker {
    padding: var(--spacing-md);
}

.filter-date-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
}

.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--danger-color);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-clear-filters:hover {
    color: #dc2626;
}

/* Modern Bookings Card */
.modern-bookings-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur-sm);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
}

.bookings-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.modern-bookings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1200px;
}

.modern-bookings-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modern-bookings-table th {
    padding: var(--spacing-lg) var(--spacing-lg);
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-300);
    position: relative;
}

.modern-bookings-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.modern-bookings-table th:hover::after {
    opacity: 1;
}

.modern-bookings-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-base);
}

.modern-bookings-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(59, 130, 246, 0.05) 100%);
    transform: scale(1.002);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.modern-bookings-table td {
    padding: var(--spacing-lg);
    vertical-align: top;
    font-size: var(--font-size-sm);
}

/* Guest Cell */
.guest-cell {
    min-width: 200px;
}

.guest-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-base);
}

.booking-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.booking-id {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.booking-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.badge-direct {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* Dates Cell */
.dates-cell {
    min-width: 200px;
}

.date-range {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: var(--spacing-xs);
}

.date-range i {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.nights-info {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.status-text {
    font-weight: 500;
}

.status-text.status-checked-in {
    color: #10b981;
}

.status-text.status-checked-out {
    color: #f59e0b;
}

.status-text.status-confirmed {
    color: var(--gray-600);
}

/* Reservation Cell */
.reservation-cell {
    min-width: 220px;
}

.reservation-main {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: var(--spacing-xs);
}

.room-details {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Price Cell */
.price-cell {
    min-width: 160px;
}

.price-amount {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.payment-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xs);
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.badge-prepaid {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-partial {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

.badge-pending {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge-btc {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    font-weight: 600;
}

.payment-status-text {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-left: 0.25rem;
}

.collection-status {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Action Cell */
.action-cell {
    min-width: 140px;
}

.btn-view-details {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-view-details:hover {
    background: var(--primary-color);
    color: white;
}

/* Bookings Footer */
.bookings-footer {
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    border-top: 1px solid var(--gray-200);
}

.bookings-footer p {
    margin: 0;
}

/* Custom Date Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    margin: 0;
    font-size: var(--font-size-xl);
    color: var(--dark-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--font-size-xl);
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: var(--spacing-xl);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--gray-200);
}

/* Responsive Design for Bookings Page */
@media (max-width: 1200px) {
    .bookings-table-wrapper {
        font-size: 0.875rem;
    }

    .modern-bookings-table th,
    .modern-bookings-table td {
        padding: var(--spacing-md);
    }

    .guest-cell,
    .dates-cell,
    .reservation-cell,
    .price-cell,
    .action-cell {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .bookings-page {
        padding: var(--spacing-md);
    }

    .bookings-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .bookings-page-header h1 {
        font-size: 1.5rem;
    }

    .bookings-tabs {
        gap: var(--spacing-md);
        overflow-x: auto;
        padding-bottom: var(--spacing-sm);
    }

    .tab-item {
        white-space: nowrap;
        font-size: var(--font-size-sm);
    }

    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-dropdown {
        width: 100%;
    }

    .filter-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .filter-dropdown-menu {
        left: 0;
        right: 0;
        min-width: auto;
        max-width: none;
    }

    .modern-bookings-table {
        min-width: 800px;
    }

    .modern-bookings-table th,
    .modern-bookings-table td {
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* ===== INVENTORY CALENDAR STYLES ===== */

/* Calendar Page Container */
.calendar-page {
    width: 100%;
    max-width: 100%;
}

/* Calendar Header - Controls Bar */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur-sm);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.calendar-header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.calendar-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

/* Today Button */
.btn-today {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-today:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* Navigation Arrows */
.btn-nav {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-nav:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-800);
}

/* Month Display */
.calendar-month-display {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

/* Room Filter Dropdown */
.calendar-header-center .filter-dropdown {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.calendar-header-center label {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    font-weight: 500;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-select:hover {
    border-color: var(--gray-400);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Book or Block Button */
.btn-book-block {
    padding: 0.625rem 1.25rem;
    background: var(--warning-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-book-block:hover {
    background: #d97706;
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Calendar Content Layout */
.calendar-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--spacing-lg);
    align-items: start;
}

/* Calendar Main Grid Container */
.calendar-main {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Day Headers */
.calendar-day-header {
    background: var(--gray-50);
    padding: var(--spacing-md);
    text-align: center;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Calendar Cells */
.calendar-cell {
    background: white;
    min-height: 120px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-base);
    border-radius: var(--radius-sm);
}

.calendar-cell:not(.calendar-cell-empty):not(.calendar-past-date):hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 197, 253, 0.1) 100%);
    transform: translateY(-2px) scale(1.03);
    z-index: 10;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
}

.calendar-cell:not(.calendar-cell-empty):not(.calendar-past-date):hover .calendar-availability {
    transform: scale(1.15);
    color: var(--primary-color);
}

.calendar-cell-empty {
    background: var(--gray-50);
    cursor: default;
}

.calendar-past-date {
    background: var(--gray-50);
    opacity: 0.5;
    cursor: default;
}

.calendar-past-date:hover {
    transform: none;
    box-shadow: none;
}

/* Day Number */
.calendar-day-number {
    align-self: flex-start;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

/* Availability Number (large centered number) */
.calendar-availability {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--success-color);
    margin: auto 0;
    line-height: 1;
}

/* Status Dots */
.calendar-status-dots {
    display: flex;
    gap: 5px;
    margin-top: auto;
    padding-top: 0.375rem;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-available {
    background-color: var(--success-color);
}

.dot-confirmed {
    background-color: var(--primary-color);
}

.dot-tentative {
    background-color: var(--warning-color);
}

.dot-blocked {
    background-color: var(--danger-color);
}

/* Room Type Indicators in Calendar Cells */
.calendar-room-types {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.room-type-indicator {
    width: 4px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
    transition: all var(--transition-fast);
}

.room-type-indicator:hover {
    transform: scaleY(1.2);
}

/* Current Date Highlight */
.calendar-current-date {
    border: 2px solid var(--primary-color);
    background: white;
}

.calendar-current-date .calendar-day-number {
    background: var(--primary-color);
    color: white;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.8125rem;
}

/* Selected Date Highlight */
.calendar-selected-date {
    background: var(--gray-100);
    box-shadow: inset 0 0 0 2px var(--gray-400);
}

/* Calendar Sidebar */
.calendar-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    position: sticky;
    top: var(--spacing-lg);
}

/* Sidebar Date Header */
.sidebar-date-header {
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: var(--spacing-lg);
}

.sidebar-date-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

/* Sidebar Statistics - 2x2 Grid */
.sidebar-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: var(--spacing-xl);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.75rem;
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    transition: all var(--transition-fast);
    text-align: center;
    min-height: 110px;
}

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

.stat-box .stat-dot {
    width: 12px;
    height: 12px;
    margin-bottom: 0.5rem;
}

.stat-box .stat-label {
    font-size: 0.8125rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0.625rem;
}

.stat-box .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

/* Stat Box Color Variants */
.stat-box-available {
    background: rgba(16, 185, 129, 0.08);
}

.stat-box-available .stat-value {
    color: var(--success-color);
}

.stat-box-confirmed {
    background: rgba(37, 99, 235, 0.08);
}

.stat-box-confirmed .stat-value {
    color: var(--primary-color);
}

.stat-box-tentative {
    background: rgba(245, 158, 11, 0.08);
}

.stat-box-tentative .stat-value {
    color: var(--warning-color);
}

.stat-box-blocked {
    background: rgba(239, 68, 68, 0.08);
}

.stat-box-blocked .stat-value {
    color: var(--danger-color);
}

.stat-dot {
    width: 10px;
    height: 10px;
}

/* Room Type Legend */
.room-type-legend {
    border-top: 1px solid var(--gray-200);
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.room-type-legend .legend-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0 var(--spacing-md) 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
}

.legend-color-box {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-label {
    color: var(--gray-700);
    font-weight: 500;
}

/* Sidebar Sections */
.sidebar-section {
    border-top: 1px solid var(--gray-200);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.sidebar-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.section-header-content h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 0.25rem 0;
}

.section-subtitle {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 400;
    margin: 0;
}

.sidebar-section-header h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.btn-toggle {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-toggle:hover {
    color: var(--gray-700);
}

/* Sidebar Section Content */
.sidebar-section-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sidebar-section-content.collapsed {
    display: none;
}

/* Room Type Groups */
.room-type-group {
    margin-bottom: var(--spacing-md);
}

.room-type-header {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
}

.room-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.room-item {
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    font-weight: 500;
}

.room-item.blocked {
    background: var(--danger-color);
    color: white;
}

.room-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Booking Items */
.booking-item {
    padding: var(--spacing-sm);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.booking-item:hover {
    background: var(--gray-100);
}

.booking-item a {
    text-decoration: none;
    display: block;
}

.booking-room {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.booking-guest {
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.booking-ref {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-family: monospace;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .calendar-content {
        grid-template-columns: 1fr;
    }

    .calendar-sidebar {
        position: static;
    }

    .calendar-header {
        flex-direction: column;
        align-items: stretch;
    }

    .calendar-header-left,
    .calendar-header-center,
    .calendar-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .calendar-header-center {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .calendar-grid {
        gap: 0;
    }

    .calendar-cell {
        min-height: 90px;
        padding: 0.375rem;
    }

    .calendar-day-number {
        font-size: 0.6875rem;
    }

    .calendar-availability {
        font-size: 1.75rem;
    }

    .calendar-status-dots {
        gap: 3px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .calendar-month-display {
        font-size: var(--font-size-xl);
    }

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

    .sidebar-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-box {
        min-height: 90px;
        padding: 1rem 0.75rem;
    }

    .stat-box .stat-value {
        font-size: 1.75rem;
    }
}

@media print {
    .navbar,
    .page-actions,
    .btn,
    .footer {
        display: none;
    }

    .main-content {
        padding: 0;
    }
}

/* ===== SETTLEMENT MODULE STYLES ===== */

/* Settlement Page Layout */
.settlement-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.settlement-page .page-header {
    margin-bottom: var(--spacing-xl);
}

.settlement-page .header-subtitle {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}

/* Settlement Tabs */
.settlement-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    border-bottom: 2px solid var(--gray-200);
}

.settlement-tab {
    padding: var(--spacing-md) var(--spacing-xl);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray-600);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: -2px;
}

.settlement-tab:hover {
    color: var(--primary-color);
    background: var(--gray-50);
}

.settlement-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: white;
}

/* Settlement Header Card */
.settlement-header-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--spacing-xl);
    align-items: center;
}

.settlement-period label,
.settlement-amount-display label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.period-dates {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--dark-color);
}

.settlement-amount-display {
    text-align: right;
}

.amount-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
}

/* Download Button */
.btn-download {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-download:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.settlement-actions .dropdown {
    position: relative;
}

.settlement-actions .dropdown-menu {
    position: absolute;
    top: calc(100% + var(--spacing-sm));
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: var(--spacing-sm);
    display: none;
    z-index: 100;
}

.settlement-actions .dropdown-menu.show {
    display: block;
}

.settlement-actions .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.settlement-actions .dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

/* Settlement Table Card */
.settlement-table-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.settlement-table-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
}

.settlement-table-header h3 {
    margin: 0;
    font-size: var(--font-size-xl);
    color: var(--dark-color);
}

/* Settlement Table */
.settlement-table {
    padding: 0;
}

.settlement-table-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--gray-100);
}

.settlement-table-header-row {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
}

.row-description {
    font-weight: 600;
}

.row-amount-header {
    text-align: right;
    font-weight: 600;
}

/* Settlement Rows */
.settlement-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition-fast);
}

.settlement-row:hover {
    background: var(--gray-50);
}

.settlement-row-expandable {
    cursor: pointer;
}

.settlement-row-expandable:hover {
    background: var(--light-color);
}

.row-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.expand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: transform var(--transition-fast);
}

.expand-icon i {
    font-size: 1.1rem;
}

.settlement-row-expandable.expanded .expand-icon {
    transform: rotate(90deg);
}

.row-label {
    flex: 1;
    font-size: var(--font-size-base);
    color: var(--gray-800);
}

/* Info Icon with Tooltip */
.info-icon {
    color: var(--info-color);
    font-size: 0.9rem;
    cursor: help;
    transition: color var(--transition-fast);
}

.info-icon:hover {
    color: var(--primary-color);
}

/* Settlement Tooltip */
.settlement-tooltip {
    position: fixed;
    background: var(--gray-900);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    max-width: 300px;
    z-index: 1000;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
    line-height: 1.4;
}

.settlement-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--gray-900);
}

/* Amount Styling */
.row-amount {
    text-align: right;
    font-size: var(--font-size-lg);
    font-weight: 500;
    white-space: nowrap;
}

.settlement-amount-positive {
    color: var(--dark-color);
}

.settlement-amount-negative {
    color: var(--danger-color);
}

/* Sub-items (Indented Rows) */
.settlement-row-sub {
    background: var(--gray-50);
    padding-left: calc(var(--spacing-xl) + 40px);
}

.settlement-row-sub .row-label-indent {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    padding-left: var(--spacing-lg);
    position: relative;
}

.settlement-row-sub .row-label-indent::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 12px;
    height: 2px;
    background: var(--gray-300);
}

.settlement-row-sub .row-amount {
    font-size: var(--font-size-base);
}

.settlement-row-sub.hidden {
    display: none;
}

/* Subtotal Row */
.settlement-row-subtotal {
    background: var(--gray-100);
    border-top: 2px solid var(--gray-300);
    border-bottom: 2px solid var(--gray-300);
}

.settlement-row-subtotal .row-label {
    font-weight: 600;
    color: var(--dark-color);
}

.settlement-row-subtotal .row-amount {
    font-size: var(--font-size-xl);
    font-weight: 600;
}

/* Total Row (Final) */
.settlement-total-row {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: none;
    border-top: 3px solid var(--primary-color);
    padding: var(--spacing-xl);
}

.settlement-total-row .row-label {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--dark-color);
}

.settlement-total-row .row-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Settlement Notes Section */
.settlement-notes {
    padding: var(--spacing-xl);
    background: var(--light-color);
    border-top: 1px solid var(--gray-200);
}

.settlement-notes h4 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-lg);
    color: var(--dark-color);
    margin-bottom: var(--spacing-md);
}

.settlement-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settlement-notes li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--gray-700);
    line-height: 1.6;
}

.settlement-notes li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.settlement-notes strong {
    color: var(--dark-color);
}

/* Previous Settlement Selector */
.settlement-selector-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.selector-header {
    margin-bottom: var(--spacing-xl);
}

.selector-header h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    color: var(--dark-color);
}

.selector-header p {
    color: var(--gray-500);
    margin: 0;
}

/* Previous Settlements List */
.previous-settlements-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.settlement-list-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-lg);
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.settlement-list-item:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.settlement-list-item.active {
    background: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.settlement-period-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.period-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-base);
    color: var(--gray-700);
    font-weight: 500;
}

.period-label i {
    color: var(--primary-color);
}

.period-amount {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--dark-color);
}

.settlement-arrow {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.settlement-list-item:hover .settlement-arrow,
.settlement-list-item.active .settlement-arrow {
    color: var(--primary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--gray-500);
}

.empty-state i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: var(--spacing-lg);
}

.empty-state h4 {
    color: var(--gray-600);
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    margin: 0;
}

/* Responsive Design for Settlement Page */
@media (max-width: 1024px) {
    .settlement-header-card {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .settlement-amount-display {
        text-align: left;
    }

    .settlement-actions {
        display: flex;
        justify-content: flex-start;
    }

    .amount-large {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .settlement-page {
        padding: var(--spacing-md);
    }

    .settlement-tabs {
        gap: 0;
        overflow-x: auto;
    }

    .settlement-tab {
        padding: var(--spacing-md);
        font-size: var(--font-size-sm);
        white-space: nowrap;
    }

    .settlement-header-card {
        padding: var(--spacing-lg);
    }

    .amount-large {
        font-size: 1.75rem;
    }

    .settlement-table-card {
        border-radius: var(--radius-lg);
    }

    .settlement-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .row-header {
        gap: var(--spacing-sm);
        flex-wrap: wrap;
    }

    .row-amount {
        text-align: left;
        font-size: var(--font-size-lg);
    }

    .settlement-row-sub {
        padding-left: calc(var(--spacing-lg) + 24px);
    }

    .settlement-total-row .row-amount {
        font-size: 1.5rem;
    }

    .settlement-notes {
        padding: var(--spacing-lg);
    }

    .settlement-list-item {
        grid-template-columns: 1fr auto;
        padding: var(--spacing-md);
    }

    .period-amount {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 480px) {
    .settlement-page .page-header h1 {
        font-size: 1.5rem;
    }

    .amount-large {
        font-size: 1.5rem;
    }

    .btn-download {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }

    .settlement-table-header h3 {
        font-size: var(--font-size-lg);
    }

    .row-label {
        font-size: var(--font-size-sm);
    }

    .row-amount {
        font-size: var(--font-size-base);
    }

    .settlement-total-row .row-amount {
        font-size: 1.25rem;
    }

    .settlement-notes li {
        font-size: var(--font-size-sm);
    }
}

/* ===== PREVIOUS SETTLEMENT LIST STYLES ===== */

/* Previous settlement list container */
.previous-settlement-list {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* List header */
.settlement-list-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: var(--gray-100);
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--gray-200);
}

.settlement-list-header .header-cell {
    display: flex;
    align-items: center;
}

.settlement-list-header .amount-col {
    justify-content: flex-end;
}

.settlement-list-header .actions-col {
    justify-content: flex-end;
}

/* Individual settlement row */
.settlement-list-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
    transition: background-color var(--transition-fast);
}

.settlement-list-row:hover {
    background-color: var(--gray-50);
}

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

/* Period cell */
.settlement-period-cell {
    font-size: var(--font-size-base);
    color: var(--gray-900);
    font-weight: 500;
}

/* Amount cell */
.settlement-amount-cell {
    text-align: right;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--dark-color);
}

/* Actions cell */
.settlement-actions-cell {
    display: flex;
    justify-content: flex-end;
}

.settlement-actions-group {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

/* Download button with dropdown */
.dropdown-container {
    position: relative;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    border: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    white-space: nowrap;
}

.btn-download:hover {
    background: var(--primary-dark);
}

.btn-download i.fa-chevron-down {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Download dropdown menu */
.download-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.download-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--gray-700);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: background-color var(--transition-fast);
    border-bottom: 1px solid var(--gray-100);
}

.download-dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.download-dropdown-menu .dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
}

.download-dropdown-menu .dropdown-item i {
    color: var(--gray-500);
    width: 16px;
    text-align: center;
}

.download-dropdown-menu .dropdown-item:hover i {
    color: var(--primary-color);
}

/* View details button */
.btn-view-details {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: white;
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-view-details:hover {
    background: var(--primary-color);
    color: white;
}

/* Empty state card */
.empty-state-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.empty-state-card i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: var(--spacing-lg);
}

.empty-state-card h3 {
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
}

.empty-state-card p {
    color: var(--gray-500);
    font-size: var(--font-size-base);
}

/* Responsive styles for Previous Settlement List */
@media (max-width: 1024px) {
    .settlement-list-header,
    .settlement-list-row {
        grid-template-columns: 1.5fr 1fr 1.2fr;
    }

    .settlement-actions-group {
        flex-direction: column;
        gap: 0.375rem;
    }

    .btn-download,
    .btn-view-details {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .settlement-list-header {
        display: none;
    }

    .settlement-list-row {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
        padding: var(--spacing-lg);
        align-items: flex-start;
    }

    .settlement-period-cell {
        font-size: var(--font-size-base);
        width: 100%;
    }

    .settlement-amount-cell {
        font-size: 1.5rem;
        text-align: left;
        width: 100%;
        color: var(--primary-color);
    }

    .settlement-actions-cell {
        width: 100%;
        justify-content: stretch;
    }

    .settlement-actions-group {
        width: 100%;
        flex-direction: row;
    }

    .btn-download,
    .btn-view-details {
        flex: 1;
        justify-content: center;
    }

    .download-dropdown-menu {
        right: auto;
        left: 0;
    }
}

@media (max-width: 480px) {
    .previous-settlement-list {
        border-radius: var(--radius-lg);
    }

    .settlement-list-row {
        padding: var(--spacing-md);
    }

    .settlement-actions-group {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .btn-download,
    .btn-view-details {
        font-size: var(--font-size-sm);
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .settlement-amount-cell {
        font-size: 1.25rem;
    }
}

/* ========================================
   BOOKING SOURCES STYLING
   ======================================== */

/* Source Badge Colors - Category-based */
.source-badge-ota,
.badge.source-badge-ota {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.source-badge-direct,
.badge.source-badge-direct {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.source-badge-mobile,
.badge.source-badge-mobile {
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.source-badge-corporate,
.badge.source-badge-corporate {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.source-badge-offline,
.badge.source-badge-offline {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.source-badge-other,
.badge.source-badge-other {
    background-color: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

/* Booking Badge in List - Matches source categories */
.booking-badge.source-badge-ota,
.booking-badge.source-badge-direct,
.booking-badge.source-badge-mobile,
.booking-badge.source-badge-corporate,
.booking-badge.source-badge-offline,
.booking-badge.source-badge-other {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* =============================================================================
   TOP BOOKING SOURCES WIDGET
   Modern glassmorphism design with progress bars and color-coded badges
   ============================================================================= */

.booking-sources-widget {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--backdrop-blur-md);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-top: var(--spacing-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.booking-sources-widget:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.booking-sources-widget .widget-header {
    padding: var(--spacing-xl);
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-sources-widget .widget-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    letter-spacing: -0.025em;
}

.booking-sources-widget .widget-header h3 i {
    color: var(--primary-color);
    font-size: 1.125rem;
    animation: pulse 2s ease-in-out infinite;
}

.widget-period {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(107, 114, 128, 0.08);
    border-radius: var(--radius-full);
    letter-spacing: 0.025em;
}

.booking-sources-widget .widget-content {
    padding: var(--spacing-xl);
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.source-item {
    padding: var(--spacing-lg);
    background: transparent;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.source-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(16, 185, 129, 0.02) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.source-item:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(59, 130, 246, 0.15);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.source-item:hover::before {
    opacity: 1;
}

.source-item-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.source-rank {
    font-size: 2rem;
    font-weight: 800;
    color: transparent;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--success-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.source-info {
    flex: 1;
    min-width: 0;
}

.source-name {
    margin-bottom: var(--spacing-xs);
}

.source-name .badge {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1.5px solid;
    transition: all var(--transition-fast);
    text-transform: capitalize;
    letter-spacing: 0.025em;
}

/* Color-coded source badges based on category */
.badge.source-ota {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.3);
}

.badge.source-ota:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.4);
}

.badge.source-direct {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge.source-direct:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

.badge.source-mobile {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.05) 100%);
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.3);
}

.badge.source-mobile:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-color: rgba(37, 99, 235, 0.4);
}

.badge.source-corporate {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, rgba(147, 51, 234, 0.05) 100%);
    color: #9333ea;
    border-color: rgba(147, 51, 234, 0.3);
}

.badge.source-corporate:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(147, 51, 234, 0.1) 100%);
    border-color: rgba(147, 51, 234, 0.4);
}

.badge.source-offline {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.3);
}

.badge.source-offline:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.4);
}

.badge.source-other {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.15) 0%, rgba(107, 114, 128, 0.05) 100%);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.3);
}

.badge.source-other:hover {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2) 0%, rgba(107, 114, 128, 0.1) 100%);
    border-color: rgba(107, 114, 128, 0.4);
}

.source-category {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.source-stats {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.source-count {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.source-revenue {
    font-size: 0.8125rem;
    color: var(--gray-600);
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: var(--radius-md);
}

.source-progress {
    width: 100%;
    height: 8px;
    background: rgba(229, 231, 235, 0.6);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.source-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--success-color) 100%);
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.source-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive adjustments for Top Booking Sources Widget */
@media (max-width: 768px) {
    .source-item-header {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .source-rank {
        min-width: 40px;
        font-size: 1.5rem;
    }

    .source-stats {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .source-progress {
        height: 6px;
    }
}

/* Dropdown enhancements for booking source filter */
.filter-dropdown .dropdown-header {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f9fafb;
}

.filter-dropdown .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.25rem 0;
}

.filter-dropdown .dropdown-item {
    padding: 0.625rem 1rem;
    transition: all 0.15s;
}

.filter-dropdown .dropdown-item:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

/* Note: Empty state styling is defined above in Recent Bookings Widget section */
/* Note: Responsive adjustments for booking sources are defined in the widget section above */

/* Badge sizing adjustments for view page */
.badge-lg.source-badge-ota,
.badge-lg.source-badge-direct,
.badge-lg.source-badge-mobile,
.badge-lg.source-badge-corporate,
.badge-lg.source-badge-offline,
.badge-lg.source-badge-other {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Ensure booking source dropdown in forms is properly styled */
#booking_source_id {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

/* Optgroup styling */
#booking_source_id optgroup {
    font-weight: 600;
    color: var(--text-primary);
    font-style: normal;
}

#booking_source_id option {
    padding: 0.5rem;
    color: var(--text-primary);
}

/* Filter dropdown menu max height for long source lists */
#booking-source-dropdown {
    max-height: 400px;
    overflow-y: auto;
}

#booking-source-dropdown::-webkit-scrollbar {
    width: 6px;
}

#booking-source-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#booking-source-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#booking-source-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}



/* =============================================================================
   UI/UX ENHANCEMENTS - LOADING STATES & SKELETONS
   ============================================================================= */

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.loading-spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 6px;
}

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

/* Loading Container */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl);
    gap: var(--spacing-lg);
}

.loading-text {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Skeleton Screens */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-200) 0%,
        var(--gray-100) 50%,
        var(--gray-200) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: var(--spacing-sm);
}

.skeleton-text-sm {
    height: 0.75rem;
}

.skeleton-text-lg {
    height: 1.5rem;
}

.skeleton-title {
    height: 2rem;
    width: 60%;
    margin-bottom: var(--spacing-lg);
}

.skeleton-card {
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
}

.skeleton-stat-card {
    height: 120px;
    border-radius: var(--radius-2xl);
}

.skeleton-table-row {
    height: 60px;
    margin-bottom: var(--spacing-xs);
}

.skeleton-circle {
    border-radius: 50%;
    width: 64px;
    height: 64px;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer-slide 2s infinite;
}

@keyframes shimmer-slide {
    100% { transform: translateX(100%); }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

.fade-in-delay-1 { animation-delay: 0.1s; animation-fill-mode: backwards; }
.fade-in-delay-2 { animation-delay: 0.2s; animation-fill-mode: backwards; }
.fade-in-delay-3 { animation-delay: 0.3s; animation-fill-mode: backwards; }
.fade-in-delay-4 { animation-delay: 0.4s; animation-fill-mode: backwards; }

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Slide In Animation */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInFromRight 0.4s ease-out;
}

/* =============================================================================
   ENHANCED MOBILE RESPONSIVENESS
   ============================================================================= */

@media (max-width: 768px) {
    /* Enhanced Touch Targets */
    .btn {
        min-height: 44px;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .filter-toggle {
        min-height: 44px;
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .calendar-cell {
        min-height: 80px;
        padding: 0.5rem;
    }

    /* Improved Spacing */
    .modern-stat-card {
        padding: var(--spacing-lg);
    }

    .card {
        margin-bottom: var(--spacing-md);
    }

    /* Better Table Scrolling */
    .bookings-table-wrapper {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Sticky Header Adjustments */
    .modern-bookings-table thead {
        position: sticky;
        top: 0;
        z-index: 20;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    /* Improved Modal on Mobile */
    .confirm-modal {
        max-width: 90%;
        margin: var(--spacing-md);
    }

    /* Better Form Controls */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }

    /* Simplified Animations on Mobile */
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .skeleton {
        animation: none;
        background: var(--gray-200);
    }

    .shimmer::after {
        animation: none;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Placeholder for future dark mode implementation */
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
    body {
        background: white;
    }

    .navbar,
    .page-actions,
    .btn,
    .filter-bar,
    .empty-state-actions {
        display: none;
    }

    .card,
    .modern-bookings-card,
    .modern-stat-card {
        box-shadow: none;
        border: 1px solid var(--gray-300);
        page-break-inside: avoid;
    }

    .modern-bookings-table {
        font-size: 10pt;
    }

    .modern-bookings-table th,
    .modern-bookings-table td {
        padding: 0.5rem;
    }
}

/* =============================================================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================================================= */

/* Focus Visible (Keyboard Navigation) */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Skip to Main Content Link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) 0;
    z-index: 9999;
}

.skip-to-main:focus {
    top: 0;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }

    .card {
        border: 2px solid var(--gray-400);
    }
}

/* ===================================================================
   PRICING MODULE STYLES
   =================================================================== */

/* Pricing Menu Cards */
.pricing-menu-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    display: block;
    text-decoration: none;
    color: inherit;
}

.pricing-menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    text-decoration: none;
}

.menu-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.75rem;
}

.pricing-menu-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.pricing-menu-card p {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.menu-card-footer {
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

/* Modern Card Styles */
.modern-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.modern-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
}

.modern-card .card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.modern-card .card-body {
    padding: 0;
}

/* Pricing Table Styles */
.pricing-table {
    border-collapse: collapse;
    width: 100%;
}

.pricing-table th {
    background: #f9fafb;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    border-bottom: 2px solid #e5e7eb;
}

.pricing-table td {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.pricing-table tr:hover {
    background: #f9fafb;
}

/* Editable Fields for Room Pricing */
.editable-field {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.editable-field:hover .display-value {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.editable-field .display-value {
    transition: all 0.2s ease;
}

.editable-field .edit-input {
    display: inline-block;
}

.editing {
    background: #fef3c7 !important;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    margin: 0;
    font-weight: 500;
    color: #374151;
}

/* Seasonal Pricing Specific */
.inactive-row {
    opacity: 0.6;
    background: #f9fafb;
}

.current-season {
    background: #f0fdf4;
}

.seasonal-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Pricing Template Cards */
.template-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.template-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.template-card i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.template-card strong {
    font-size: 1.125rem;
    color: #1f2937;
    display: block;
}

.template-card span {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Pricing Rules Specific */
.current-rule {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}

/* Modal Overlay and Content */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #1f2937;
    background: #f3f4f6;
}

.modal-body {
    padding: 1.5rem;
}

/* Bulk Update Preview */
.preview-summary {
    background: #eff6ff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.preview-summary > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* Required Field Indicator */
.required {
    color: #ef4444;
    font-weight: 600;
}

/* Responsive Pricing Module */
@media (max-width: 1024px) {
    .pricing-menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-actions {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .header-actions .btn {
        flex: 1;
    }
}

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

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group label {
        margin-bottom: 0.25rem;
    }

    .preview-summary > div {
        grid-template-columns: 1fr;
    }

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

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .bookings-table-wrapper {
        overflow-x: auto;
    }

    .template-card {
        padding: 1rem;
    }
}

/* Pricing Badge Styles */
.badge-info {
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.badge-secondary {
    background-color: rgba(107, 114, 128, 0.1);
    color: #4b5563;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Empty State Styling */
.empty-state-icon {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: #6b7280;
    margin-bottom: 1rem;
}

/* =============================================================================
   END OF UI/UX ENHANCEMENTS
   ============================================================================= */
