/* ============================================================
   OPENTUM WEB MANAGEMENT DASHBOARD - APPLE/NIKE FUSION STYLE
   Clean Minimalism meets High-Energy Bold Accents
   ============================================================ */

:root {
  --bg-dark:       #f5f5f7; /* Apple signature background */
  --bg-card:       #ffffff; /* Pure white card */
  --bg-hover:      #fafafa;
  --bg-rich:       #ffffff;

  --primary:       #0071e3; /* Apple electric blue */
  --primary-hover: #0077ed;
  --primary-glow:  rgba(0, 113, 227, 0.06);
  
  --accent-neon:   #c5a880; /* Elegant Champagne Gold */
  --accent-neon-glow: rgba(197, 168, 128, 0.1);

  --secondary:      #ff9500; /* Apple orange */
  --secondary-glow: rgba(255, 149, 0, 0.05);

  --red:           #ff3b30; /* Apple red */
  --red-glow:      rgba(255, 59, 48, 0.05);
  
  --text-main:     #1d1d1f; /* Charcoal black */
  --text-dim:      #6e6e73; /* Apple secondary gray */
  --text-muted:    #a1a1a6;
  --border:        #e5e5ea; /* Apple light gray border */
  --glass-border:  rgba(0, 0, 0, 0.06);

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;

  --ease:          cubic-bezier(0.16, 1, 0.3, 1);
  --spring:        cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-serif:    'Cormorant Garamond', Georgia, serif;
}

/* ── Reset & Globals ────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}
body {
  overflow: hidden;
  height: 100vh;
  line-height: 1.5;
  background-color: var(--bg-dark);
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  outline: none;
}
input, textarea, select {
  font-family: inherit;
  outline: none;
}
.hidden { display: none !important; }
.w-100 { width: 100% !important; }
.mt-20 { margin-top: 20px !important; }
.mt-40 { margin-top: 40px !important; }
.mb-20 { margin-bottom: 20px !important; }
.text-center { text-align: center !important; }

/* ── Ambient Background Glows ────────────────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.35;
}
.orb-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.12), transparent 70%);
  animation: floatOrbA 25s ease-in-out infinite alternate;
}
.orb-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.08), transparent 70%);
  animation: floatOrbB 30s ease-in-out infinite alternate;
}
@keyframes floatOrbA { 0%{transform:translate(0,0)} 100%{transform:translate(60px,50px)} }
@keyframes floatOrbB { 0%{transform:translate(0,0)} 100%{transform:translate(-50px,-60px)} }

/* ── Apple-Nike Card Layouts ─────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.35s var(--ease);
}
.glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ── Login Screen ────────────────────────────────────────────── */
.login-container {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  padding: 24px;
}
.login-tabs {
  display: flex;
  background: #f5f5f7;
  padding: 4px;
  border-radius: 30px;
  margin-bottom: 28px;
  border: 1px solid rgba(0,0,0,0.04);
}
.login-tab {
  flex: 1;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 25px;
  color: var(--text-dim);
  text-align: center;
  transition: all 0.25s var(--ease);
}
.login-tab.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 50px 40px;
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  animation: fadeUp 0.6s var(--ease) both;
}
.login-card h2 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 6px;
}
.login-card p {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 36px;
}
.login-error {
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 14px;
  font-weight: 700;
}

/* ── Shifts & Scheduling Styles ───────────────────────────────── */
.shifts-table th, .shifts-table td {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.shifts-table td:first-child {
  text-align: left;
  font-weight: 800;
  font-size: 0.95rem;
}
.shift-cell {
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  transition: all 0.2s var(--ease);
}
.shift-cell:hover {
  background: var(--primary-glow);
  transform: scale(1.02);
}
.shift-cell.is-off {
  background: rgba(255, 59, 48, 0.02);
}
.shift-cell.is-off:hover {
  background: var(--red-glow);
}

/* ── Web Application Container & Sidebar ──────────────────────── */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 40px;
  padding-left: 12px;
}
.logo-portal {
  width: 28px;
  height: 28px;
  background: var(--text-main);
  border-radius: 50%;
  position: relative;
}
.logo-portal::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1.5px solid white;
  border-radius: 50%;
  opacity: 0.7;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.25s var(--ease);
  position: relative;
}
.menu-item i {
  font-size: 1.3rem;
  color: var(--text-dim);
  transition: color 0.25s;
}
.menu-item:hover {
  background: #f5f5f7;
  color: var(--text-main);
}
.menu-item.active {
  background: #f5f5f7;
  color: var(--primary);
}
.menu-item.active i {
  color: var(--primary);
}
.menu-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background: var(--accent-neon);
  border-radius: 2px;
}

.sidebar-footer {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f5f5f7;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.user-meta {
  min-width: 0;
}
.user-name {
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}
.btn-logout {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.2s;
}
.btn-logout:hover {
  color: var(--red);
  background: var(--red-glow);
}

/* ── Main Layout & Topbar ────────────────────────────────────── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  padding: 40px 48px;
  background-color: var(--bg-dark);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-shrink: 0;
}
.topbar h2 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.biz-badge {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* Notification Bell Dropdown */
.notif-wrapper {
  position: relative;
}
.topbar-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  position: relative;
  transition: all 0.25s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.topbar-btn:hover {
  background: #f5f5f7;
  border-color: rgba(0,0,0,0.15);
}
.topbar-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 50px;
  border: 2px solid #ffffff;
}
.notif-dropdown {
  position: absolute;
  top: 54px;
  right: 0;
  width: 340px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
  overflow: hidden;
  z-index: 10;
  animation: fadeUp 0.3s var(--ease) both;
}
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--glass-border);
  font-weight: 800;
  font-size: 0.95rem;
}
.btn-text {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
}
.notif-list {
  max-height: 280px;
  overflow-y: auto;
}
.empty-notif {
  padding: 36px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
}
.notif-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.2s;
}
.notif-item:hover {
  background: #f5f5f7;
}
.notif-item-body h5 {
  font-size: 0.95rem;
  font-weight: 800;
}
.notif-item-body p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.btn-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.btn-check:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ── Tab Panes Base ──────────────────────────────────────────── */
.tab-pane {
  display: none;
  flex-direction: column;
  flex: 1;
}
.tab-pane.active {
  display: flex;
}

/* ── Tab: Dashboard stats and grids ──────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px;
}
.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 800;
}
.stat-val {
  font-size: 2.2rem;
  font-weight: 900;
  margin-top: 6px;
  letter-spacing: -0.02em;
}
.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.bg-emerald { background: rgba(52, 199, 89, 0.08); color: #34c759; }
.bg-gold { background: rgba(255, 149, 0, 0.08); color: #ff9500; }
.bg-indigo { background: rgba(0, 113, 227, 0.08); color: var(--primary); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}
.graph-card {
  padding: 30px;
}
.graph-card h3, .live-calls-card h3 {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.chart-container {
  width: 100%;
  height: 320px;
}
.live-calls-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.card-header h3 { margin-bottom: 0; }
.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.calls-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  max-height: 320px;
}
.empty-calls {
  margin: auto;
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
}

/* Energetic Nike-style Active Call Card alerts */
.alert-call-card {
  border-left: 4px solid var(--red) !important;
  background: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeUp 0.3s var(--ease) both;
}
.alert-call-card h4 {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.alert-call-card p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ── Action Bars and Inputs ──────────────────────────────────── */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}
.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: #f5f5f7;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  width: 320px;
}
.search-bar i {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
}
.search-bar input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: transparent;
  color: var(--text-main);
  border: none;
  font-size: 0.9rem;
}
.action-buttons {
  display: flex;
  gap: 12px;
}

/* Pill buttons referencing Apple and Nike styling */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  border-radius: 50px; /* Pill shape */
  cursor: pointer;
  padding: 10px 24px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s var(--spring);
}
.btn-primary {
  background: var(--text-main); /* Black */
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover {
  background: var(--primary); /* Apple Blue on hover */
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.25);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: #ffffff;
  border: 1.5px solid var(--text-main);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: var(--text-main);
  color: #ffffff;
  transform: translateY(-1px);
}
.btn-danger {
  background: rgba(255, 59, 48, 0.08);
  border: 1.5px solid var(--red);
  color: var(--red);
}
.btn-danger:hover {
  background: var(--red);
  color: #ffffff;
  transform: translateY(-1px);
}
.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: all 0.25s var(--ease);
}
.btn-icon:hover {
  background: #f5f5f7;
  color: var(--text-main);
  transform: scale(1.05);
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  text-align: left;
}
.form-group label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.glass-input, .glass-select, .glass-textarea {
  background: #ffffff;
  border: 1.5px solid #d2d2d7;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 12px 16px;
  font-size: 0.92rem;
  transition: all 0.25s var(--ease);
}
.glass-input:focus, .glass-select:focus, .glass-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}
.glass-select option {
  background-color: #ffffff;
  color: var(--text-main);
}

/* Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #e5e5ea;
  transition: .3s var(--ease);
}
.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: .3s var(--ease);
}
input:checked + .slider {
  background-color: #34c759;
}
input:checked + .slider::before {
  transform: translateX(20px);
}
.slider.round { border-radius: 34px; }
.slider.round::before { border-radius: 50%; }

/* Checkbox Checklist */
.areas-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid #d2d2d7;
  border-radius: var(--radius-sm);
  padding: 14px;
}
.check-lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-main);
  cursor: pointer;
}
.check-lbl input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* ── Tab: QR Menu List Layout ────────────────────────────────── */
.menu-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cat-section {
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}
.cat-sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #ffffff;
  border-bottom: 1.5px solid #f5f5f7;
}
.cat-sec-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cat-sec-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--glass-border);
}
.cat-sec-title h4 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cat-sec-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Nested Product Row List */
.cat-sec-products {
  padding: 16px 24px;
  background-color: #fbfbfd;
}
.prod-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.prod-row:last-child {
  border-bottom: none;
}
.prod-img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f5f5f7;
  border: 1px solid var(--glass-border);
}
.prod-placeholder-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: #f5f5f7;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-dim);
}
.prod-meta {
  flex: 1;
  min-width: 0;
}
.prod-meta h5 {
  font-size: 1rem;
  font-weight: 800;
}
.prod-meta p {
  font-size: 0.85rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.prod-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  width: 100px;
  text-align: right;
}
.prod-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Tab: Table Layout Drag & Drop Editor ───────────────────── */
.area-selector-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.area-lbl {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.area-tabs {
  display: flex;
  gap: 6px;
}
.area-tab {
  padding: 8px 20px;
  border-radius: 50px;
  background: #ffffff;
  border: 1.5px solid #d2d2d7;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.area-tab:hover {
  background: #f5f5f7;
  border-color: var(--text-main);
}
.area-tab.active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.table-editor-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  flex: 1;
  min-height: 500px;
}
.table-canvas {
  background-color: #f4f5f8;
  background-image: linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.03);
}
.canvas-empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  padding: 30px;
}

/* Elegant Drag Table Node element */
.editor-table-node {
  position: absolute;
  width: 58px;
  height: 58px;
  background: #ffffff;
  border: 2px solid var(--accent-neon);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: grab;
  user-select: none;
  z-index: 5;
  box-shadow: 0 6px 16px rgba(197, 168, 128, 0.08);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  gap: 2px;
  position: absolute;
}
.editor-table-node i { font-size: 1.05rem; color: var(--text-dim); }
.editor-table-node:active { cursor: grabbing; transform: scale(1.05); }
.editor-table-node.shape-round { border-radius: 50%; }
.editor-table-node.shape-square { border-radius: var(--radius-sm); }

/* Corner status dot */
.editor-table-node::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-neon); /* Volt Green by default */
  box-shadow: 0 0 4px var(--accent-neon);
}

.editor-table-node.selected {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.18);
}
.editor-table-node.selected::after {
  background-color: var(--primary);
  box-shadow: 0 0 4px var(--primary);
}
.editor-table-node.selected i { color: var(--primary); }

.editor-table-node.reserved {
  border-color: var(--secondary);
  box-shadow: 0 8px 24px rgba(255, 149, 0, 0.15);
}
.editor-table-node.reserved::after {
  background-color: var(--secondary);
  box-shadow: 0 0 4px var(--secondary);
}
.editor-table-node.reserved i { color: var(--secondary); }

.properties-panel {
  padding: 24px;
  align-self: start;
  animation: fadeUp 0.4s var(--ease) both;
}
.properties-panel h3 {
  font-size: 1.25rem;
  font-weight: 900;
  border-bottom: 1.5px solid #f5f5f7;
  padding-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* ── Tab: Staff & Ratings Management ────────────────────────── */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.staff-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.staff-card .avatar {
  width: 68px;
  height: 68px;
  font-size: 1.6rem;
  margin-bottom: 18px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.staff-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.staff-card .role-badge {
  font-size: 9px;
  font-weight: 900;
  background: #f5f5f7;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 3px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}
.staff-card .assigned-areas {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 24px;
}
.staff-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}
.staff-actions button {
  flex: 1;
}

/* Reviews List Styles */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: 0 2px 10px rgba(0,0,0,0.01);
}
.review-card .avatar { flex-shrink: 0; }
.review-body { flex: 1; min-width: 0; }
.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.review-top h5 {
  font-size: 1rem;
  font-weight: 800;
}
.review-stars {
  color: #ff9500;
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.review-comment {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}
.review-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 8px;
}

/* ── Dialog Overlays and Modals ─────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: overlayIn 0.25s var(--ease) both;
}
.modal-card {
  width: 100%;
  max-width: 500px;
  padding: 40px 32px;
  position: relative;
  animation: scaleIn 0.35s var(--spring) both;
  box-shadow: 0 30px 70px rgba(0,0,0,0.1);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f7;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: all 0.2s;
}
.modal-close:hover {
  background: #e5e5ea;
  color: var(--text-main);
  transform: rotate(90deg);
}
.modal-card h3 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Preset Grids inside Modals */
.preset-icons-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 10px;
  background: #f5f5f7;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 120px;
  overflow-y: auto;
}
.preset-icon-item {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-dim);
}
.preset-icon-item:hover { border-color: var(--text-main); }
.preset-icon-item.selected {
  border-color: var(--primary);
  background: var(--primary-glow);
  color: var(--primary);
}

.preset-covers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  background: #f5f5f7;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 150px;
  overflow-y: auto;
}
.preset-cover-item {
  height: 48px;
  border-radius: 8px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: all 0.2s;
}
.preset-cover-item.selected {
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(0, 113, 227, 0.3);
}

/* ── Animation Keyframes ─────────────────────────────────────── */
@keyframes overlayIn { from{opacity:0} to{opacity:1} }
@keyframes scaleIn   { from{opacity:0;transform:scale(0.95)} to{opacity:1;transform:scale(1)} }
@keyframes fadeUp    { from{opacity:0;transform:translateY(15px)} to{opacity:1;transform:none} }
