@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    
    /* Colors */
    --bg-primary: #f8faff;
    --bg-secondary: #ffffff;
    --bg-accent: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-color: rgba(15, 23, 42, 0.08);
    
    /* 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);
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.15s ease-in-out;
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid var(--primary-gradient);
    outline-offset: 2px;
}

.btn:focus,
.sidebar a:focus,
nav a:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Animated Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(240, 147, 251, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: floatBackground 30s ease-in-out infinite;
}

@keyframes floatBackground {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Header & Navigation */
header {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

header:hover {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-toggle {
    display: none !important; /* Permanently hidden */
}

/* Mobile menu toggle - hidden by default, shown on mobile */
.mobile-menu-toggle {
    display: none;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-image {
    height: 32px;
    width: auto;
    max-width: 100px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo::before {
    content: none;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-accent);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.user-info:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Top Navigation */
nav {
    position: relative;
    flex: 1;
    max-width: 100%;
}

nav ul,
nav #desktop-nav {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    background: transparent;
}

nav a.active {
    color: white;
    background: var(--primary-gradient);
}

nav a::before {
    display: none;
}

nav a:hover {
    color: white;
    background: var(--primary-gradient);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sidebar Navigation */
.sidebar {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    width: 280px;
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
    position: fixed;
    left: 0;
    top: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 900;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0.3;
}

.sidebar-brand {
    padding: 0 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.sidebar-brand h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-brand h3::before {
    content: '⚡';
    font-size: 1.2rem;
}

.sidebar ul {
    list-style: none;
    padding: 0 1rem;
}

.sidebar li {
    margin: 0.5rem 0;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar a::before {
    display: none;
}

.sidebar a .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-base);
}

.sidebar a:hover,
.sidebar a.active {
    color: white;
    background: var(--primary-gradient);
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.sidebar a:hover .icon,
.sidebar a.active .icon {
    transform: scale(1.1);
}

/* Sidebar Icons */
.sidebar a[href*="dashboard"] .icon::before { content: '📊'; }
.sidebar a[href*="halls"] .icon::before { content: '🏛️'; }
.sidebar a[href*="bookings"] .icon::before { content: '📅'; }
.sidebar a[href*="users"] .icon::before { content: '👥'; }
.sidebar a[href*="reports"] .icon::before { content: '📈'; }
.sidebar a[href*="menus"] .icon::before { content: '🍽️'; }
.sidebar a[href*="amenities"] .icon::before { content: '✨'; }
.sidebar a[href*="expenses"] .icon::before { content: '💰'; }

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: calc(100vh - 80px);
    background: transparent;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-title::before {
    content: attr(data-icon);
    font-size: 2rem;
    -webkit-text-fill-color: initial;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.page-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-base);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 126, 234, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    transform: translate(30px, -30px);
    transition: var(--transition-base);
    opacity: 0.1;
}

.stat-card.primary::before {
    background: var(--primary-gradient);
}

.stat-card.success::before {
    background: var(--success-gradient);
}

.stat-card.warning::before {
    background: var(--warning-gradient);
}

.stat-card.danger::before {
    background: var(--danger-gradient);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
    transform: translate(30px, -30px) scale(1.2);
    opacity: 0.15;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.stat-card.primary .stat-icon {
    background: var(--primary-gradient);
}

.stat-card.success .stat-icon {
    background: var(--success-gradient);
}

.stat-card.warning .stat-icon {
    background: var(--warning-gradient);
}

.stat-card.danger .stat-icon {
    background: var(--danger-gradient);
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-info .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.stat-change::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.stat-change.positive::before {
    border-bottom: 6px solid #10b981;
}

.stat-change.negative::before {
    border-top: 6px solid #ef4444;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group.floating {
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-secondary);
    transition: var(--transition-base);
    color: var(--text-primary);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
textarea:hover,
select:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    z-index: 1;
}

.input-group input {
    padding-left: 3rem;
}

/* Modern Buttons */
button, .btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

button:hover,
.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-accent);
    border-color: rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
    border: 2px solid transparent;
}

.btn-success:hover {
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
    border: 2px solid transparent;
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(250, 112, 154, 0.4);
}

.btn-warning {
    background: var(--warning-gradient);
    color: white;
    border: 2px solid transparent;
}

.btn-warning:hover {
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-info:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-outline-primary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    color: white;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-width: 100px;
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    min-width: 150px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 1rem;
    min-width: auto;
    width: 48px;
    height: 48px;
}

.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: var(--shadow-xl);
}

.btn-floating:hover {
    transform: scale(1.1);
}

/* Modern Tables */
.table-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

thead {
    background: var(--primary-gradient);
    color: white;
}

th {
    padding: 1.5rem 1.25rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    border: none;
}

td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

tbody tr {
    transition: var(--transition-base);
}

tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: scale(1.01);
}

tbody tr:last-child td {
    border-bottom: none;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-confirmed {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-completed {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.priority-medium {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
}

.priority-low {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.stat-card h3 {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-card .number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.stat-card.primary {
    border-left-color: #667eea;
}

.stat-card.success {
    border-left-color: #27ae60;
}

.stat-card.success .number {
    color: #27ae60;
}

.stat-card.danger {
    border-left-color: #e74c3c;
}

.stat-card.danger .number {
    color: #e74c3c;
}

.stat-card.warning {
    border-left-color: #f39c12;
}

.stat-card.warning .number {
    color: #f39c12;
}

/* Calendar */
.calendar {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header h3 {
    font-size: 1.5rem;
}

.calendar-header button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.weekday {
    text-align: center;
    font-weight: bold;
    color: #667eea;
    padding: 0.5rem;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.day {
    aspect-ratio: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.day:hover:not(.empty) {
    background-color: #667eea;
    color: white;
}

.day.empty {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.day.selected {
    background-color: #667eea;
    color: white;
    font-weight: bold;
}

.day.booked {
    background-color: #e74c3c;
    color: white;
}

.day.partially-booked {
    background-color: #f39c12;
    color: white;
}

/* Booking Form */
.booking-form {
    max-width: 600px;
}

.shift-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.shift-option {
    flex: 1;
}

.shift-option input[type="radio"] {
    display: none;
}

.shift-option label {
    display: block;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.shift-option input[type="radio"]:checked + label {
    border-color: #667eea;
    background-color: #f0f4ff;
    color: #667eea;
}

.shift-option.disabled label {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

/* Menu Items & Amenities Selection */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.item-card {
    border: 2px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.item-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.item-card.selected {
    border-color: #667eea;
    background-color: #f0f4ff;
}

.item-card input[type="checkbox"] {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.item-price {
    color: #667eea;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #27ae60;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #e74c3c;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #3498db;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #f39c12;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 1rem;
}

.modal-header h3 {
    color: #667eea;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    transition: var(--transition-base);
    border-radius: var(--radius-md);
    line-height: 1;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: var(--bg-accent);
    transform: scale(1.05);
}

.mobile-menu-toggle span {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 899;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

/* Enhanced Responsive Design */
@media (min-width: 769px) {
    /* Ensure desktop navigation is always visible */
    nav ul,
    nav #desktop-nav {
        display: flex !important;
        position: static;
        background: none;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        flex-direction: row;
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-logout {
        display: none;
    }
    
    .desktop-logout {
        display: inline-block;
    }
}

@media (max-width: 1200px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 260px;
    }
    
    .main-content {
        margin-left: 260px;
    }
    
    /* Make navigation more compact on medium screens */
    nav a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .stat-card .number {
        font-size: 2.2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    /* Header navigation becomes scrollable */
    nav ul {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 0.5rem;
    }
    
    nav ul::-webkit-scrollbar {
        display: none;
    }
    
    /* Table becomes scrollable */
    .table-responsive {
        overflow-x: auto;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
    }
    
    table {
        min-width: 600px;
    }
}

@media (max-width: 768px) {
    /* Mobile-first sidebar - hidden by default */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 280px;
        z-index: 950;
    }
    
    .sidebar.active {
        transform: translateX(0);
        z-index: 950;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* Header adjustments */
    header {
        padding: 0.75rem 1rem;
        position: sticky;
        top: 0;
    }
    
    .header-content {
        gap: 0.5rem;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo-image {
        height: 28px;
        max-width: 80px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    /* Hide desktop navigation on mobile */
    nav #desktop-nav {
        display: none !important;
    }
    
    nav {
        display: none !important;
    }
    
    .user-info {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .user-details {
        display: none;
    }
    
    .user-info .btn,
    .logout-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    /* Dashboard grid adjustments */
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.2rem;
    }
    
    .stat-card .number {
        font-size: 1.8rem;
    }
    
    .stat-card h3 {
        font-size: 0.9rem;
    }
    
    /* Page header adjustments */
    .page-header {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }
    
    .page-title {
        font-size: 1.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    /* Card adjustments */
    .card {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    /* Form adjustments */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Table responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-lg);
        margin-bottom: 1rem;
        width: calc(100% + 2rem);
        max-width: calc(100vw - 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    table {
        font-size: 0.85rem;
        min-width: 800px;
        width: 100%;
    }
    
    th, td {
        padding: 0.6rem 0.4rem;
        white-space: nowrap;
    }
    
    /* Action buttons stack */
    .action-buttons {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .action-buttons .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    body {
        font-size: 13px;
    }
    
    header {
        padding: 0.6rem 0.75rem;
    }
    
    .header-content {
        gap: 0.4rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo-image {
        height: 24px;
        max-width: 60px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    .logo::before {
        font-size: 1.2rem;
    }
    
    .user-info {
        padding: 0.3rem 0.5rem;
        gap: 0.4rem;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .user-name,
    .user-role {
        display: none; /* Hide username on very small screens */
    }
    
    .user-info .btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .page-header {
        margin-bottom: 1.5rem;
        padding: 0.75rem 0;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-title::before {
        font-size: 1.3rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .number {
        font-size: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 0.8rem;
    }
    
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    /* Form inputs */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    /* Modal adjustments */
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
    
    /* Sidebar adjustments */
    .sidebar {
        width: 260px;
    }
    
    .sidebar a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .sidebar-brand h3 {
        font-size: 1rem;
    }
}

/* Landscape orientation for tablets */
@media (max-width: 992px) and (orientation: landscape) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card .number {
        font-size: 1.8rem;
    }
}

/* Error/Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

/* Print styles */
@media print {
    .sidebar,
    header,
    .mobile-menu-toggle,
    .action-buttons,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12px !important;
        background: white !important;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: #10b981; }
.text-danger { color: #ef4444; }
.text-warning { color: #f59e0b; }
.text-info { color: #3b82f6; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.px-1 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Responsive visibility classes */
.d-md-none { display: none; }
.d-sm-none { display: none; }

@media (max-width: 992px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

@media (max-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
    .text-sm-center { text-align: center !important; }
}

/* Currency Display */
.currency {
    font-weight: 600;
    color: var(--text-primary);
}

.currency::before {
    content: 'Rs. ';
    font-weight: 400;
    color: var(--text-secondary);
}

.amount-large {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Animations */
.fade-in { animation: fadeIn 0.5s ease-in-out; }
.slide-up { animation: slideUp 0.5s ease-out; }
.slide-in-left { animation: slideInLeft 0.6s ease-out; }
.pulse { animation: pulse 2s ease-in-out infinite; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Page load animations */
.main-content {
    animation: fadeIn 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Improved hover effects */
.card:hover {
    transform: translateY(-2px);
}

.btn:hover {
    transform: translateY(-1px);
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-gradient);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Form validation states */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.05);
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.success-message {
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

/* Invoice & Export Styles */
.invoice-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 3px solid #2c3e50;
    padding-bottom: 20px;
}

.invoice-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.export-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .invoice-header {
        break-inside: avoid;
    }
    
    table {
        break-inside: avoid;
    }
}

/* Better Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

.btn-excel {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
}

.btn-excel:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
}

.btn-pdf {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.btn-pdf:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Export grid styling */
.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.export-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.export-item h4 {
    margin: 0 0 15px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

/* Additional Mobile Responsive Improvements */

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Better modal responsiveness */
@media (max-width: 768px) {
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Better form responsiveness */
@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    select,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Better table responsiveness */
@media (max-width: 768px) {
    .container {
        overflow-x: visible;
    }
    
    .main-content {
        overflow-x: visible;
    }
    
    .card {
        overflow: visible;
    }
    
    .table-responsive {
        border-radius: var(--radius-md);
        margin-bottom: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        width: calc(100% + 2rem);
        max-width: calc(100vw - 2rem);
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    thead {
        display: table-header-group;
    }
    
    tbody {
        display: table-row-group;
    }
}

/* Card improvements for mobile */
@media (max-width: 576px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }
    
    .card-header .btn-group {
        width: 100%;
    }
    
    .card-header .btn {
        flex: 1;
    }
}

/* Dashboard specific mobile improvements */
@media (max-width: 576px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .recent-bookings-list .booking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Improved touch targets for mobile */
@media (max-width: 768px) {
    .btn,
    .sidebar a,
    nav a,
    .action-buttons .btn {
        min-height: 44px; /* iOS recommended touch target size */
        min-width: 44px;
    }
}

/* Fix overflow issues */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        overflow-x: hidden;
    }
}

/* Better spacing for mobile */
@media (max-width: 576px) {
    .page-header {
        padding: 0.5rem 0;
    }
    
    .stat-grid,
    .dashboard-grid {
        gap: 0.5rem;
    }
}

/* Sidebar overlay improvements */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 949;
    display: none;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease-in-out;
}

.sidebar-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Ensure proper stacking context */
@media (max-width: 768px) {
    header {
        z-index: 1000;
        position: sticky;
    }
    
    .sidebar {
        z-index: 950;
    }
    
    .sidebar.active {
        z-index: 950;
    }
}
