/* index.css */
/* AeroBook Styling System */

/* --- Theme Variables & Root Settings --- */
:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Colors */
  --bg-primary: #0a0e17;
  --bg-secondary: rgba(18, 26, 44, 0.7);
  --bg-card: rgba(22, 32, 54, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(99, 102, 241, 0.4);

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --accent: #6366f1; /* Premium Indigo */
  --accent-glow: rgba(99, 102, 241, 0.25);
  
  --success: #10b981; /* Glowing Emerald */
  --success-glow: rgba(16, 185, 129, 0.2);

  --warning: #f59e0b; /* Warm Amber */
  --warning-glow: rgba(245, 158, 11, 0.2);

  --danger: #ef4444; /* Alert Coral */
  --danger-glow: rgba(239, 68, 68, 0.2);

  /* Heights and Transitions */
  --header-height: 70px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elastic: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Base Resets & Global Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Background Atmospheric Glows */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.bg-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  bottom: 10%;
  left: -100px;
}

/* --- Container App Shell --- */
.app-container {
  max-width: 600px; /* Centered mobile container style */
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 16px 40px 16px;
  display: flex;
  flex-direction: column;
}

/* --- Card Styles (Glassmorphism) --- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition-smooth);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- Headers & Titles --- */
.app-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.header-logo h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* --- Status Badge --- */
.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Badge States */
.status-badge.demo-mode {
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.3);
}
.status-badge.demo-mode .status-dot {
  background-color: var(--warning);
  box-shadow: 0 0 8px var(--warning);
  animation: pulse-orange 2s infinite;
}

.status-badge.cloud-connected {
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.3);
}
.status-badge.cloud-connected .status-dot {
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-green 2s infinite;
}

/* --- User Panel --- */
.user-panel {
  margin-bottom: 24px;
}

.user-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-input-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  font-weight: 600;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  pointer-events: none;
}

.user-panel input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.user-panel input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(0, 0, 0, 0.35);
}

/* --- 2-Week Grid Timeline (2x7 LTR) --- */
.timeline-container {
  margin-bottom: 10px;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 4px;
}

/* Date Buttons adjusted for grid */
.date-btn {
  width: 100%;
  aspect-ratio: 1 / 2.6; /* 2.6x taller than width on mobile */
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-elastic);
  position: relative;
  padding: 4px 1px;
}

.date-btn .day-name {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 2px;
}

.date-btn .day-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.date-btn .month-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Date Button Hover & Active States */
.date-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.date-btn.active {
  background: linear-gradient(135deg, var(--accent), #4f46e5);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
  transform: translateY(-3px) scale(1.02);
}

.date-btn.active .day-name {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.date-btn.active .day-num {
  color: #ffffff;
}

.date-btn.active .month-lbl {
  color: rgba(255, 255, 255, 0.7);
}

/* Today Indicator Text */
.date-btn.today::after {
  content: '(היום)';
  position: absolute;
  bottom: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--success);
}
.date-btn.active.today::after {
  background-color: transparent;
  color: #ffffff;
}

/* --- Rooms Grid --- */
.rooms-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Room Card */
.room-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.room-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--text-muted);
  transition: var(--transition-smooth);
}

.room-card:hover {
  transform: translateY(-2px);
  background: rgba(26, 38, 64, 0.7);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.room-card.available::before {
  background: var(--success);
}

.room-card.fully-booked::before {
  background: var(--danger);
}

.room-card.partially-booked::before {
  background: var(--warning);
}

/* Left Content of Room Card */
.room-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.room-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition-elastic);
}

.room-card:hover .room-avatar {
  transform: scale(1.1) rotate(5deg);
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--border-color-hover);
}

.room-details h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}



/* Right Content of Room Card */
.room-status {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.status-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.room-card.available .status-label {
  background: var(--success-glow);
  color: var(--success);
}

.room-card.fully-booked .status-label {
  background: var(--danger-glow);
  color: var(--danger);
}

.room-card.partially-booked .status-label {
  background: var(--warning-glow);
  color: var(--warning);
}

.booking-summary-txt {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --- Sliding Modal Drawer Overlay --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 23, 0.75); /* Dark faded backdrop */
  backdrop-filter: blur(14px); /* Highly blurred fading background */
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Mobile Bottom Sheet */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* The Bottom Sheet */
.booking-drawer {
  width: 100%;
  max-width: 600px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-radius: 30px 30px 0 0;
  max-height: 90vh; /* Taller sheet to hold pickers + planner grid */
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.4);
}

.modal-overlay.active .booking-drawer {
  transform: translateY(0);
}

/* Handle bar */
.drawer-handle {
  width: 40px;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  margin: 10px auto;
  flex-shrink: 0;
}

/* Modal Header styling */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-room-icon {
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.05);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#modalRoomName {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.close-btn svg {
  width: 20px;
  height: 20px;
}

/* Drawer Content list area */
.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px 40px 24px;
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.notice-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Schedule/Bookings List inside drawer */
.bookings-list-section {
  margin-bottom: 24px;
}

.drawer-section-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.bookings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.booking-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.booking-time-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.booking-time-range {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}

.booking-owner {
  font-size: 0.88rem;
  color: var(--warning);
  font-weight: 600;
  text-align: right;
}

.booking-purpose {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.delete-booking-btn {
  background: transparent;
  border: none;
  color: var(--danger);
  opacity: 0.7;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.delete-booking-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  opacity: 1;
  transform: scale(1.1);
}

.delete-booking-btn svg {
  width: 18px;
  height: 18px;
}

.no-bookings {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.01);
}

/* New Booking Form Styles */
.new-booking-form {
  background: rgba(0, 0, 0, 0.15) !important;
  border-radius: 20px;
}

.form-row {
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input[type="text"]:focus {
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.4);
}

/* Time Inputs Row Layout */
.time-inputs-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.time-inputs-row input[type="text"] {
  width: 90px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
}

.select-group {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 8px;
  flex: 1;
  height: 43px; /* Align height with text input */
}

.select-group select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  padding: 8px 4px;
  flex: 1;
  text-align-last: center;
  height: 100%;
}

.select-group select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.colon {
  color: var(--text-muted);
  font-weight: 700;
  padding: 0 4px;
}

.dialog-btn {
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

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

/* --- Pulse Animations --- */
@keyframes pulse-orange {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- Error Shake Animation --- */
.shake-error {
  animation: shake 0.4s ease-in-out;
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px var(--danger-glow) !important;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

/* --- Media Queries --- */
@media (min-width: 600px) {
  .app-container {
    max-width: 800px;
    padding: 20px 0 60px 0;
  }

  .date-btn {
    aspect-ratio: auto;
    height: 120px;
  }

  .rooms-row {
    overflow-x: visible;
    scroll-snap-type: none;
    gap: 12px;
    direction: rtl;
    justify-content: center;
  }

  .room-square {
    flex: 0 0 110px;
    height: 110px;
    scroll-snap-align: none;
    padding: 12px 6px;
    border-radius: 16px;
  }

  .room-square h3 {
    font-size: 1.65rem;
  }

  .room-square h3.long-title {
    font-size: 1.05rem !important;
  }

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

  .room-time-slot {
    font-size: 0.72rem;
    padding: 2px 8px;
  }
  
  /* Desktop Drawer behaves like regular Modal */
  .modal-overlay {
    align-items: center;
  }

  .booking-drawer {
    border-radius: 24px;
    border: 1px solid var(--border-color);
    max-height: 80vh;
    animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .drawer-handle {
    display: none;
  }

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

/* --- User Greeting Header Styles --- */
.user-greeting {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.greeting-text {
  color: var(--text-secondary);
}

.greeting-text strong {
  color: #fff;
  font-weight: 600;
}

.edit-name-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.edit-name-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.edit-name-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.reset-all-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 4px;
  transition: var(--transition-smooth);
  margin-left: 6px;
}

.reset-all-btn:hover {
  color: var(--danger);
  transform: scale(1.1);
}

.reset-all-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* Rooms container spacing */

/* --- Rooms Horizontal Row (LTR) --- */
.rooms-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 10px;
  padding: 4px 0 10px 0;
  width: 100%;
}

.rooms-row::-webkit-scrollbar {
  display: none;
}

.panel-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.room-square.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.03) 100%) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25) !important;
  transform: translateY(-2px) scale(1.02);
}

.room-square.active h3 {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

.room-square {
  flex: 0 0 100px;
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px; /* Slightly rounder look proportional for smaller square size */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: var(--transition-elastic);
}

.room-square::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--text-muted);
  transition: var(--transition-smooth);
}

.room-square:hover {
  transform: translateY(-4px) scale(1.03);
  background: rgba(26, 38, 64, 0.7);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.15);
}

.room-square h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
  transition: var(--transition-smooth);
}

.room-square h3.long-title {
  font-size: 0.82rem !important; /* Scaled down perfectly to fit Hebrew phrases! */
  font-weight: 700;
  text-align: center;
  padding: 0 2px;
  line-height: 1.25;
  margin-bottom: 4px;
}

.room-square-status {
  font-size: 0.62rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Square Status Modifier Colors */
.room-square.available::before {
  background: var(--success);
}
.room-square.partially-booked::before {
  background: var(--warning);
}
.room-square.fully-booked::before {
  background: var(--danger);
}

.room-square.available .room-square-status {
  color: var(--success);
}
.room-square.partially-booked .room-square-status {
  color: var(--warning);
}
.room-square.fully-booked .room-square-status {
  color: var(--danger);
}

/* --- Visual Daily Planner Grid --- */
.planner-grid-section {
  margin-bottom: 28px;
}

.planner-help-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.planner-timeline-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.time-slot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 2px 0;
}

.slot-time-label {
  flex: 0 0 45px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: right;
}

.slot-pill {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.82rem;
  transition: var(--transition-smooth);
}

/* Free Slot State */
.slot-pill.free {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  justify-content: space-between;
}

.slot-pill.free::after {
  content: 'Book Slot';
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.slot-pill.free:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--accent);
  transform: translateX(4px);
}

.slot-pill.free:hover::after {
  opacity: 1;
}

/* Booked Slot State */
.slot-pill.booked {
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: not-allowed;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
}

.slot-pill.booked .slot-booking-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-pill.booked .slot-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
}

.slot-pill.booked .slot-purpose {
  font-size: 0.72rem;
  opacity: 0.8;
  font-weight: 400;
  margin-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.slot-pill.booked .slot-time-range {
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.18);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Custom visual dot indicators in date-btn */
.date-btn .date-dots-row {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 3px;
  height: 5px;
  margin-top: 0;
}

.date-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 4px var(--accent);
}

.date-btn.active .date-dot {
  background-color: #fff;
  box-shadow: 0 0 4px #fff;
}

/* --- Onboarding Custom Styling Updates --- */
.onboarding-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

.onboarding-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.onboarding-card {
  width: 100%;
  max-width: 400px;
  text-align: center;
  background: #111726;
  border-radius: 28px;
  padding: 32px 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  animation: floatIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatIn {
  from { transform: translateY(30px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.onboarding-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.onboarding-logo h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #fff 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.onboarding-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.onboarding-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.onboarding-input-group {
  margin-bottom: 20px;
}

.onboarding-input-group input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  outline: none;
  transition: var(--transition-smooth);
}

.onboarding-input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(0, 0, 0, 0.45);
}

/* --- Custom 3D Touch Scroll Wheel Pickers --- */
.wheel-picker-container {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.wheel-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wheel-column-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.wheel-outer-wrapper {
  position: relative;
  width: 100%;
  height: 180px; /* 5 items * 36px height */
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Transparent Faded Overlays */
.wheel-fade-overlay {
  position: absolute;
  left: 0;
  width: 100%;
  height: 72px; /* 2 items height */
  z-index: 2;
  pointer-events: none;
}

.wheel-fade-overlay.top {
  top: 0;
  background: linear-gradient(to bottom, 
    rgba(10, 14, 23, 0.95) 0%, 
    rgba(10, 14, 23, 0.6) 40%, 
    rgba(10, 14, 23, 0) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.wheel-fade-overlay.bottom {
  bottom: 0;
  background: linear-gradient(to top, 
    rgba(10, 14, 23, 0.95) 0%, 
    rgba(10, 14, 23, 0.6) 40%, 
    rgba(10, 14, 23, 0) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* Selection Bar Indicator (Middle selected item) */
.wheel-selection-bar {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 72px; /* 2 spacers * 36px = 72px */
  height: 36px;
  border-top: 1px dashed rgba(99, 102, 241, 0.4);
  border-bottom: 1px dashed rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.04);
  pointer-events: none;
  border-radius: 6px;
  z-index: 1;
}

.wheel-flex-row {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.wheel-divider {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0 4px;
  line-height: 180px;
  z-index: 3;
}

.wheel-scroll-view {
  flex: 1;
  height: 100%;
  overflow-y: scroll;
  scrollbar-width: none; /* Hide scrollbars */
  -ms-overflow-style: none;
  scroll-snap-type: y mandatory;
  display: flex;
  flex-direction: column;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
  perspective: 1000px;
}

.wheel-scroll-view::-webkit-scrollbar {
  display: none;
}

.wheel-item {
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  scroll-snap-align: center;
  user-select: none;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  transform-origin: center center -20px;
  backface-visibility: hidden;
}

.wheel-item.active {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.wheel-spacer {
  height: 36px;
  min-height: 36px;
  pointer-events: none;
}

/* Phone Screen Adjustments for Premium Layout */
@media (max-width: 480px) {
  .modal-content {
    padding: 12px 14px 24px 14px !important;
  }
  .new-booking-form {
    padding: 14px 12px !important;
  }
  .wheel-picker-container {
    gap: 6px !important;
  }
  .wheel-outer-wrapper {
    border-radius: 12px !important;
  }
  .form-group label {
    font-size: 0.72rem !important;
  }
}

/* Toast Notification Styles */
.toast-notification {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%, 40px);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  direction: rtl;
  text-align: center;
  max-width: 90vw;
  width: max-content;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-notification.success {
  background: rgba(16, 185, 129, 0.95);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(16, 185, 129, 0.3);
}

.toast-notification.danger {
  background: rgba(239, 68, 68, 0.95);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(239, 68, 68, 0.3);
}

.toast-notification.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Taken Times Badges inside Room Squares */
.room-square-times {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  width: 100%;
}

.room-time-slot {
  font-size: 0.58rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  font-weight: 500;
}

.room-square.partially-booked .room-time-slot {
  border-color: rgba(245, 158, 11, 0.25);
  color: rgba(245, 158, 11, 0.95);
  background: rgba(245, 158, 11, 0.05);
}

.room-square.fully-booked .room-time-slot {
  border-color: rgba(239, 68, 68, 0.25);
  color: rgba(239, 68, 68, 0.95);
  background: rgba(239, 68, 68, 0.05);
}

/* Drawer warning banners */
.taken-times-banner {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  margin-bottom: 14px;
  line-height: 1.4;
  text-align: right;
  direction: rtl;
}

.taken-times-banner.active {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warning);
}

.taken-times-banner.free {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
}

/* Summary item layout */
.summary-time-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  direction: rtl;
}

.summary-delete-btn:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  opacity: 1 !important;
  transform: scale(1.1);
}

.taken-times-summary-section {
  margin-top: 12px;
  margin-bottom: 24px;
}

#takenTimesSummaryCard {
  padding: 16px;
}

#takenTimesSummaryList {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

/* --- Admin Sidebar Styling --- */
.admin-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

.close-sidebar-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.close-sidebar-btn:hover {
  color: var(--danger);
  transform: scale(1.1);
}

.close-sidebar-btn svg {
  width: 20px;
  height: 20px;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.sidebar-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  direction: rtl;
}

.admin-user-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  direction: rtl;
}

.admin-user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.admin-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-edit-user-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.admin-edit-user-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.admin-edit-user-btn svg {
  width: 16px;
  height: 16px;
}

/* Button style next to greet */
.admin-sidebar-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 4px;
  transition: var(--transition-smooth);
  margin-left: 6px;
}

.admin-sidebar-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.admin-sidebar-btn svg {
  width: 16px;
  height: 16px;
}

