/* Main Design System - Horse Festival Registration & Management Platform 2026 */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Luxury Minimalist & Enterprise */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #F1F3F5;
  --bg-card: #FFFFFF;
  --bg-dark: #111111;
  --bg-dark-card: #1E1E1E;

  --text-primary: #111111;
  --text-secondary: #4A4A4A;
  --text-muted: #71717A;
  --text-on-dark: #FFFFFF;
  --text-muted-on-dark: #A1A1AA;

  /* Red Accent - Strictly for Primary Buttons, Active States, Important Alerts */
  --accent-red: #D40000;
  --accent-red-hover: #B00000;
  --accent-red-active: #8C0000;
  --accent-red-light: rgba(212, 0, 0, 0.08);
  --accent-red-glow: rgba(212, 0, 0, 0.25);

  /* Status Colors */
  --status-success: #10B981;
  --status-success-bg: rgba(16, 185, 129, 0.1);
  --status-warning: #F59E0B;
  --status-warning-bg: rgba(245, 158, 11, 0.1);
  --status-danger: #EF4444;
  --status-danger-bg: rgba(239, 68, 68, 0.1);
  --status-info: #f63b3b;
  --status-info-bg: rgba(59, 130, 246, 0.1);

  /* Borders & Shadows */
  --border-color: #E5E7EB;
  --border-color-dark: #27272A;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --border-radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
  --shadow-red: 0 8px 24px rgba(212, 0, 0, 0.25);

  /* Spacing System */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Fonts */
  --font-arabic: 'IBM Plex Sans Arabic', 'Cairo', -apple-system, sans-serif;
  --font-english: 'Inter', -apple-system, sans-serif;

  /* Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  /* 12-14px */
  --text-sm: clamp(0.8125rem, 0.76rem + 0.25vw, 0.9375rem);
  /* 13-15px */
  --text-base: clamp(0.9375rem, 0.89rem + 0.25vw, 1.125rem);
  /* 15-18px */
  --text-lg: clamp(1.125rem, 1.08rem + 0.25vw, 1.25rem);
  /* 18-20px */
  --text-xl: clamp(1.25rem, 1.2rem + 0.25vw, 1.5rem);
  /* 20-24px */
  --text-2xl: clamp(1.5rem, 1.4rem + 0.5vw, 2rem);
  /* 24-32px */
  --text-3xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.625rem);
  /* 28-42px */
  --text-4xl: clamp(1.875rem, 1.5rem + 1.8vw, 3.5rem);
  /* 30-56px */

  /* Transitions */
  --transition-fast: all 0.1s ease-out;
  --transition-normal: all 0.15s ease-out;
  --transition-slow: all 0.25s ease-out;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  /* For watermark positioning */
}

/* Watermark */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('../assets/Watermark.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 50%;
  opacity: 0.15;
  z-index: -999;
  pointer-events: none;
}

body[dir="ltr"] {
  font-family: var(--font-english);
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.7;
}

small,
.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

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

a:hover {
  color: var(--accent-red-hover);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: var(--text-base);
}

/* Utility Containers */
.container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-8);
  }
}

.section-padding {
  padding: var(--space-16) 0;
}

@media (min-width: 768px) {
  .section-padding {
    padding: var(--space-20) 0;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: var(--space-24) 0;
  }
}

/* Base Layout Structure */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.brand-logo img {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  border: 2px solid var(--accent-red);
}

.brand-badge {
  background: var(--accent-red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--border-radius-pill);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.nav-link {
  display: inline-block;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-red);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Main Views Container */
.main-view {
  flex: 1;
}

.view-page {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.view-page.active {
  display: block;
  opacity: 1;
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
  border-top: 1px solid var(--border-color-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted-on-dark);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-col h5 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted-on-dark);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted-on-dark);
  font-size: 0.85rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body[dir="rtl"] .toast-container {
  right: auto;
  left: 24px;
}

.toast {
  background: var(--bg-dark);
  color: white;
  padding: 14px 20px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 4px solid var(--accent-red);
  min-width: 300px;
  animation: fadeIn 0.3s forwards;
}

.toast.success {
  border-color: var(--status-success);
}

.toast.error {
  border-color: var(--accent-red);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
    /* Mobile menu drawer toggleable */
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- Essential Utility Classes --- */
.text-white {
  color: #FFFFFF !important;
}

.text-black {
  color: var(--text-primary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-red {
  color: var(--accent-red) !important;
}

.text-success {
  color: var(--status-success) !important;
}

.text-center {
  text-align: center !important;
}

.d-flex {
  display: flex !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-center {
  justify-content: center !important;
}

.align-items-center {
  align-items: center !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.my-3 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

.max-w-2xl {
  max-width: 42rem !important;
}

.max-w-3xl {
  max-width: 48rem !important;
}

.max-w-4xl {
  max-width: 56rem !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

/* Responsive Grid & Layout for Mobile Devices */
@media (max-width: 1024px) {
  .hero-title {
    font-size: var(--text-3xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-4);
  }
}

@media (max-width: 768px) {

  /* Forms */
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-4);
  }

  /* Tables */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--space-4);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
  }

  .data-table {
    min-width: 800px;
    /* force horizontal scroll on mobile */
  }

  /* Admin Layout */
  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    min-height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-4);
  }

  .admin-content {
    margin-right: 0 !important;
    padding: var(--space-4) !important;
    width: 100%;
  }

  .admin-sidebar .nav-menu {
    display: flex;
    overflow-x: auto;
    gap: var(--space-2);
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
  }

  .admin-sidebar .nav-item {
    white-space: nowrap;
    margin-bottom: 0;
  }

  /* Grids */
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }

  /* Wizard */
  .wizard-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  /* Modals */
  .modal-card {
    width: 95%;
    margin: var(--space-4) auto;
    padding: var(--space-6);
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Navbar and Mobile Dropdown */
  .navbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
    position: relative;
    height: auto !important;
  }

  .nav-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-4);
    gap: var(--space-2);
  }

  .nav-actions>*:not(#mobileMenuBtn) {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
    justify-content: center;
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-1);
    white-space: normal;
    display: inline-flex;
    height: 44px;
    /* Touch target size */
  }

  #mobileMenuBtn {
    display: inline-flex !important;
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }

  body[dir="ltr"] #mobileMenuBtn {
    left: auto;
    right: var(--space-4);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius-md);
    padding: var(--space-4);
    margin-top: var(--space-4);
    gap: var(--space-2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--border-radius-sm);
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(212, 0, 0, 0.1);
    color: var(--accent-red);
  }

  /* Hero section */
  .hero-section {
    padding: 3rem 0;
  }

  h1 {
    font-size: 2rem !important;
  }

  /* Buttons */
  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 1rem;
  }

  .d-flex.justify-content-between .btn {
    width: 100%;
  }

  /* Charts */
  .card canvas {
    max-height: 220px !important;
    max-width: 100% !important;
    margin: 0 auto;
  }
}

/* --- Stable Seat Map Styles --- */
/* --- General Map Container Layout --- */
.map-layout {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background: #18181b;
  border-radius: 8px;
  overflow-x: auto;
  direction: ltr; /* keep it left-to-right for consistent block positions */
  border: 1px solid #27272a;
}

/* --- Map 1: VIP Tables Map Layout (Old layout) --- */
#stableTablesGrid.map-layout {
  max-width: 950px;
}

#stableTablesGrid .map-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 320px;
}

#stableTablesGrid .map-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

#stableTablesGrid .map-box {
  border: 1px solid #3f3f46;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 6px;
  width: 72px;
  height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  position: relative;
  transition: all 0.3s;
}

#stableTablesGrid .map-box:hover {
  border-color: #52525b;
  background: rgba(255, 255, 255, 0.04);
}

#stableTablesGrid .map-box.single-table-box {
  justify-content: center;
}

#stableTablesGrid .table-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #16a34a; /* Green for available */
  border: 2px solid #15803d; /* Green border */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

#stableTablesGrid .table-item::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  pointer-events: none;
  transition: all 0.2s;
}

#stableTablesGrid .table-item:hover:not(.locked-table):not(.approved):not(.pending) {
  background: #22c55e;
  border-color: #4ade80;
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

#stableTablesGrid .table-item:hover:not(.locked-table):not(.approved):not(.pending)::before {
  border-color: rgba(255, 255, 255, 0.4);
}

#stableTablesGrid .table-item.locked-table {
  background: #1c1917 !important;
  border-color: #44403c !important;
  color: #78716c !important;
  cursor: not-allowed !important;
  opacity: 0.65;
}

#stableTablesGrid .table-item.locked-table::before {
  display: none;
}

#stableTablesGrid .table-item.selected {
  background: #2563eb !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.8) !important;
  transform: scale(1.1);
}

#stableTablesGrid .table-item.selected::before {
  border-color: #ffffff !important;
}

#stableTablesGrid .table-item.pending {
  background: #d97706 !important;
  border-color: #b45309 !important;
  color: #ffffff !important;
  cursor: not-allowed;
}

#stableTablesGrid .table-item.pending::before {
  border-color: rgba(217, 119, 6, 0.4);
}

#stableTablesGrid .table-item.approved {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
  cursor: not-allowed;
}

#stableTablesGrid .table-item.approved::before {
  border-color: rgba(220, 38, 38, 0.4);
}


/* --- Map 2: General Seats Map (Compact - No Scroll) --- */
.compact-seat-map {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  max-width: 960px;
  overflow: visible;
  padding: 15px;
  gap: 20px !important;
}

.compact-seat-map .map-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important; /* Gap between the 4 sub-blocks */
  flex: 0 0 auto !important;
  width: 158px !important;
  min-width: 158px !important;
}

.compact-seat-map .sub-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  width: 158px !important;
}

.compact-seat-map .map-row {
  display: grid !important;
  grid-template-columns: repeat(8, 18px) !important;
  gap: 2px !important;
  width: 100% !important;
}

.compact-seat-map .table-item {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  border-radius: 3px !important;
  background: #16a34a; /* Green for available */
  border: 1px solid #15803d !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px !important;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  user-select: none;
  padding: 0 !important;
}

.compact-seat-map .table-item::before {
  display: none;
}

.compact-seat-map .table-item:hover:not(.approved):not(.pending) {
  background: #22c55e;
  border-color: #4ade80;
  transform: scale(1.25);
  z-index: 10;
  box-shadow: 0 0 5px rgba(34, 197, 94, 0.6);
}

.compact-seat-map .table-item.selected {
  background: #2563eb !important; /* Blue for selected */
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 0 5px rgba(37, 99, 235, 0.8) !important;
  transform: scale(1.25);
  z-index: 10;
}

.compact-seat-map .table-item.pending {
  background: #d97706 !important; /* Yellow/Orange */
  border-color: #b45309 !important;
  color: #ffffff !important;
  cursor: not-allowed;
  opacity: 0.9;
}

.compact-seat-map .table-item.approved {
  background: #dc2626 !important; /* Red */
  border-color: #b91c1c !important;
  color: #ffffff !important;
  cursor: not-allowed;
}

.compact-seat-map .center-corridor {
  width: 70px !important;
  min-width: 70px !important;
  flex: 0 0 auto !important;
  min-height: 100px !important;
  padding: 4px 2px !important;
  font-size: 0.55rem !important;
}

.compact-seat-map .platform-text {
  writing-mode: vertical-rl !important;
  letter-spacing: 1px !important;
  font-size: 0.55rem !important;
}

.compact-seat-map .corridor-top-arrow {
  font-size: 0.7rem !important;
}

.compact-seat-map .corridor-bottom-stage {
  font-size: 0.55rem !important;
  padding: 2px !important;
  width: 90% !important;
}

.compact-seat-map .staircase {
  margin: 3px 0 !important;
  gap: 2px !important;
  width: 90% !important;
}

.compact-seat-map .step-bar {
  height: 2px !important;
}


/* --- Shared Corridor and responsive styles --- */
.center-corridor {
  background: #09090b;
  border: 1px solid #27272a;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: #a1a1aa;
  position: relative;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
}

.corridor-top-arrow {
  color: #52525b;
  letter-spacing: 2px;
  margin-top: 5px;
}

.staircase {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-bar {
  width: 100%;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 1px;
}

.main-platform {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-top: 1px dashed #27272a;
  border-bottom: 1px dashed #27272a;
  width: 100%;
  margin: 10px 0;
  padding: 15px 0;
}

.platform-text {
  font-weight: 700;
  color: #52525b;
  text-transform: uppercase;
  text-orientation: mixed;
}

.platform-arrow {
  color: #52525b;
  font-size: 1rem;
}

.corridor-bottom-stage {
  width: 90%;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 4px;
  text-align: center;
  font-weight: 700;
  color: #e4e4e7;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Specific elements for stableTablesGrid corridor */
#stableTablesGrid .center-corridor {
  width: 140px;
  min-height: 220px;
  padding: 12px 6px;
  font-size: 0.75rem;
}

#stableTablesGrid .platform-text {
  writing-mode: vertical-rl;
  letter-spacing: 3px;
}

#stableTablesGrid .corridor-top-arrow {
  font-size: 1.1rem;
}

#stableTablesGrid .corridor-bottom-stage {
  padding: 8px 4px;
}

#stableTablesGrid .staircase {
  margin: 10px 0;
  gap: 3px;
}

#stableTablesGrid .step-bar {
  height: 4px;
}

/* Responsive map */
@media (max-width: 768px) {
  #stableTablesGrid.map-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 15px !important;
    zoom: 0.45 !important;
  }
  .compact-seat-map {
    zoom: 0.8 !important;
    overflow-x: auto !important;
    justify-content: center !important;
    padding: 10px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 480px) {
  #stableTablesGrid.map-layout {
    zoom: 0.36 !important;
  }
  .compact-seat-map {
    zoom: 0.55 !important;
    justify-content: center !important;
    padding: 5px !important;
  }
}