/* ============================================
   VSO BOOKING SYSTEM - PREMIUM UI 2025
   Ultra-modern design with 3D effects,
   particles, glassmorphism, and micro-animations
   ============================================ */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === CSS VARIABLES === */
/* NOTE: Theme-specific overrides are in themes.css */
/* These are fallback defaults (Dark Cosmos) */
:root {
    /* Colors - Deep Space Theme (default) */
    --bg-primary: #050508;
    --bg-secondary: #0a0a12;
    --bg-tertiary: #0f0f1a;
    --bg-card: #0d0d15;
    
    /* Theme-aware extended vars (defaults) */
    --ambient-1: #6366f1;
    --ambient-2: #8b5cf6;
    --ambient-3: #06b6d4;
    --navbar-bg: rgba(5, 5, 8, 0.8);
    --navbar-bg-scrolled: rgba(5, 5, 8, 0.95);
    --card-bg: linear-gradient(180deg, rgba(20, 20, 40, 0.98) 0%, rgba(15, 15, 30, 0.99) 50%, rgba(10, 10, 25, 1) 100%);
    --card-border: rgba(100, 100, 255, 0.2);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --input-bg: rgba(15, 15, 30, 0.95);
    --input-border: rgba(255, 255, 255, 0.15);
    --input-focus-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    --dropdown-bg: rgba(15, 15, 26, 0.98);
    --option-bg: #1a1a2e;
    --modal-bg: linear-gradient(180deg, rgba(20, 20, 40, 0.98), rgba(15, 15, 30, 0.99));
    --particle-color-1: #6366f1;
    --particle-color-2: #8b5cf6;
    --particle-color-3: #a855f7;
    --particle-color-4: #06b6d4;
    
    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a855f7;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
    --gradient-dark: linear-gradient(180deg, #0a0a12 0%, #050508 100%);
    --gradient-radial: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-light: rgba(255, 255, 255, 0.05);
    --glass-bg-medium: rgba(255, 255, 255, 0.08);
    --glass-bg-strong: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(20px);
    --glass-blur-strong: blur(40px);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-glow-lg: 0 0 80px rgba(99, 102, 241, 0.4);
    
    /* Text Colors */
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.35);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;
    --font-4xl: 2.5rem;
    --font-5xl: 3rem;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-toast: 500;
    
    /* Safe Areas */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === ANIMATED BACKGROUND (for other pages) === */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 15s ease-in-out infinite;
    pointer-events: none;
}

.gradient-orb.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.4);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.gradient-orb.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.4);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.gradient-orb.orb-3 {
    width: 350px;
    height: 350px;
    background: rgba(16, 185, 129, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* === PARTICLE CANVAS === */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* === AMBIENT LIGHTS === */
.ambient-light {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

.ambient-light-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -200px;
    animation: ambientFloat1 20s ease-in-out infinite;
}

.ambient-light-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -150px;
    left: -150px;
    animation: ambientFloat2 25s ease-in-out infinite;
}

.ambient-light-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation: ambientFloat3 30s ease-in-out infinite;
}

@keyframes ambientFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-50px, 30px) scale(1.1); }
    50% { transform: translate(-20px, -40px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.05); }
}

@keyframes ambientFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.9); }
}

@keyframes ambientFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.3; }
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: calc(var(--safe-top, 0px) + var(--space-md)) var(--space-lg) var(--space-md);
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-base);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: 0 var(--space-lg);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    z-index: 10;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: white;
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition-spring);
}

.nav-logo:hover .logo-icon {
    transform: scale(1.1) rotate(-5deg);
}

.logo-text {
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--glass-bg-medium);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    z-index: 10;
    padding: 12px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link i {
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--glass-bg-light);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

/* User Menu */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.avatar-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: var(--accent-emerald);
    border: 2px solid var(--bg-primary);
    border-radius: 50%;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: rgba(15, 15, 26, 0.98);
    backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
    overflow: hidden;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--glass-bg-light);
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-weight: 700;
    color: white;
}

.dropdown-info {
    display: flex;
    flex-direction: column;
}

.dropdown-name {
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-role {
    font-size: var(--font-xs);
    color: var(--text-tertiary);
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: var(--space-xs) 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-sm);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    color: var(--text-primary);
    background: var(--glass-bg-light);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-item-danger:hover {
    color: var(--accent-rose);
    background: rgba(244, 63, 94, 0.1);
}

/* === MAIN CONTENT === */
.main-content {
    position: relative;
    z-index: 5;
    padding-top: calc(80px + var(--safe-top, 0px));
    overflow-x: hidden;
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: var(--space-3xl) var(--space-lg);
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.hero-greeting {
    max-width: 700px;
}

.greeting-time {
    margin-bottom: var(--space-lg);
}

.live-clock {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-lg);
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.clock-time {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.clock-separator {
    color: var(--text-muted);
}

/* Weather Widget */
.weather-widget {
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.weather-current {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.weather-current-icon {
    font-size: 2.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.weather-current-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.weather-current-temp {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.weather-current-desc {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    text-transform: capitalize;
}

.weather-current-details {
    display: flex;
    gap: var(--space-lg);
    margin-left: auto;
    flex-shrink: 0;
}

.weather-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.weather-detail i {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.weather-detail-value {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.weather-detail-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.weather-forecast {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: var(--space-xs);
}

.forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-xs);
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.2s ease;
}

.forecast-day:hover {
    background: var(--glass-bg);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.forecast-day-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.forecast-day-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.forecast-day-temps {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.forecast-temp-high {
    font-size: var(--font-sm);
    font-weight: 700;
    color: var(--text-primary);
}

.forecast-temp-low {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.weather-loading {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    color: var(--text-muted);
    font-size: var(--font-sm);
}

.weather-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.weather-location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.weather-location i {
    font-size: 0.6rem;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.title-greeting {
    font-size: var(--font-2xl);
    font-weight: 500;
    color: var(--text-secondary);
}

.title-name {
    font-size: var(--font-5xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: var(--font-lg);
    color: var(--text-tertiary);
}

/* Quick Stats */
.quick-stats {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-light);
    box-shadow: var(--shadow-lg);
}

.stat-card.stat-available {
    border-color: rgba(16, 185, 129, 0.3);
}

.stat-card.stat-available .stat-icon {
    background: var(--gradient-success);
}

.stat-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    color: white;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: var(--font-3xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-sm);
    color: var(--text-tertiary);
    margin-top: 4px;
}

.stat-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 150px;
    height: 150px;
    background: var(--accent-emerald);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    pointer-events: none;
}

/* Floating Decoration */
.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: var(--radius-xl);
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    animation: floatShape1 8s ease-in-out infinite;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 50%;
    right: 30%;
    animation: floatShape2 10s ease-in-out infinite;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: 15%;
    animation: floatShape3 12s ease-in-out infinite;
}

@keyframes floatShape1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, 30px) rotate(10deg); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -20px) rotate(-15deg); }
}

@keyframes floatShape3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-15px, -25px) rotate(20deg); }
}

/* === SEARCH SECTION === */
.search-section {
    padding: 0 var(--space-lg) var(--space-3xl);
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    backdrop-filter: var(--glass-blur);
}

.search-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.search-title {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.search-title i {
    color: var(--accent-primary);
}

.search-subtitle {
    font-size: var(--font-sm);
    color: var(--text-tertiary);
}

.search-form {
    width: 100%;
}

.search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: var(--space-md);
    align-items: end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.search-field label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.search-field label i {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: rgba(15, 15, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    color: #ffffff;
    font-size: var(--font-base);
    font-family: inherit;
    transition: all var(--transition-fast);
    outline: none;
}

.search-field input::placeholder {
    color: var(--text-muted);
}

.search-field input:focus,
.search-field select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(20, 20, 45, 0.98);
}

.search-field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(15, 15, 30, 0.95);
    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='%23a0aec0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 45px;
}

.search-field select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 12px 16px;
}

.search-actions {
    display: flex;
    gap: var(--space-sm);
}

.btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--font-base);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-clear {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg-medium);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-clear:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: var(--accent-rose);
    color: var(--accent-rose);
}

/* === ROOMS SECTION === */
.rooms-section {
    padding: 0 var(--space-lg) var(--space-4xl);
    position: relative;
    z-index: 2;
}

.rooms-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Building Section */
.building-section {
    margin-bottom: var(--space-3xl);
}

.building-header {
    margin-bottom: var(--space-xl);
}

.building-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.building-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
    color: white;
    width: fit-content;
}

.building-title {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.building-count {
    font-size: var(--font-sm);
    color: var(--text-tertiary);
}

/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

/* Room Card */
.room-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    opacity: 1 !important;
    visibility: visible !important;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-8px);
}

.room-card:hover .room-card-glow {
    opacity: 1;
}

/* === ROOM AVAILABILITY STATUS COLORS === */

/* FREE / AVAILABLE - Green tint and shadow */
.room-card.room-available .room-card-inner {
    background: linear-gradient(180deg, 
        rgba(16, 185, 129, 0.08) 0%, 
        rgba(20, 20, 35, 0.95) 40%,
        rgba(20, 20, 35, 0.98) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(16, 185, 129, 0.15),
        inset 0 1px 0 rgba(16, 185, 129, 0.2);
}

.room-card.room-available:hover .room-card-inner {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(16, 185, 129, 0.25),
        inset 0 1px 0 rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.4);
}

/* ENDING SOON - Yellow/Amber tint and shadow (less than 1 hour until booked) */
.room-card.room-ending-soon .room-card-inner {
    background: linear-gradient(180deg, 
        rgba(245, 158, 11, 0.1) 0%, 
        rgba(20, 20, 35, 0.95) 40%,
        rgba(20, 20, 35, 0.98) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(245, 158, 11, 0.15),
        inset 0 1px 0 rgba(245, 158, 11, 0.2);
}

.room-card.room-ending-soon:hover .room-card-inner {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(245, 158, 11, 0.25),
        inset 0 1px 0 rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.45);
}

.room-card.room-ending-soon .room-card-glow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* OCCUPIED - Red tint and shadow */
.room-card.room-occupied .room-card-inner {
    background: linear-gradient(180deg, 
        rgba(244, 63, 94, 0.08) 0%, 
        rgba(20, 20, 35, 0.95) 40%,
        rgba(20, 20, 35, 0.98) 100%);
    border: 1px solid rgba(244, 63, 94, 0.25);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(244, 63, 94, 0.12),
        inset 0 1px 0 rgba(244, 63, 94, 0.15);
}

.room-card.room-occupied:hover .room-card-inner {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(244, 63, 94, 0.2),
        inset 0 1px 0 rgba(244, 63, 94, 0.25);
    border-color: rgba(244, 63, 94, 0.4);
}

.room-card.room-occupied .room-card-glow {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

/* Default card inner (fallback) */
.room-card-inner {
    position: relative;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.room-card-glow {
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    opacity: 0;
    z-index: 0;
    transition: opacity var(--transition-base);
    filter: blur(8px);
}

.room-card.room-available .room-card-glow {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* Status Badge - Ending Soon */
.status-ending-soon .status-dot {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.status-ending-soon .status-text {
    color: #f59e0b;
}

/* Room Image */
.room-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.room-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.room-card:hover .room-image {
    transform: scale(1.1);
}

.room-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 8, 0.8) 100%);
}

/* Status Badge */
.room-status-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-available .status-dot {
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

.status-soon-busy .status-dot {
    background: var(--accent-amber);
    box-shadow: 0 0 8px var(--accent-amber);
    animation: urgentPulse 1s ease-in-out infinite;
}

.status-occupied .status-dot {
    background: var(--accent-rose);
}

.status-available .status-text {
    color: var(--accent-emerald);
}

.status-soon-busy .status-text {
    color: var(--accent-amber);
    font-weight: 600;
}

.status-occupied .status-text {
    color: var(--accent-rose);
}

/* Maintenance status */
.status-maintenance {
    background: rgba(245, 158, 11, .18);
    border: 1px solid rgba(245, 158, 11, .35);
}
.status-maintenance .status-dot {
    background: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, .5);
    animation: none;
}
.status-maintenance .status-text {
    color: #fbbf24;
    font-weight: 600;
}
.room-maintenance .room-image {
    filter: grayscale(40%) brightness(.8);
}
.room-maintenance {
    opacity: .75;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

@keyframes urgentPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

/* Room Content */
.room-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    flex: 1;
}

.room-name {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text-primary);
}

/* Room Timeline */
.room-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.timeline-bar {
    position: relative;
    height: 8px;
    background: var(--glass-bg-medium);
    border-radius: var(--radius-full);
    overflow: visible;
}

.timeline-booking {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--accent-rose);
    border-radius: var(--radius-full);
    opacity: 0.8;
}

.timeline-now {
    position: absolute;
    top: -4px;
    width: 3px;
    height: 16px;
    background: var(--accent-cyan);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-cyan);
    z-index: 2;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-xs);
    color: var(--text-muted);
}

/* Room Quick Info */
.room-quick-info {
    font-size: var(--font-sm);
}

.info-available {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--accent-emerald);
}

.info-occupied {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--accent-rose);
}

/* Room Action Button */
.room-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--glass-bg-medium);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-sm);
    transition: all var(--transition-base);
    margin-top: auto;
}

.room-action-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.room-action-btn i {
    transition: transform var(--transition-fast);
}

.room-action-btn:hover i {
    transform: translateX(4px);
}

/* === FOOTER === */
.site-footer {
    position: relative;
    z-index: 1;
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.site-footer p {
    color: var(--text-muted);
    font-size: var(--font-sm);
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(15, 15, 26, 0.98);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: toastSlideIn 0.3s ease;
    max-width: 400px;
}

.toast.success { border-left: 3px solid var(--accent-emerald); }
.toast.error { border-left: 3px solid var(--accent-rose); }
.toast.info { border-left: 3px solid var(--accent-primary); }

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* === LOADING OVERLAY === */
.loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    position: relative;
    width: 64px;
    height: 64px;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spinnerRotate 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    inset: 8px;
    border-top-color: var(--accent-secondary);
    animation-duration: 0.8s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    inset: 16px;
    border-top-color: var(--accent-tertiary);
    animation-duration: 0.6s;
}

@keyframes spinnerRotate {
    to { transform: rotate(360deg); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-decoration { display: none; }
    .search-fields { grid-template-columns: 1fr 1fr; }
    .search-actions { grid-column: span 2; justify-content: center; }
}

@media (max-width: 768px) {
    .logo-text { display: none; }
    .nav-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(5, 5, 8, 0.98);
        backdrop-filter: var(--glass-blur-strong);
        border-bottom: 1px solid var(--glass-border);
        padding: var(--space-lg);
        flex-direction: column;
        gap: var(--space-sm);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: var(--space-md);
        justify-content: flex-start;
    }
    
    .hero-section { min-height: auto; padding: var(--space-2xl) var(--space-md); }
    .title-name { font-size: var(--font-3xl); }
    .quick-stats { flex-direction: column; }
    .stat-card { width: 100%; }
    
    .weather-current { flex-wrap: wrap; padding: var(--space-md); gap: var(--space-sm); }
    .weather-current-details { margin-left: 0; width: 100%; justify-content: space-around; padding-top: var(--space-sm); border-top: 1px solid var(--glass-border); }
    .weather-forecast { grid-template-columns: repeat(7, 1fr); gap: 4px; }
    .forecast-day { padding: var(--space-xs) 2px; }
    .forecast-day-name { font-size: 0.55rem; }
    .forecast-day-icon { font-size: 1rem; }
    .forecast-temp-high { font-size: 0.7rem; }
    .forecast-temp-low { font-size: 0.55rem; }
    
    .search-section { padding: 0 var(--space-md) var(--space-xl); }
    .search-container { padding: var(--space-lg); }
    .search-fields { grid-template-columns: 1fr; }
    .search-actions { grid-column: span 1; }
    
    .rooms-section { padding: 0 var(--space-md) var(--space-2xl); }
    .rooms-grid { grid-template-columns: 1fr; }
    
    .toast-container { left: var(--space-md); right: var(--space-md); bottom: var(--space-md); }
    .toast { max-width: none; }
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-success { color: var(--accent-emerald) !important; }
.text-danger { color: var(--accent-rose) !important; }
.text-warning { color: var(--accent-amber) !important; }
.font-weight-bold { font-weight: 700 !important; }

/* === FORM CONTROLS (Global) === */
.form-control, input, select, textarea {
    background: var(--glass-bg-medium) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md);
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
    outline: none !important;
}

/* jQuery UI Datepicker Override */
.ui-datepicker {
    background: rgba(15, 15, 26, 0.98) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--space-md) !important;
    box-shadow: var(--shadow-xl) !important;
}

.ui-datepicker-header {
    background: transparent !important;
    border: none !important;
}

.ui-datepicker-title {
    color: var(--text-primary) !important;
}

.ui-datepicker-prev, .ui-datepicker-next {
    background: var(--glass-bg-medium) !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
}

.ui-state-default {
    background: var(--glass-bg) !important;
    border: 1px solid transparent !important;
    color: var(--text-secondary) !important;
    text-align: center !important;
}

.ui-state-hover {
    background: var(--glass-bg-medium) !important;
    color: var(--text-primary) !important;
}

.ui-state-active {
    background: var(--gradient-primary) !important;
    color: white !important;
}

.ui-state-highlight {
    background: rgba(99, 102, 241, 0.2) !important;
    border-color: var(--accent-primary) !important;
}

/* Login/Register Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--glass-bg-light) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius-2xl) !important;
    padding: var(--space-2xl) !important;
    backdrop-filter: var(--glass-blur);
}

.login-card .card-title {
    color: var(--text-primary) !important;
    font-size: var(--font-2xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-xl);
}

.login-card .form-group label {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: var(--font-sm);
}

.login-card .btn-primary {
    width: 100%;
    padding: var(--space-md);
    background: var(--gradient-primary) !important;
    border: none !important;
    font-weight: 600;
}

.login-card .btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Backward Compatibility with Bootstrap Classes */
.card { background: var(--glass-bg-light) !important; border: 1px solid var(--glass-border) !important; border-radius: var(--radius-xl) !important; }
.card-body { padding: var(--space-lg) !important; }
.card-title { color: var(--text-primary) !important; }
.navbar-light { background: transparent !important; }
.bg-light { background: transparent !important; }
.shadow-sm { box-shadow: none !important; }
.btn { border-radius: var(--radius-md) !important; font-weight: 600 !important; transition: all var(--transition-base) !important; }
.btn-primary { background: var(--gradient-primary) !important; border: none !important; color: white !important; }
.btn-primary:hover { box-shadow: var(--shadow-glow) !important; transform: translateY(-2px); }
.btn-secondary { background: var(--glass-bg-medium) !important; border: 1px solid var(--glass-border) !important; color: var(--text-primary) !important; }
.alert { background: var(--glass-bg-light) !important; border: 1px solid var(--glass-border) !important; color: var(--text-primary) !important; border-radius: var(--radius-md) !important; }
.alert-danger { border-left: 3px solid var(--accent-rose) !important; }
.alert-success { border-left: 3px solid var(--accent-emerald) !important; }
.table { color: var(--text-primary) !important; }
.table th, .table td { border-color: var(--glass-border) !important; padding: var(--space-md) !important; }
.table thead th { background: var(--glass-bg-medium) !important; color: var(--text-primary) !important; }
.modal-content { background: rgba(15, 15, 26, 0.98) !important; border: 1px solid var(--glass-border) !important; border-radius: var(--radius-xl) !important; }
.modal-header, .modal-footer { border-color: var(--glass-border) !important; }
.close { color: var(--text-primary) !important; }

/* ======================================
   ROOM CARD VISIBILITY CRITICAL FIXES
   ====================================== */
/* Force room cards to be visible with solid backgrounds */
.room-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
}

.room-card-inner {
    background: linear-gradient(180deg, 
        rgba(20, 20, 40, 0.98) 0%, 
        rgba(15, 15, 30, 0.99) 50%,
        rgba(10, 10, 25, 1) 100%) !important;
    border: 1px solid rgba(100, 100, 255, 0.2) !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.room-content {
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.room-name {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
}

.status-badge {
    padding: 6px 14px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

.status-available {
    background: rgba(16, 185, 129, 0.25) !important;
    border: 1px solid rgba(16, 185, 129, 0.5) !important;
}

.status-available .status-text {
    color: #10b981 !important;
}

.status-occupied {
    background: rgba(244, 63, 94, 0.25) !important;
    border: 1px solid rgba(244, 63, 94, 0.5) !important;
}

.status-occupied .status-text {
    color: #f43f5e !important;
}

.timeline-labels span,
.info-available,
.info-occupied,
.room-quick-info {
    color: #a0aec0 !important;
    opacity: 1 !important;
}

.room-action-btn {
    background: rgba(99, 102, 241, 0.15) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.room-action-btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Stats Cards Visibility */
.stats-grid {
    opacity: 1 !important;
    visibility: visible !important;
}

.stat-card {
    background: linear-gradient(180deg, 
        rgba(20, 20, 40, 0.95) 0%, 
        rgba(15, 15, 30, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.stat-value {
    color: #ffffff !important;
    font-size: 2rem !important;
    opacity: 1 !important;
}

.stat-label {
    color: #a0aec0 !important;
    opacity: 1 !important;
}

/* Search Section Visibility */
.search-section {
    opacity: 1 !important;
    visibility: visible !important;
}

.search-bar-wrapper {
    background: rgba(20, 20, 40, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    opacity: 1 !important;
}

.search-input {
    color: #ffffff !important;
    background: transparent !important;
}

.search-input::placeholder {
    color: #6b7280 !important;
}

/* Rooms Grid Visibility */
.rooms-section,
.rooms-grid {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Section Headers */
.section-header,
.section-title,
.section-subtitle {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.section-subtitle {
    color: #a0aec0 !important;
}

/* Empty State */
.no-rooms-message {
    background: rgba(20, 20, 40, 0.95) !important;
    border: 1px dashed rgba(255, 255, 255, 0.2) !important;
    color: #a0aec0 !important;
    padding: 3rem !important;
    text-align: center !important;
    border-radius: 16px !important;
}

/* Glow effects should enhance, not obscure */
.room-card-glow {
    pointer-events: none !important;
    opacity: 0 !important;
}

.room-card:hover .room-card-glow {
    opacity: 0.3 !important;
}

/* ======================================
   CRITICAL: BASE VISIBILITY DEFAULTS
   Ensure content is visible even without JS
   ====================================== */
.room-card,
.stat-card,
.hero-greeting,
.search-container,
.building-section,
.rooms-grid,
.rooms-section,
.main-content,
.room-card-inner,
.room-content {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* If JS animations are running, these will be overridden */
.js-animating .room-card {
    opacity: 0;
    transform: translateY(30px);
}

/* ======================================
   MODAL STYLING OVERRIDES
   ====================================== */
.modal {
    z-index: 10500 !important;
}

.modal.show {
    display: block !important;
}

.modal.show .modal-dialog {
    display: flex !important;
}

.modal-backdrop {
    z-index: 10400 !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
}

.modal-backdrop.show {
    opacity: 1 !important;
}

.modal-dialog {
    max-width: 400px !important;
    z-index: 10501 !important;
    position: relative !important;
}

.modal-content.premium-modal,
.modal-content {
    background: linear-gradient(180deg, rgba(20, 20, 40, 0.98), rgba(15, 15, 30, 0.99)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(99, 102, 241, 0.1) !important;
    overflow: hidden;
    position: relative !important;
    display: block !important;
}

.modal-header {
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 20px 24px !important;
}

.modal-header.success-header {
    border-left: 4px solid #10b981 !important;
}

.modal-header.error-header {
    border-left: 4px solid #ef4444 !important;
}

.modal-header.warning-header {
    border-left: 4px solid #f59e0b !important;
}

.modal-title {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    display: flex;
    align-items: center;
}

.modal-body {
    padding: 30px 24px !important;
    text-align: center;
}

.modal-body.premium-body {
    background: transparent !important;
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.modal-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.modal-icon.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.modal-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.modal-message {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.modal-footer {
    background: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 16px 24px !important;
    justify-content: center !important;
    gap: 12px !important;
}

.modal-footer.premium-footer {
    display: flex !important;
}

.btn-modal {
    padding: 10px 24px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn-modal.success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
}

.btn-modal.success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-modal.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
}

.btn-modal.danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-modal.secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-modal.secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}

.modal .close {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
    text-shadow: none !important;
    font-size: 1.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

.modal .close:hover {
    color: #ffffff !important;
}

/* ======================================
   FORM SELECT STYLING (Desktop & Mobile)
   ====================================== */
select.form-control,
select.form-control-premium,
.search-select,
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(15, 15, 30, 0.95) !important;
    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='%23a0aec0' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 45px !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    cursor: pointer;
}

select.form-control:focus,
select.form-control-premium:focus,
.search-select:focus {
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
    outline: none !important;
}

select option {
    background: #1a1a2e !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
}

select option:checked,
select option:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #ffffff !important;
}

/* Time select specific - ensure side by side on desktop */
.time-select-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 576px) {
    .time-select-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Search bar selects */
.search-bar select,
.search-filters select {
    min-width: 140px;
    padding: 12px 40px 12px 16px !important;
    font-size: 0.9rem;
}

/* =====================================================
   ADMIN PAGES - Premium Styles
   ===================================================== */

/* Admin Header Section */
.admin-header-section {
    padding: 120px 30px 30px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-header-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.admin-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.admin-page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 4px 0 0 0;
}

/* Admin Stats Section */
.admin-stats-section {
    display: flex;
    gap: 20px;
    padding: 0 30px 30px 30px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.admin-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.admin-stat-info {
    display: flex;
    flex-direction: column;
}

.admin-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.admin-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Button Glow */
.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
}

.btn-glow i {
    font-size: 1.1rem;
}

/* Outline companion to btn-glow */
.btn-outline-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 14px;
    color: #a78bfa;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}
.btn-outline-glow:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
    color: #c4b5fd;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2);
}
.btn-outline-glow i {
    font-size: 1rem;
    opacity: 0.85;
}

.admin-page .page-content {
    padding-top: calc(100px + var(--safe-top, 0px));
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-header-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.page-header-text h1.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.page-header-text .page-subtitle {
    color: var(--text-muted);
    margin: 4px 0 0 0;
    font-size: 0.95rem;
}

/* Admin Stats */
.admin-stats {
    display: flex;
    gap: 16px;
    padding: 0 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.stat-card-mini.stat-success {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.05);
}

.stat-card-mini.stat-warning {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.05);
}

.stat-card-mini.stat-danger {
    border-color: rgba(244, 63, 94, 0.2);
    background: rgba(244, 63, 94, 0.05);
}

.stat-icon-mini {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.stat-card-mini.stat-success .stat-icon-mini {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-card-mini.stat-warning .stat-icon-mini {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-card-mini.stat-danger .stat-icon-mini {
    background: linear-gradient(135deg, #f43f5e, #dc2626);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value-mini {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label-mini {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Admin Content Section */
.admin-content-section {
    padding: 0 30px 30px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Admin Empty State */
.admin-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    text-align: center;
}

.admin-empty-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.admin-empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.admin-empty-state p {
    color: var(--text-muted);
    margin: 0 0 24px 0;
}

/* Admin Room ID Badge */
.admin-room-id {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Admin Buttons */
.admin-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-btn-edit {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.admin-btn-edit:hover {
    background: var(--accent-primary);
    color: white;
}

.admin-btn-delete {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.25);
}

.admin-btn-delete:hover {
    background: #f43f5e;
    color: white;
}

/* Admin Modal */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.admin-modal.active {
    display: flex;
}

.admin-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.admin-modal-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    margin: 20px;
}

.admin-modal-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-modal-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.admin-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal-close:hover {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
    border-color: rgba(244, 63, 94, 0.3);
}

.admin-modal-body {
    padding: 30px;
}

.admin-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 30px 30px;
    justify-content: flex-end;
}

/* Admin Form */
.admin-form-group {
    margin-bottom: 24px;
}

.admin-form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.admin-form-group label i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.admin-form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-form-input:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.admin-form-input::placeholder {
    color: var(--text-muted);
}

.admin-form-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Admin Image Preview */
.admin-image-preview {
    width: 100%;
    height: 160px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.admin-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.admin-image-preview img.active {
    display: block;
}

.admin-preview-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-preview-placeholder i {
    font-size: 2rem;
    opacity: 0.5;
}

/* Room Upload Zone */
.room-upload-zone {
    width: 100%;
    min-height: 180px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}
.room-upload-zone:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}
.room-upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb, 99,102,241), 0.08);
    box-shadow: 0 0 20px rgba(var(--accent-rgb, 99,102,241), 0.15);
}
.room-upload-zone.has-file {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.15);
}
.upload-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
}
.upload-zone-content i {
    font-size: 2.2rem;
    opacity: 0.5;
    color: var(--accent);
}
.upload-zone-content p {
    margin: 0;
    font-size: 0.9rem;
}
.upload-browse-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.upload-zone-hint {
    font-size: 0.75rem;
    opacity: 0.6;
}
.upload-zone-preview {
    position: relative;
    width: 100%;
    height: 200px;
}
.upload-zone-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.upload-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.upload-remove-btn:hover {
    background: rgba(239, 68, 68, 0.9);
}
.upload-zone-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 10px;
}
.upload-progress-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}
.upload-progress-bar {
    background: var(--accent);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}
.upload-progress-text {
    font-size: 0.75rem;
    color: #fff;
    min-width: 40px;
    text-align: right;
}
.manual-path-toggle {
    margin-top: 10px;
}
.manual-path-toggle summary {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.manual-path-toggle summary:hover {
    color: var(--text-secondary);
}

/* Admin Button Group */
.admin-btn-group {
    display: flex;
    gap: 12px;
}

.admin-btn-submit {
    flex: 1;
    padding: 14px 24px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.admin-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.admin-btn-cancel {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.admin-btn-danger {
    background: linear-gradient(135deg, #f43f5e, #dc2626);
    border: none;
    color: white;
}

.admin-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.3);
}

/* Admin Confirmation Modal */
.admin-confirm-content {
    text-align: center;
    padding: 20px 0;
}

.admin-confirm-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: #f43f5e;
}

.admin-confirm-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.admin-confirm-content p {
    color: var(--text-secondary);
    margin: 0;
}

.admin-confirm-content strong {
    color: var(--text-primary);
}

/* Admin Table Styles */
.admin-table-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: rgba(99, 102, 241, 0.08);
}

.admin-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table td {
    padding: 16px 20px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: all 0.3s ease;
}

.admin-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Admin User Cell */
.admin-user-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.admin-username {
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Admin Level Select */
.admin-level-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
}

.admin-level-select:hover,
.admin-level-select:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.admin-level-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Admin Status Badge */
.admin-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-status-badge.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.admin-status-badge.status-inactive {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Admin Role Badge */
.admin-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-role-badge.role-admin {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.admin-role-badge.role-user {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Admin Button Variants */
.admin-btn-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.admin-btn-warning:hover {
    background: #f59e0b;
    color: #000;
}

.admin-btn-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.admin-btn-success:hover {
    background: #10b981;
    color: white;
}

.admin-self-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

/* Admin Filter Section */
.admin-filter-section {
    padding: 0 30px 30px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-filter-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
}

.admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.admin-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-filter-group label i {
    color: var(--accent-primary);
    font-size: 0.8rem;
}

.admin-filter-select,
.admin-filter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.admin-filter-select:focus,
.admin-filter-input:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.admin-filter-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.admin-filter-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.admin-btn-secondary {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.admin-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Admin Logs Table */
.admin-logs-table .admin-log-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-log-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.admin-log-status.status-upcoming {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

.admin-log-status.status-completed {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

.admin-log-status.status-cancelled {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
}

.admin-log-status.log-active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.admin-log-status.log-past {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

.admin-log-status.log-cancelled {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
}

/* Admin Stat Card Variants */
.admin-stat-card.admin-stat-success .admin-stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.admin-stat-card.admin-stat-warning .admin-stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.admin-stat-card.admin-stat-danger .admin-stat-icon {
    background: linear-gradient(135deg, #f43f5e, #dc2626);
}

/* Admin Confirm Icon Variants */
.admin-confirm-icon.confirm-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.admin-confirm-icon.confirm-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Admin Rooms Grid */
.admin-grid-section {
    padding: 0 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.admin-room-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.admin-room-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Maintenance-mode room card */
.admin-room-card.maintenance-mode {
    border-color: rgba(245, 158, 11, 0.25);
    opacity: .82;
}
.admin-room-card.maintenance-mode .admin-room-image img {
    filter: grayscale(40%) brightness(.85);
}

/* Status badge on room image */
.room-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: .7rem;
    font-weight: 700;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}
.room-status-badge.active {
    background: rgba(16, 185, 129, .25);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, .3);
}
.room-status-badge.maintenance {
    background: rgba(245, 158, 11, .25);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, .3);
}

/* Maintenance note under room name */
.admin-room-maint-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: #fbbf24;
    font-style: italic;
}

/* Admin button colour helpers */
.admin-btn-warning {
    background: rgba(245, 158, 11, .15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, .3);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.admin-btn-warning:hover { background: rgba(245, 158, 11, .3); }
.admin-btn-success {
    background: rgba(16, 185, 129, .15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, .3);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.admin-btn-success:hover { background: rgba(16, 185, 129, .3); }

.admin-room-image {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.admin-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.admin-room-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--text-muted);
    font-size: 3rem;
}

.admin-room-card:hover .admin-room-image img {
    transform: scale(1.05);
}

.room-id-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.admin-room-info {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-room-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.admin-room-building {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 4px;
}

.admin-room-path {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.admin-room-actions {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
}

/* Action Buttons */
.btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action i {
    font-size: 0.9rem;
}

.btn-edit {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.btn-edit:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-delete {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.btn-delete:hover {
    background: var(--accent-rose);
    color: white;
}

.btn-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: var(--accent-amber) !important;
    border: 1px solid rgba(245, 158, 11, 0.2) !important;
}

.btn-warning:hover {
    background: var(--accent-amber) !important;
    color: #000 !important;
}

.btn-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--accent-emerald) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

.btn-success:hover {
    background: var(--accent-emerald) !important;
    color: white !important;
}

.btn-danger {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: var(--accent-rose);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Premium Table */
.admin-table-section {
    padding: 0 30px;
    margin-bottom: 40px;
}

.premium-table-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
}

.premium-table thead {
    background: rgba(255, 255, 255, 0.03);
}

.premium-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.premium-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    vertical-align: middle;
}

.premium-table tbody tr {
    transition: background 0.2s ease;
}

.premium-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.premium-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Cells */
.user-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.user-fullname {
    font-weight: 500;
    color: var(--text-primary);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.username-badge {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
}

.username-small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Level Select */
.level-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.level-select:hover,
.level-select:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.level-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.status-badge.status-inactive {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.status-active .status-indicator {
    background: var(--accent-emerald);
    box-shadow: 0 0 8px var(--accent-emerald);
}

.status-inactive .status-indicator {
    background: var(--accent-rose);
}

/* Role Badge */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.role-admin {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-secondary);
}

.role-user {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.self-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Filter Section */
.filter-section {
    padding: 0 30px;
    margin-bottom: 30px;
}

.filter-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label i {
    font-size: 0.75rem;
}

.filter-select,
.filter-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-select:hover,
.filter-select:focus,
.filter-input:hover,
.filter-input:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.filter-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.filter-input::placeholder {
    color: var(--text-muted);
}

.filter-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Logs Table Specific */
.room-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.room-cell i {
    color: var(--accent-primary);
}

.date-cell {
    display: flex;
    flex-direction: column;
}

.date-primary {
    font-weight: 500;
    color: var(--text-primary);
}

.date-secondary {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.time-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.time-cell i {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.created-at {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.log-status-badge.status-upcoming {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

.log-status-badge.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.log-status-badge.status-cancelled {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
}

.cancelled-at {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.row-cancelled {
    opacity: 0.6;
}

.row-past {
    opacity: 0.8;
}

/* Premium Modal - Custom standalone modal (not Bootstrap) */
.premium-modal-standalone {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.premium-modal-standalone.active {
    opacity: 1;
    visibility: visible;
}

.premium-modal-standalone .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.premium-modal-standalone .modal-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.premium-modal-standalone.active .modal-container {
    transform: scale(1) translateY(0);
}

.premium-modal-standalone .modal-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.premium-modal-standalone .modal-card.modal-success .modal-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.premium-modal-standalone .modal-card.modal-danger .modal-icon,
.premium-modal-standalone .modal-card.modal-danger .modal-icon.danger {
    background: linear-gradient(135deg, #f43f5e, #dc2626);
}

.premium-modal-standalone .modal-card.modal-warning .modal-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.premium-modal-standalone .modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.premium-modal-standalone .modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.premium-modal-standalone .modal-icon.danger {
    background: linear-gradient(135deg, #f43f5e, #dc2626);
}

.premium-modal-standalone .modal-title {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.premium-modal-standalone .modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.premium-modal-standalone .modal-close:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--accent-rose);
}

.premium-modal-standalone .modal-body {
    padding: 24px;
}

.premium-modal-standalone .modal-body.text-center {
    text-align: center;
}

.premium-modal-standalone .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

/* Form Elements in Modal */
.form-group-premium {
    margin-bottom: 20px;
}

.form-group-premium label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.form-group-premium label i {
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.form-input-premium {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input-premium:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input-premium::placeholder {
    color: var(--text-muted);
}

.form-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ─── Notification Toggle Switch ─────────────────── */
.notif-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}
.notif-switch input { opacity: 0; width: 0; height: 0; }
.notif-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255,255,255,.08);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.1);
    transition: all .3s ease;
}
.notif-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #555;
    border-radius: 50%;
    transition: all .3s ease;
}
.notif-switch input:checked + .notif-slider {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: rgba(139, 92, 246, .4);
}
.notif-switch input:checked + .notif-slider::before {
    transform: translateX(24px);
    background: #fff;
}

/* ─── PWA Install Button ──────────────────────────────── */
.pwa-install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, opacity .2s;
    box-shadow: 0 4px 20px rgba(99, 102, 241, .35);
}
.pwa-install-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(99, 102, 241, .5);
}
.pwa-install-btn:active {
    transform: translateY(0);
}
.pwa-install-btn:disabled {
    opacity: .6;
    cursor: wait;
}

/* Image Preview */
.image-preview {
    position: relative;
    width: 100%;
    height: 150px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-preview.has-image img {
    opacity: 1;
}

.image-preview.has-image .preview-placeholder {
    display: none;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.preview-placeholder i {
    font-size: 2rem;
    opacity: 0.5;
}

/* Confirmation Text */
.confirmation-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.confirmation-text strong {
    color: var(--text-primary);
}

.warning-text {
    font-size: 0.85rem;
    color: var(--accent-amber);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 10px;
}

.feedback-message {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Responsive for Admin Pages */
@media (max-width: 768px) {
    .page-header {
        padding: 0 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .page-header-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .admin-stats {
        padding: 0 16px;
        flex-direction: column;
    }
    
    .stat-card-mini {
        width: 100%;
    }
    
    .admin-grid-section,
    .admin-table-section,
    .filter-section {
        padding: 0 16px;
    }
    
    .admin-rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn-primary-glow,
    .filter-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .premium-table-wrapper {
        overflow-x: auto;
    }
    
    .premium-table {
        min-width: 600px;
    }
    
    .premium-modal-standalone .modal-container {
        max-width: 100%;
    }
}

/* ============================================
   ADMIN PAGE ADDITIONAL STYLES
   ============================================ */

/* Add Room Card */
.add-room-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(99, 102, 241, 0.05);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    min-height: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-room-card:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-4px);
}

.add-room-card .add-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.add-room-card span:not(.add-icon) {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Admin Room Card Actions */
.admin-room-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.admin-room-actions .btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-room-actions .btn-edit {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
}

.admin-room-actions .btn-edit:hover {
    background: var(--accent-primary);
    color: white;
}

.admin-room-actions .btn-delete {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
}

.admin-room-actions .btn-delete:hover {
    background: #f43f5e;
    color: white;
}

/* Users Table Styles */
.users-table-container {
    padding: 0 30px;
}

.users-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.users-table thead {
    background: rgba(99, 102, 241, 0.1);
}

.users-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.users-table td {
    padding: 16px 20px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.users-table tbody tr {
    transition: all 0.3s ease;
}

.users-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.users-table tbody tr:last-child td {
    border-bottom: none;
}

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

/* User Info Cell */
.user-info-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-info-cell .user-details {
    display: flex;
    flex-direction: column;
}

.user-info-cell .user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-info-cell .user-email {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Level Select */
.level-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.level-select:hover,
.level-select:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.level-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.status-badge.inactive {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.status-badge.cancelled {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
}

.status-badge i {
    font-size: 0.7rem;
}

/* Action Button */
.btn-action {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action.btn-activate {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.btn-action.btn-activate:hover {
    background: #10b981;
    color: white;
}

.btn-action.btn-deactivate {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
}

.btn-action.btn-deactivate:hover {
    background: #f43f5e;
    color: white;
}

/* Filter Card */
.filter-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px 30px;
    margin: 0 30px 30px 30px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.filter-group select option {
    background: var(--bg-secondary);
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.btn-filter {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-filter.btn-apply {
    background: var(--gradient-primary);
    color: white;
}

.btn-filter.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-filter.btn-reset {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-filter.btn-reset:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Logs Table */
.logs-table-container {
    padding: 0 30px;
}

.logs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.logs-table thead {
    background: rgba(99, 102, 241, 0.1);
}

.logs-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logs-table td {
    padding: 16px 20px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.logs-table tbody tr {
    transition: all 0.3s ease;
}

.logs-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.logs-table tbody tr:last-child td {
    border-bottom: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.95rem;
}

/* Admin Modal Override */
.admin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.admin-modal.show {
    display: flex;
}

.admin-modal .modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.admin-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-modal .modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.admin-modal .modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-modal .modal-close:hover {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
}

.admin-modal .modal-body {
    padding: 30px;
}

.admin-modal .form-group {
    margin-bottom: 20px;
}

.admin-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-modal .form-group input,
.admin-modal .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-modal .form-group input:focus,
.admin-modal .form-group textarea:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.admin-modal .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.admin-modal .modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 30px 30px;
    justify-content: flex-end;
}

.admin-modal .btn-modal {
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-modal .btn-modal.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.admin-modal .btn-modal.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-modal .btn-modal.btn-save {
    background: var(--gradient-primary);
    color: white;
}

.admin-modal .btn-modal.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.admin-modal .btn-modal.btn-danger {
    background: linear-gradient(135deg, #f43f5e, #dc2626);
    color: white;
}

.admin-modal .btn-modal.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.3);
}

/* Responsive Admin Styles */
@media (max-width: 768px) {
    .admin-stats-section {
        gap: 10px;
        padding: 0 16px 20px;
    }
    .admin-stat-card {
        flex: 1 1 calc(50% - 6px);
        padding: 14px 16px;
        gap: 10px;
        border-radius: 14px;
    }
    .admin-stat-card:hover {
        transform: none;
    }
    .admin-stat-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1rem;
    }
    .admin-stat-value {
        font-size: 1.2rem;
    }
    .admin-stat-label {
        font-size: 0.7rem;
    }
    .add-room-card {
        min-height: 200px;
    }
    
    .users-table-container,
    .logs-table-container,
    .filter-card {
        padding: 0 15px;
        margin: 0 0 20px 0;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .btn-filter {
        flex: 1;
        justify-content: center;
    }
    
    .users-table,
    .logs-table {
        display: block;
        overflow-x: auto;
    }
    
    .admin-modal .modal-content {
        width: 95%;
        margin: 20px;
    }
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   Touch-friendly bottom nav for mobile
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: var(--navbar-bg, rgba(5, 5, 8, 0.95));
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border-top: 1px solid var(--glass-border);
    padding: 6px 8px calc(var(--safe-bottom, 0px) + 6px);
    overflow: visible;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.mobile-bottom-nav .mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    font-size: 0.65rem;
    font-weight: 500;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
    font-size: 1.15rem;
    margin-bottom: 1px;
}

.mobile-nav-item.active {
    color: var(--accent-primary);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: var(--text-primary);
    background: var(--glass-bg-light);
    text-decoration: none;
}

/* ── Spacer to make room for scan FAB ──────────────────────── */
.mobile-nav-spacer {
    display: none;
}
@media (display-mode: standalone) {
    .mobile-nav-spacer {
        display: block;
        width: 60px;
        flex-shrink: 0;
    }
}

/* ── In-app QR Scan FAB (PWA only) ─────────────────────────── */
.mobile-nav-scan-fab {
    display: none !important; /* Hidden in browser by default */
}
/* Only show scan FAB when running as installed PWA */
@media (display-mode: standalone) {
    .mobile-nav-scan-fab {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        position: absolute;
        left: 50%;
        top: -24px;
        transform: translateX(-50%);
        text-decoration: none;
        z-index: 2;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-nav-scan-fab i {
        font-size: 1.4rem;
        color: #fff;
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        width: 52px; height: 52px;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 4px 24px rgba(99,102,241,.45);
        border: 3px solid var(--navbar-bg, rgba(5, 5, 8, 0.95));
        transition: transform .2s, box-shadow .2s;
    }
    .mobile-nav-scan-fab:hover i,
    .mobile-nav-scan-fab:active i {
        transform: scale(1.08);
        box-shadow: 0 6px 28px rgba(99,102,241,.55);
    }
    .mobile-nav-scan-fab.active i {
        background: linear-gradient(135deg, #8b5cf6, #a78bfa);
        box-shadow: 0 4px 28px rgba(139,92,246,.55);
    }
    .mobile-nav-scan-fab span {
        font-size: 0.6rem;
        font-weight: 700;
        color: #8b5cf6;
        letter-spacing: .02em;
        margin-top: 1px;
    }
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Add bottom padding to body so content isn't hidden behind mobile nav */
    body {
        padding-bottom: 72px;
    }
    
    /* Hide the desktop nav menu items on mobile (use bottom nav instead) */
    .nav-menu {
        display: none !important;
    }
    
    /* Simplify top navbar on mobile - just logo + avatar */
    .nav-toggle {
        display: none !important;
    }
    
    .navbar {
        padding: calc(var(--safe-top, 0px) + var(--space-sm)) var(--space-md) var(--space-sm);
    }
    
    /* Improve touch targets across the app */
    .room-action-btn {
        min-height: 48px !important;
    }
    
    .btn-search,
    .btn-modal,
    .admin-btn {
        min-height: 48px;
    }
    
    /* Better card spacing */
    .rooms-grid {
        gap: var(--space-md);
    }
    
    /* Improve stat cards for mobile */
    .quick-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }
    
    .stat-card {
        flex-direction: column;
        padding: var(--space-md) !important;
        text-align: center;
    }
    
    .stat-value {
        font-size: 1.5rem !important;
    }
    
    /* Improve search on mobile */
    .search-container {
        border-radius: var(--radius-lg) !important;
    }
}

@media (max-width: 480px) {
    /* Even smaller screens */
    .quick-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title .title-name {
        font-size: var(--font-2xl);
    }
    
    .hero-title .title-greeting {
        font-size: var(--font-lg);
    }
}

/* ============================================
   QUICK-BOOK WIDGET
   ============================================ */
.quick-book-section {
    padding: 0 var(--space-xl) var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.quick-book-container {
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-xl, 24px);
    padding: var(--space-xl, 32px);
    position: relative;
    overflow: hidden;
}

.quick-book-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary, #8b5cf6), var(--accent-secondary, #06b6d4), var(--accent-tertiary, #10b981));
}

.quick-book-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg, 24px);
    flex-wrap: wrap;
    gap: var(--space-sm, 8px);
}

.quick-book-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.quick-book-header h2 i {
    background: linear-gradient(135deg, var(--accent-primary, #8b5cf6), var(--accent-secondary, #06b6d4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quick-book-header p {
    color: var(--text-muted, rgba(255,255,255,0.5));
    font-size: 0.85rem;
    margin: 0;
}

.quick-book-fields {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr auto;
    gap: var(--space-md, 16px);
    align-items: end;
}

.qb-field label {
    display: block;
    color: var(--text-secondary, rgba(255,255,255,0.7));
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.qb-field label i {
    color: var(--accent-primary, #8b5cf6);
    margin-right: 4px;
}

.qb-field select,
.qb-field input {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--input-border, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-md, 12px);
    color: var(--text-primary, #ffffff);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.qb-field select {
    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='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    cursor: pointer;
}

.qb-field select option {
    background: #1a1a2e;
    color: #ffffff;
}

.qb-field select:focus,
.qb-field input:focus {
    border-color: var(--accent-primary, #8b5cf6);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
    outline: none;
}

.qb-submit {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-primary, #8b5cf6), var(--accent-secondary, #06b6d4));
    border: none;
    border-radius: var(--radius-md, 12px);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.qb-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.qb-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Quick-book availability indicator */
.qb-availability {
    margin-top: var(--space-md, 16px);
    display: none;
}

.qb-availability.visible {
    display: block;
}

.qb-avail-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.qb-avail-block {
    position: absolute;
    height: 100%;
    background: rgba(239, 68, 68, 0.6);
    border-radius: 4px;
}

.qb-avail-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.7rem;
    color: var(--text-muted, rgba(255,255,255,0.4));
}

@media (max-width: 992px) {
    .quick-book-fields {
        grid-template-columns: 1fr 1fr;
    }
    .qb-submit {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .quick-book-fields {
        grid-template-columns: 1fr;
    }
    .quick-book-section {
        padding: 0 var(--space-md) var(--space-md);
    }
}

/* ============================================
   TODAY'S SCHEDULE TIMELINE
   ============================================ */
.schedule-section {
    padding: 0 var(--space-xl) var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.schedule-container {
    background: var(--card-bg, rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-xl, 24px);
    padding: var(--space-xl, 32px);
    overflow: hidden;
}

.schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg, 24px);
    flex-wrap: wrap;
    gap: var(--space-sm, 8px);
}

.schedule-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.schedule-header h2 i {
    background: linear-gradient(135deg, var(--accent-primary, #8b5cf6), var(--accent-secondary, #06b6d4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.schedule-date {
    color: var(--text-muted, rgba(255,255,255,0.5));
    font-size: 0.85rem;
}

.schedule-timeline {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-time-header {
    display: flex;
    padding-left: 120px;
    margin-bottom: 8px;
    min-width: 800px;
}

.schedule-time-label {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted, rgba(255,255,255,0.4));
    font-weight: 500;
    position: relative;
}

.schedule-time-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: -4px;
    width: 1px;
    height: calc(100% + 12px);
    background: rgba(255, 255, 255, 0.05);
}

.schedule-room-row {
    display: flex;
    align-items: center;
    min-width: 800px;
    margin-bottom: 6px;
}

.schedule-room-name {
    width: 120px;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary, rgba(255,255,255,0.7));
    padding-right: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-room-bar {
    flex: 1;
    height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.schedule-booking-block {
    position: absolute;
    top: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, var(--accent-primary, #8b5cf6), var(--accent-secondary, #06b6d4));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: white;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    padding: 0 6px;
    cursor: default;
    transition: opacity 0.2s ease;
    min-width: 2px;
}

.schedule-booking-block:hover {
    opacity: 0.85;
    z-index: 2;
}

.schedule-booking-block.own-booking {
    background: linear-gradient(135deg, var(--accent-tertiary, #10b981), var(--accent-secondary, #06b6d4));
}

.schedule-now-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ef4444;
    z-index: 3;
    pointer-events: none;
}

.schedule-now-line::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

.schedule-legend {
    display: flex;
    gap: var(--space-lg, 24px);
    margin-top: var(--space-md, 16px);
    padding-top: var(--space-md, 16px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.schedule-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted, rgba(255,255,255,0.5));
}

.schedule-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 4px;
}

.schedule-legend-dot.booked {
    background: linear-gradient(135deg, var(--accent-primary, #8b5cf6), var(--accent-secondary, #06b6d4));
}

.schedule-legend-dot.own {
    background: linear-gradient(135deg, var(--accent-tertiary, #10b981), var(--accent-secondary, #06b6d4));
}

.schedule-legend-dot.now {
    background: #ef4444;
}

@media (max-width: 768px) {
    .schedule-section {
        padding: 0 var(--space-md) var(--space-md);
    }
    .schedule-container {
        padding: var(--space-md);
    }
    .schedule-room-name {
        width: 80px;
        font-size: 0.7rem;
    }
    .schedule-time-header {
        padding-left: 80px;
    }
}

/* ============================================
   ROOM FAVORITES
   ============================================ */
.room-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 0;
}

.room-favorite-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #fbbf24;
    transform: scale(1.1);
}

.room-favorite-btn.favorited {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.4);
}

.room-favorite-btn.favorited:hover {
    background: rgba(251, 191, 36, 0.3);
}

.favorites-filter {
    display: flex;
    align-items: center;
    gap: var(--space-sm, 8px);
}

.favorites-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md, 12px);
    color: var(--text-secondary, rgba(255,255,255,0.7));
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.favorites-toggle:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.favorites-toggle.active {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.favorites-toggle i {
    font-size: 0.85rem;
}

/* ============================================
   VISUAL TIME-SLOT PICKER (room.php)
   ============================================ */
.visual-time-picker {
    margin-bottom: var(--space-lg, 24px);
    display: none;
}

.visual-time-picker.visible {
    display: block;
}

.vtp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.vtp-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary, rgba(255,255,255,0.7));
    display: flex;
    align-items: center;
    gap: 8px;
}

.vtp-title i {
    color: var(--accent-primary, #8b5cf6);
}

.vtp-selection-info {
    font-size: 0.8rem;
    color: var(--accent-secondary, #06b6d4);
    font-weight: 500;
}

/* Scrollable container keeps labels aligned with grid on all sizes */
.vtp-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.vtp-inner {
    /* Fixed min-width ensures slots are big enough to tap on mobile */
    min-width: 600px;
}

.vtp-time-labels {
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.vtp-time-labels span {
    text-align: left;
    font-size: 0.65rem;
    color: var(--text-muted, rgba(255,255,255,0.4));
    grid-column: span 2;
    white-space: nowrap;
    padding-left: 1px;
}

.vtp-grid {
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    gap: 2px;
    margin-bottom: 8px;
    user-select: none;
    -webkit-user-select: none;
}

.vtp-slot {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    border: 1px solid transparent;
}

.vtp-slot:hover:not(.vtp-slot-booked):not(.vtp-slot-past) {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.vtp-slot.vtp-slot-booked {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.2);
    cursor: not-allowed;
}

.vtp-slot.vtp-slot-booked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(239, 68, 68, 0.4);
}

.vtp-slot.vtp-slot-past {
    background: rgba(255, 255, 255, 0.02);
    opacity: 0.4;
    cursor: not-allowed;
}

.vtp-slot.vtp-slot-selected {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.4));
    border-color: var(--accent-primary, #8b5cf6);
}

.vtp-slot.vtp-slot-start {
    border-radius: 8px 4px 4px 8px;
    border-color: var(--accent-primary, #8b5cf6);
}

.vtp-slot.vtp-slot-end {
    border-radius: 4px 8px 8px 4px;
    border-color: var(--accent-secondary, #06b6d4);
}

.vtp-slot.vtp-slot-start.vtp-slot-end {
    border-radius: 8px;
}

.vtp-legend {
    display: flex;
    gap: var(--space-md, 16px);
    margin-top: 10px;
    flex-wrap: wrap;
}

.vtp-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: var(--text-muted, rgba(255,255,255,0.5));
}

.vtp-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.vtp-legend-dot.available {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vtp-legend-dot.booked {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.vtp-legend-dot.selected {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.4));
    border: 1px solid var(--accent-primary, #8b5cf6);
}

/* Scrollbar styling */
.vtp-scroll-wrapper::-webkit-scrollbar { height: 4px; }
.vtp-scroll-wrapper::-webkit-scrollbar-track { background: transparent; }
.vtp-scroll-wrapper::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }

/* ---- Mobile VTP: fit everything on screen, rotated labels ---- */
@media (max-width: 768px) {
    .vtp-inner {
        min-width: 0;          /* remove forced scroll */
    }
    .vtp-scroll-wrapper {
        overflow-x: visible;
        overflow: visible;
    }
    .vtp-time-labels {
        gap: 1px;
        margin-bottom: 2px;
    }
    .vtp-time-labels span {
        writing-mode: vertical-lr;
        transform: rotate(180deg);
        font-size: 0.55rem;
        padding: 0;
        text-align: center;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        line-height: 1;
    }
    .vtp-grid {
        gap: 1px;
    }
    .vtp-slot {
        height: 48px;           /* taller to keep good tap target */
        border-radius: 3px;
    }
}

/* ---- Tiny phones: even tighter ---- */
@media (max-width: 380px) {
    .vtp-time-labels span {
        font-size: 0.5rem;
        height: 30px;
    }
    .vtp-slot {
        height: 44px;
    }
    .vtp-legend {
        gap: 8px;
    }
    .vtp-legend-item {
        font-size: 0.6rem;
    }
}

/* ============================================
   ANNOUNCEMENTS — Bell Icon, Panel & Banners
   ============================================ */

/* Bell button in navbar */
.annc-bell-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary, rgba(255,255,255,.6));
    font-size: 1.15rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.annc-bell-btn:hover {
    color: var(--text-primary, #fff);
    background: rgba(255,255,255,.08);
}
.annc-bell-btn.has-unread {
    color: #f59e0b;
    animation: bellRing 2s ease-in-out infinite;
}
@keyframes bellRing {
    0%, 80%, 100% { transform: rotate(0); }
    85% { transform: rotate(8deg); }
    90% { transform: rotate(-8deg); }
    95% { transform: rotate(4deg); }
}
.annc-bell-badge {
    position: absolute;
    top: 2px;
    right: 0;
    background: #ef4444;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Announcement Panel (dropdown from bell) */
.annc-panel-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
}
.annc-panel-overlay.open { display: block; }

.annc-panel {
    display: none;
    position: fixed;
    width: 380px;
    max-height: 480px;
    background: rgba(15,15,30,.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    z-index: 9999;
    overflow: hidden;
    flex-direction: column;
}
.annc-panel.open {
    display: flex;
}
.annc-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.annc-panel-header h3 {
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.annc-panel-header h3 i {
    color: #f59e0b;
    font-size: .85rem;
}
.annc-panel-mark-all {
    background: none;
    border: none;
    color: #6366f1;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all .2s;
}
.annc-panel-mark-all:hover {
    background: rgba(99,102,241,.15);
}

/* Panel body — scrollable list */
.annc-panel-body {
    overflow-y: auto;
    flex: 1;
    padding: 8px 0;
    max-height: 400px;
}
.annc-panel-body::-webkit-scrollbar { width: 4px; }
.annc-panel-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.annc-panel-empty {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,.35);
    font-size: .85rem;
}
.annc-panel-empty i {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: .3;
}

/* Individual announcement items in panel */
.annc-panel-item {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    cursor: default;
    transition: background .15s;
    position: relative;
}
.annc-panel-item:hover {
    background: rgba(255,255,255,.03);
}
.annc-panel-item.unread {
    background: rgba(99,102,241,.06);
}
.annc-panel-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6366f1;
}
.annc-panel-item-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 4px;
}
.annc-panel-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.annc-panel-item-icon.type-info { background: rgba(99,102,241,.15); color: #818cf8; }
.annc-panel-item-icon.type-warning { background: rgba(239,68,68,.15); color: #f87171; }
.annc-panel-item-icon.type-celebration { background: rgba(245,158,11,.15); color: #fbbf24; }

.annc-panel-item-title {
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    flex: 1;
}
.annc-panel-item-msg {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.annc-panel-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .65rem;
    color: rgba(255,255,255,.3);
}
.annc-panel-item-dismiss {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,.2);
    cursor: pointer;
    font-size: .8rem;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all .15s;
}
.annc-panel-item-dismiss:hover {
    color: #ef4444;
    background: rgba(239,68,68,.1);
}

/* ===== INDEX PAGE: ANNOUNCEMENT BANNERS ===== */
.announcements-section {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 0 20px;
}
.announcements-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.announcements-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.announcements-header > span {
    font-size: .85rem;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    gap: 8px;
}
.announcements-header > span i {
    color: #f59e0b;
}
.annc-count-badge {
    background: #ef4444;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
}
.annc-dismiss-all {
    background: none;
    border: none;
    color: #6366f1;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all .2s;
}
.annc-dismiss-all:hover {
    background: rgba(99,102,241,.15);
}

/* Individual banner */
.annc-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    position: relative;
    transition: all .3s;
}
.annc-banner.annc-info {
    background: rgba(99,102,241,.08);
    border: 1px solid rgba(99,102,241,.2);
}
.annc-banner.annc-warning {
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.2);
}
.annc-banner.annc-celebration {
    background: rgba(245,158,11,.08);
    border: 1px solid rgba(245,158,11,.2);
}
.annc-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .85rem;
}
.annc-info .annc-banner-icon { background: rgba(99,102,241,.15); color: #818cf8; }
.annc-warning .annc-banner-icon { background: rgba(239,68,68,.15); color: #f87171; }
.annc-celebration .annc-banner-icon { background: rgba(245,158,11,.15); color: #fbbf24; }

.annc-banner-body { flex: 1; min-width: 0; }
.annc-banner-title {
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.annc-banner-msg {
    font-size: .78rem;
    color: rgba(255,255,255,.6);
    line-height: 1.5;
    margin-bottom: 6px;
}
.annc-banner-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .65rem;
    color: rgba(255,255,255,.3);
}
.annc-banner-meta i { margin-right: 3px; }
.annc-banner-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,.25);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all .15s;
    line-height: 1;
}
.annc-banner-close:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
}
.annc-banner.dismissed {
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    border-width: 0;
    overflow: hidden;
}

/* Make panel items & banners clickable */
.annc-panel-item { cursor: pointer; }
.annc-panel-item:hover { background: rgba(255,255,255,.06); }
.annc-banner { cursor: pointer; }
.annc-banner:hover { filter: brightness(1.08); }

/* ===== ANNOUNCEMENT READ MODAL ===== */
.annc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.annc-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.annc-modal {
    width: 94%;
    max-width: 520px;
    max-height: 80vh;
    background: rgba(30,30,45,.96);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(.97);
    transition: transform .25s;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.annc-modal-overlay.open .annc-modal {
    transform: translateY(0) scale(1);
}
.annc-modal-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.annc-modal-head-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.annc-modal-head-icon.type-info { background: rgba(99,102,241,.15); color: #818cf8; }
.annc-modal-head-icon.type-warning { background: rgba(239,68,68,.15); color: #f87171; }
.annc-modal-head-icon.type-celebration { background: rgba(245,158,11,.15); color: #fbbf24; }

.annc-modal-head-text { flex: 1; min-width: 0; }
.annc-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 4px;
}
.annc-modal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .7rem;
    color: rgba(255,255,255,.35);
}
.annc-modal-meta i { margin-right: 3px; }
.annc-modal-close {
    background: rgba(255,255,255,.06);
    border: none;
    color: rgba(255,255,255,.5);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    flex-shrink: 0;
}
.annc-modal-close:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}
.annc-modal-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    font-size: .85rem;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.annc-modal-body::-webkit-scrollbar { width: 4px; }
.annc-modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
.annc-modal-type-bar {
    height: 3px;
    border-radius: 3px 3px 0 0;
}
.annc-modal-type-bar.type-info { background: linear-gradient(90deg, #6366f1, #818cf8); }
.annc-modal-type-bar.type-warning { background: linear-gradient(90deg, #ef4444, #f87171); }
.annc-modal-type-bar.type-celebration { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

@media (max-width: 480px) {
    .annc-banner { padding: 12px 14px; gap: 10px; }
    .annc-banner-icon { width: 30px; height: 30px; font-size: .75rem; }
    .annc-modal { max-width: 96%; border-radius: 14px; }
    .annc-modal-head { padding: 16px 18px 12px; }
    .annc-modal-body { padding: 14px 18px 18px; }
    /* Shrink token badge on mobile so bell stays on-screen */
    .token-nav-badge {
        padding: 4px 8px !important;
        font-size: .7rem !important;
        margin-right: 4px !important;
    }
    .nav-actions {
        gap: 6px;
    }
}

/* ============================================
   i18n TEXT OVERFLOW SAFETY NET
   Prevents long translations from breaking layout
   ============================================ */

/* ---- Mobile Bottom Nav ---- */
.mobile-nav-item {
    min-width: 0;
    max-width: 20%;  /* 5 items = 20% each max */
    overflow: hidden;
}
.mobile-nav-item span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

/* ---- Desktop Navbar Links ---- */
.nav-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.nav-menu {
    min-width: 0;
}

/* ---- All Button Types ---- */
.btn-modal,
.btn-glow,
.room-action-btn {
    white-space: nowrap;
}

/* Modal footers: let buttons wrap on small screens with long translations */
.modal-footer,
.modal-footer.premium-footer {
    flex-wrap: wrap;
    gap: 8px;
}
.modal-footer .btn-modal {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    justify-content: center;
}

/* ---- Status Badges (room cards, booking cards) ---- */
.room-status-badge {
    white-space: nowrap;
    max-width: calc(100% - 30px);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Stat Labels ---- */
.stat-label,
.stat-label-mini,
.admin-stat-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-content {
    min-width: 0;
}

/* ---- Stat Cards: shrink text on mobile when 2-col grid is tight ---- */
@media (max-width: 480px) {
    .stat-label {
        font-size: 0.75rem !important;
    }
    .stat-label-mini {
        font-size: 0.7rem !important;
    }
}

/* ---- Page Titles: allow wrapping but prevent overflow ---- */
.page-title,
.page-title-large {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ---- Room Card Names & Actions ---- */
.room-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.room-action-btn {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- General flex children text safety ---- */
.booking-status,
.badge-status {
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   AMENITIES — Tag input in admin, display tags on rooms
   ═══════════════════════════════════════════════════════════ */

/* Admin tag input */
.amenity-tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    min-height: 44px;
    align-items: center;
    cursor: text;
}
.amenity-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.amenity-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px 3px 10px;
    background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(168,85,247,.2));
    border: 1px solid rgba(129,140,248,.3);
    border-radius: 20px;
    font-size: .78rem;
    color: #c4b5fd;
    animation: tagIn .2s ease;
}
@keyframes tagIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.amenity-tag-remove {
    background: none;
    border: none;
    color: rgba(255,255,255,.4);
    cursor: pointer;
    font-size: .9rem;
    padding: 0 2px;
    line-height: 1;
}
.amenity-tag-remove:hover { color: #ef4444; }
.amenity-text-input {
    flex: 1;
    min-width: 100px;
    background: none;
    border: none;
    color: #e2e8f0;
    font-size: .85rem;
    outline: none;
    padding: 4px 0;
}
.amenity-text-input::placeholder { color: rgba(255,255,255,.25); }

/* Suggestion buttons */
.amenity-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}
.amenity-suggestion-btn {
    padding: 4px 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    color: rgba(255,255,255,.5);
    font-size: .75rem;
    cursor: pointer;
    transition: all .15s;
}
.amenity-suggestion-btn:hover {
    background: rgba(99,102,241,.15);
    border-color: rgba(99,102,241,.3);
    color: #a5b4fc;
}
.amenity-suggestion-btn.selected {
    background: rgba(99,102,241,.2);
    border-color: rgba(99,102,241,.4);
    color: #c4b5fd;
}

/* Display tags on room page hero */
.room-amenities-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.amenity-display-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(129,140,248,.2);
    border-radius: 20px;
    font-size: .78rem;
    color: #a5b4fc;
    white-space: nowrap;
}
.amenity-display-tag i {
    font-size: .7rem;
    opacity: .7;
}

/* Mini amenity tags on room cards (index page) */
.room-card-amenities {
    display: flex;
    gap: 4px;
    margin: 6px 0 2px;
    flex-wrap: wrap;
}
.amenity-mini-tag {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99,102,241,.1);
    border: 1px solid rgba(129,140,248,.15);
    border-radius: 6px;
    font-size: .7rem;
    color: #818cf8;
}
.amenity-mini-tag.amenity-more {
    font-size: .65rem;
    color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.08);
    padding: 0 4px;
    width: auto;
}
