/* =========================================
   Nevşehir Öğretmenevi Panel — Modern UI
   Linear / Notion / Vercel hissi
   ========================================= */

:root {
  --primary: #0F172A;
  --primary-hover: #1E293B;
  --accent: #6366F1;
  --accent-hover: #4F46E5;
  --accent-soft: #EEF2FF;
  --accent-soft-hover: #E0E7FF;
  --success: #10B981;
  --success-soft: #ECFDF5;
  --warning: #F59E0B;
  --warning-soft: #FFFBEB;
  --danger: #EF4444;
  --danger-soft: #FEF2F2;
  --info: #0EA5E9;
  --info-soft: #F0F9FF;

  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --surface-2: #F9FAFB;
  --surface-3: #F3F4F6;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --text: #111827;
  --text-2: #374151;
  --text-muted: #6B7280;
  --text-faint: #9CA3AF;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .05), 0 1px 2px rgba(15, 23, 42, .03);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .06), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, .08), 0 4px 8px rgba(15, 23, 42, .04);
  --shadow-focus: 0 0 0 4px rgba(99, 102, 241, .12);

  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --sidebar-w: 220px;
  --header-h: 64px;
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.18s var(--easing);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; margin: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.0625rem; }
.h5 { font-size: 1.0625rem !important; font-weight: 600 !important; }
.h6 { font-size: 0.875rem !important; font-weight: 600 !important; letter-spacing: -0.01em !important; }

small, .small { font-size: 0.8125rem; }
.text-muted { color: var(--text-muted) !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 600 !important; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; opacity: 1; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 500; font-size: 0.875rem;
  padding: 0.5625rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer; user-select: none;
  transition: all var(--transition);
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn-lg { padding: 0.75rem 1.25rem; font-size: 0.9375rem; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-icon { padding: 0; width: 36px; height: 36px; border-radius: var(--radius); }
.btn-icon:hover { background: var(--surface-3); }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; border-color: var(--primary-hover); box-shadow: var(--shadow-sm); }
.btn-primary:focus-visible { box-shadow: var(--shadow-focus), var(--shadow-sm); }

.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }

.btn-light, .btn-secondary {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
}
.btn-light:hover, .btn-secondary:hover {
  background: var(--surface-2); color: var(--text); border-color: var(--border-strong);
}

.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #059669; color: #fff; border-color: #059669; }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-outline-danger { background: transparent; color: var(--danger); border-color: var(--border); }
.btn-outline-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn i + span, .btn span + i, .btn i + * { margin-left: 0.375rem; }

.no-caret::after { display: none !important; }

/* ===== Cards ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card-hoverable:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
}
.card-body { padding: 1.25rem; }
.card-footer { background: transparent; border-top: 1px solid var(--border); padding: 0.875rem 1.25rem; }

/* ===== Sidebar ===== */
.app-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 1040;
  transition: transform var(--transition);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0 1.25rem; height: var(--header-h);
  border-bottom: 1px solid var(--border);
}
.brand-link { display: flex; align-items: center; gap: 0.625rem; flex-grow: 1; color: var(--text); }
.brand-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-title { font-weight: 600; font-size: 0.875rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.6875rem; color: var(--text-muted); }
.sidebar-close { color: var(--text-muted); }
.sidebar-nav { flex-grow: 1; overflow-y: auto; padding: 0.75rem 0.625rem; }
.nav-section {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 600; color: var(--text-faint);
  padding: 0.875rem 0.75rem 0.375rem;
}
.nav-item {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 0.75rem; border-radius: var(--radius);
  color: var(--text-2); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: all var(--transition);
  letter-spacing: -0.01em;
}
.nav-item i { font-size: 1rem; color: var(--text-muted); width: 18px; text-align: center; }
.nav-item:hover { background: var(--surface-3); color: var(--text); }
.nav-item:hover i { color: var(--text-2); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); }
.nav-item.active i { color: var(--accent); }
.sidebar-footer { padding: 0.875rem 1rem; border-top: 1px solid var(--border); color: var(--text-faint); }
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5);
  z-index: 1035; display: none;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ===== Layout ===== */
.app-wrap { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.app-header {
  position: sticky; top: 0; z-index: 1030;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 1.25rem; gap: 0.625rem;
  min-width: 0;
}
.header-menu-btn { color: var(--text-2); }
.header-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); flex-shrink: 0; }
.header-brand-logo {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.header-brand-text { font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.015em; }
.header-spacer { flex-grow: 1; }
.app-header-actions { display: flex; align-items: center; gap: 0.375rem; margin-left: auto; }
.btn-primary-icon { background: var(--primary); color: #fff; border-color: var(--primary); width: 36px; height: 36px; }
.btn-primary-icon:hover { background: var(--primary-hover); color: #fff; }
.app-main { padding: 1.5rem; flex-grow: 1; min-width: 0; }
.flash-zone { margin-bottom: 1rem; }

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 0.75rem; color: var(--text-muted); margin: 0.125rem 0 0; padding: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-faint); content: '/'; padding: 0 0.375rem; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--text-2); }

/* ===== Avatar ===== */
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: 0.8125rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.avatar-lg {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 600; font-size: 1.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: -0.02em;
}

/* ===== Dropdown ===== */
.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.375rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  min-width: 200px;
}
.dropdown-header { padding: 0.5rem 0.625rem; }
.dropdown-item {
  padding: 0.5rem 0.625rem; border-radius: var(--radius);
  font-size: 0.875rem; color: var(--text-2); font-weight: 500;
  display: flex; align-items: center;
  letter-spacing: -0.005em;
}
.dropdown-item:hover, .dropdown-item:focus { background: var(--surface-3); color: var(--text); }
.dropdown-item.text-danger:hover { background: var(--danger-soft); color: var(--danger); }
.dropdown-divider { margin: 0.375rem 0; border-color: var(--border); }

/* ===== Stats (Dashboard) ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.875rem;
}
.stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.stat-primary .stat-icon { background: rgba(15, 23, 42, .08); color: var(--primary); }
.stat-accent .stat-icon { background: var(--accent-soft); color: var(--accent); }
.stat-success .stat-icon { background: var(--success-soft); color: var(--success); }
.stat-warning .stat-icon { background: var(--warning-soft); color: var(--warning); }
.stat-info .stat-icon { background: var(--info-soft); color: var(--info); }
.stat-label { color: var(--text-muted); font-size: 0.8125rem; font-weight: 500; }
.stat-value { font-weight: 600; font-size: 1.75rem; color: var(--text); letter-spacing: -0.025em; line-height: 1.1; }

/* ===== Event list ===== */
.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.event-list li:last-child { border-bottom: 0; }
.event-list li:hover { background: var(--surface-2); }
.event-bullet {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.event-color-chip {
  display: inline-block; width: 28px; height: 28px; border-radius: 8px;
}
.event-body { flex-grow: 1; min-width: 0; }
.event-title { font-weight: 500; font-size: 0.875rem; letter-spacing: -0.01em; }
.event-meta {
  color: var(--text-muted); font-size: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.125rem;
}
.event-meta .dot {
  width: 2px; height: 2px; border-radius: 50%;
  background: var(--text-faint); display: inline-block;
}

/* ===== Empty state ===== */
.empty-state {
  color: var(--text-muted); text-align: center; padding: 2.5rem 1.25rem;
}
.empty-state i { font-size: 2rem; color: var(--text-faint); display: block; margin-bottom: 0.625rem; }
.empty-state p { margin: 0; font-size: 0.875rem; }

/* ===== Forms ===== */
.form-control, .form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5625rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  letter-spacing: -0.005em;
  min-height: 38px;
}
.form-control::placeholder { color: var(--text-faint); }
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-focus);
}
.form-control[readonly] { background: var(--surface-2); cursor: default; }
.form-control[disabled], .form-select[disabled] { background: var(--surface-2); color: var(--text-muted); }
.form-control-sm, .form-select-sm { padding: 0.375rem 0.625rem; font-size: 0.8125rem; min-height: 34px; }
textarea.form-control { min-height: auto; padding: 0.625rem 0.75rem; }
.form-control-color { padding: 0.25rem; min-height: 38px; }

.form-label {
  font-weight: 500; font-size: 0.8125rem; color: var(--text-2);
  margin-bottom: 0.375rem; letter-spacing: -0.005em;
}
.form-text { color: var(--text-muted); font-size: 0.75rem; margin-top: 0.375rem; }

.form-floating > label { color: var(--text-muted); font-size: 0.875rem; padding-left: 0.75rem; }
.form-floating > .form-control { padding-top: 1.375rem; padding-bottom: 0.375rem; min-height: 56px; }
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label { color: var(--text-faint); font-size: 0.75rem; }

.form-check-input {
  border-color: var(--border-strong);
}
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-check-input:focus { box-shadow: var(--shadow-focus); border-color: var(--accent); }

.form-actions-sticky {
  position: sticky; bottom: 0;
  background: linear-gradient(180deg, rgba(250,251,252,0) 0%, var(--bg) 30%);
  padding-top: 1rem; padding-bottom: 0.25rem; margin-top: 0.5rem;
}

/* ===== Auth pages ===== */
.auth-body {
  background: var(--bg);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.auth-body::before {
  content: ''; position: fixed; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(99,102,241,0.10) 0%, transparent 50%),
    radial-gradient(40% 40% at 10% 100%, rgba(15,23,42,0.04) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}
.auth-shell { width: 100%; max-width: 400px; position: relative; z-index: 1; }
.auth-flash { width: 100%; max-width: 400px; margin: 0 auto 0.75rem; position: relative; z-index: 1; }
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}
.auth-brand { text-align: center; margin-bottom: 1.75rem; }
.auth-logo {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary); color: #fff;
  font-size: 1.375rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.125rem;
}
.auth-title {
  font-size: 1.375rem; font-weight: 600; margin: 0 0 0.25rem;
  color: var(--text); letter-spacing: -0.025em;
}
.auth-sub { color: var(--text-muted); font-size: 0.875rem; margin: 0; }
.password-field { position: relative; }
.btn-pwd-toggle {
  position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
  background: transparent; border: 0; color: var(--text-muted);
  width: 36px; height: 36px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all var(--transition);
}
.btn-pwd-toggle:hover { background: var(--surface-3); color: var(--text-2); }

/* ===== Tables ===== */
.table {
  color: var(--text); margin: 0;
  font-size: 0.875rem;
  letter-spacing: -0.005em;
}
.table thead th {
  font-weight: 500; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table-hover tbody tr { transition: background var(--transition); }
.table-hover tbody tr:hover { background: var(--surface-2); }
.table-sm thead th, .table-sm tbody td { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }
.table-responsive { border-radius: var(--radius-lg); }

.thumb {
  width: 40px; height: 40px; border-radius: var(--radius);
  object-fit: cover; flex-shrink: 0;
}
.thumb-placeholder {
  background: var(--surface-3); color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.salon-image { height: 160px; object-fit: cover; width: 100%; }
.salon-image-placeholder {
  height: 160px;
  background: linear-gradient(135deg, var(--surface-3), var(--surface-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--text-faint);
}
.salon-card { transition: all var(--transition); }
.salon-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== Rez card (mobile) ===== */
.rez-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.rez-card:hover { background: var(--surface-2); border-color: var(--border-strong); }
.rez-card .card-body { padding: 0.875rem 1rem; }

/* ===== Badges ===== */
.badge {
  font-weight: 500; font-size: 0.6875rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0;
}
.badge.fs-6 { font-size: 0.8125rem !important; padding: 0.375rem 0.75rem; }

.bg-primary { background: var(--primary) !important; }
.bg-primary-subtle { background: rgba(15, 23, 42, .08) !important; }
.bg-accent-subtle { background: var(--accent-soft) !important; }
.bg-success-subtle { background: var(--success-soft) !important; }
.bg-warning-subtle { background: var(--warning-soft) !important; }
.bg-danger-subtle { background: var(--danger-soft) !important; }
.bg-info-subtle { background: var(--info-soft) !important; }
.bg-secondary-subtle { background: var(--surface-3) !important; }
.bg-light { background: var(--surface-2) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: #B45309 !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }
.text-secondary { color: var(--text-muted) !important; }
.text-dark { color: var(--text) !important; }

/* ===== Alerts ===== */
.alert {
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  display: flex; align-items: flex-start; gap: 0.5rem;
  letter-spacing: -0.005em;
}
.alert .btn-close { padding: 0.5rem; }
.alert-success { background: var(--success-soft); color: #065F46; border-color: rgba(16,185,129,.2); }
.alert-warning { background: var(--warning-soft); color: #92400E; border-color: rgba(245,158,11,.2); }
.alert-danger { background: var(--danger-soft); color: #991B1B; border-color: rgba(239,68,68,.2); }
.alert-info { background: var(--info-soft); color: #075985; border-color: rgba(14,165,233,.2); }

/* ===== Sticky summary ===== */
.sticky-summary { position: sticky; top: calc(var(--header-h) + 1rem); }

/* ===== Timeline ===== */
.timeline { list-style: none; padding: 0 0 0 1rem; margin: 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 1rem 1rem; }
.timeline-dot {
  position: absolute; left: -1.375rem; top: 0.375rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}
.timeline-content { background: var(--surface-2); border-radius: var(--radius); padding: 0.625rem 0.875rem; font-size: 0.875rem; }

/* ===== FAB ===== */
.fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1020; font-size: 1.25rem;
  transition: all var(--transition);
}
.fab:hover { background: var(--primary-hover); color: #fff; transform: translateY(-2px); }
.fab:active { transform: scale(0.96); }

/* ===== Modal ===== */
.modal-content {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.modal-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; }
.modal-body { padding: 1.25rem; }
.modal-footer { padding: 0.875rem 1.25rem; border-top: 1px solid var(--border); gap: 0.5rem; }
.modal-backdrop.show { opacity: 0.4; }

/* ===== Tabs ===== */
.nav-tabs {
  border-bottom: 1px solid var(--border);
  gap: 0.125rem;
  margin-bottom: 1rem;
}
.nav-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.625rem 0.875rem;
  color: var(--text-muted); font-weight: 500; font-size: 0.875rem;
  margin-bottom: -1px;
  background: transparent;
  transition: all var(--transition);
  letter-spacing: -0.005em;
}
.nav-tabs .nav-link:hover { color: var(--text-2); }
.nav-tabs .nav-link.active {
  color: var(--text); border-bottom-color: var(--primary);
  background: transparent;
}

/* ===== Pagination ===== */
.pagination { gap: 0.25rem; }
.page-link {
  border: 1px solid var(--border); color: var(--text-2);
  border-radius: var(--radius) !important;
  padding: 0.375rem 0.625rem; font-size: 0.8125rem;
  margin: 0;
}
.page-link:hover { background: var(--surface-2); color: var(--text); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== Calendar (FullCalendar overrides) ===== */
.fc { font-family: inherit; font-size: 0.8125rem; }
.fc .fc-toolbar-title { font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; }
.fc .fc-button {
  background: var(--surface); color: var(--text-2);
  border: 1px solid var(--border);
  padding: 0.375rem 0.75rem; font-size: 0.8125rem; font-weight: 500;
  border-radius: var(--radius) !important;
  text-transform: capitalize;
  box-shadow: none;
  transition: all var(--transition);
}
.fc .fc-button:hover, .fc .fc-button:focus {
  background: var(--surface-2); color: var(--text);
  border-color: var(--border-strong); box-shadow: none;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background: var(--primary) !important; color: #fff !important;
  border-color: var(--primary) !important; box-shadow: none !important;
}
.fc .fc-toolbar.fc-header-toolbar { margin-bottom: 1rem; gap: 0.5rem; flex-wrap: wrap; }
.fc-theme-standard td, .fc-theme-standard th { border-color: var(--border); }
.fc-col-header-cell { background: var(--surface-2); }
.fc-col-header-cell-cushion { color: var(--text-muted); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.5rem; }
.fc-daygrid-day-number { color: var(--text-2); font-size: 0.8125rem; font-weight: 500; padding: 0.375rem 0.5rem; }
.fc-day-today { background: var(--accent-soft) !important; }
.fc-day-today .fc-daygrid-day-number { color: var(--accent); font-weight: 600; }
.fc-event {
  border: 0 !important; padding: 0.125rem 0.375rem !important;
  border-radius: 4px !important; cursor: pointer; font-size: 0.6875rem; font-weight: 500;
}
.fc-event:hover { opacity: 0.92; }
.fc-list-event-time { font-weight: 500; color: var(--text-2); }

/* ===== Progress ===== */
.progress { background: var(--surface-3); border-radius: 999px; height: 6px !important; overflow: hidden; }
.progress-bar { background: var(--success); border-radius: 999px; }

/* ===== List group ===== */
.list-group-item { border-color: var(--border); padding: 0.625rem 0; background: transparent; }
.list-group-flush > .list-group-item { border-left: 0; border-right: 0; }
.list-group-flush > .list-group-item:first-child { border-top: 0; }
.list-group-flush > .list-group-item:last-child { border-bottom: 0; }

/* ===== Misc ===== */
.input-group .form-control:focus { z-index: 3; }
.input-group .btn { border-color: var(--border); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-faint); display: inline-block; margin: 0 0.25rem; }

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .app-sidebar.open { transform: translateX(0); }
  .app-wrap { margin-left: 0; }
  .app-main { padding: 1rem; }
  .card-body { padding: 1rem; }
  .stat-card { padding: 1rem; }
  .stat-value { font-size: 1.5rem; }
  :root { --header-h: 56px; }
  .app-header { padding: 0 0.875rem; }
  .header-brand-text { display: none; }
  .header-brand-logo { width: 28px; height: 28px; font-size: 13px; border-radius: 6px; }
  .btn-primary-icon { width: 34px; height: 34px; }
}
@media (max-width: 575.98px) {
  body { font-size: 14px; }
  :root { --header-h: 52px; }
  .app-header { padding: 0 0.625rem; gap: 0.375rem; }
  .header-brand-logo { width: 26px; height: 26px; font-size: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.625rem; }
  .stat-card { padding: 0.875rem; gap: 0.5rem; }
  .stat-icon { width: 30px; height: 30px; font-size: 0.875rem; }
  .stat-value { font-size: 1.25rem; }
  .stat-label { font-size: 0.75rem; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .form-actions-sticky {
    position: fixed; inset: auto 0 0 0;
    background: var(--surface);
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    z-index: 1010;
    margin: 0;
  }
  body.has-sticky-actions { padding-bottom: 5rem; }
  .app-main { padding-bottom: 5rem; }
  .fc .fc-toolbar.fc-header-toolbar { font-size: 0.8125rem; }
  .modal-dialog-centered { margin: 0.75rem; }
}

@media (hover: none) {
  .btn { min-height: 40px; }
  .form-control, .form-select { min-height: 42px; }
  .nav-item { padding: 0.625rem 0.75rem; }
}

@media print {
  .app-sidebar, .app-header, .fab, .no-print,
  .form-actions-sticky, .alert .btn-close { display: none !important; }
  .app-wrap { margin: 0; }
  .app-main { padding: 0; }
  .card { box-shadow: none; border-color: #D1D5DB; }
}

/* ===== Loading state ===== */
.spinner-border-sm { width: 0.875rem; height: 0.875rem; border-width: 0.15em; }

/* ===== Page header (her sayfanın üst bloğu) ===== */
.page-header {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-header-text { min-width: 0; }
.page-title {
  font-size: 1.5rem; font-weight: 600; color: var(--text);
  letter-spacing: -0.025em; margin: 0;
  line-height: 1.2;
}
.page-subtitle {
  color: var(--text-muted); font-size: 0.875rem;
  margin: 0.25rem 0 0; letter-spacing: -0.005em;
}
.page-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }

/* Sections: 2rem gap arası */
.section { margin-bottom: 2rem; }
.section:last-child { margin-bottom: 0; }

/* ===== Filter bar (liste sayfalarında) ===== */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.625rem; align-items: end;
}
.filter-bar .filter-item { flex: 1 1 160px; min-width: 0; }
.filter-bar .filter-item label {
  display: block; font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600;
  margin-bottom: 0.25rem;
}
.filter-bar .filter-actions { display: flex; gap: 0.5rem; align-items: end; flex-shrink: 0; }

/* ===== Stepper (rezervasyon wizard) ===== */
.stepper {
  display: flex; gap: 0.5rem; padding: 0.5rem 0 1.5rem;
  list-style: none; margin: 0;
}
.stepper-item {
  flex: 1; display: flex; align-items: center; gap: 0.625rem;
  min-width: 0;
}
.stepper-circle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-3); color: var(--text-muted);
  font-size: 0.8125rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--transition);
  border: 2px solid transparent;
}
.stepper-label {
  font-size: 0.8125rem; font-weight: 500; color: var(--text-muted);
  letter-spacing: -0.005em; flex-grow: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stepper-bar {
  flex-grow: 1; height: 2px; background: var(--border);
  border-radius: 1px; min-width: 8px;
}
.stepper-item.active .stepper-circle {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.stepper-item.active .stepper-label { color: var(--text); font-weight: 600; }
.stepper-item.completed .stepper-circle {
  background: var(--success); color: #fff;
}
.stepper-item.completed .stepper-label { color: var(--text-2); }
.stepper-item.completed + .stepper-item .stepper-bar { background: var(--success); }

.wizard-section { padding: 1rem 0; }
.wizard-section + .wizard-section { border-top: 1px solid var(--border); margin-top: 1rem; }
.wizard-section-title {
  font-size: 0.875rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 0 1rem;
}
.wizard-section-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.75rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Toast container (sağ üst) ===== */
.toast-zone {
  position: fixed; top: calc(var(--header-h) + 0.75rem); right: 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  z-index: 1025;
  max-width: 360px; width: calc(100% - 2rem);
  pointer-events: none;
}
.toast-zone .alert {
  pointer-events: auto;
  box-shadow: var(--shadow-lg);
  margin: 0;
  animation: toastIn 0.25s var(--easing);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Command palette (Ctrl+K) ===== */
.cmd-palette { display: none; position: fixed; inset: 0; z-index: 1090; }
.cmd-palette.show { display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.cmd-palette-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); }
.cmd-palette-modal {
  position: relative; width: 100%; max-width: 540px;
  background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cmd-palette-input {
  width: 100%; padding: 1rem 1.25rem;
  border: 0; border-bottom: 1px solid var(--border);
  font-size: 0.9375rem; outline: none;
  letter-spacing: -0.01em; color: var(--text);
}
.cmd-palette-results {
  max-height: 50vh; overflow-y: auto; padding: 0.5rem;
}
.cmd-result {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 0.75rem; border-radius: var(--radius);
  cursor: pointer; transition: background var(--transition);
  font-size: 0.875rem; color: var(--text-2);
}
.cmd-result:hover, .cmd-result.active { background: var(--surface-2); color: var(--text); }
.cmd-result-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cmd-result-label { flex-grow: 1; min-width: 0; }
.cmd-result-shortcut {
  font-size: 0.6875rem; color: var(--text-muted);
  background: var(--surface-3); padding: 0.125rem 0.375rem; border-radius: 4px;
}
.cmd-section-title {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-faint); font-weight: 600;
  padding: 0.5rem 0.75rem 0.25rem;
}

/* ===== Search input (header) ===== */
.header-search {
  flex-grow: 1; max-width: 360px;
  height: 36px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0.625rem 0 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
  cursor: pointer; user-select: none;
  transition: all var(--transition);
}
.header-search:hover { background: var(--surface); border-color: var(--border-strong); }
.header-search:focus, .header-search:focus-within { outline: none; background: var(--surface); border-color: var(--accent); box-shadow: var(--shadow-focus); }
.header-search i { color: var(--text-muted); font-size: 0.9375rem; flex-shrink: 0; }
.header-search-placeholder { flex-grow: 1; font-size: 0.8125rem; color: var(--text-faint); letter-spacing: -0.005em; }
.header-search .kbd {
  font-size: 0.6875rem; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.125rem 0.375rem; border-radius: 4px;
  font-family: inherit; flex-shrink: 0;
}

/* ===== Mini calendar (takvim sidebar) ===== */
.mini-cal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0.875rem; }
.mini-cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.mini-cal-title { font-weight: 600; font-size: 0.875rem; letter-spacing: -0.01em; }
.mini-cal-nav { display: flex; gap: 0.125rem; }
.mini-cal-nav button { width: 26px; height: 26px; padding: 0; border-radius: 6px; background: transparent; border: 0; color: var(--text-muted); cursor: pointer; display:inline-flex; align-items:center; justify-content:center; }
.mini-cal-nav button:hover { background: var(--surface-2); color: var(--text); }
.mini-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mini-cal-dow { text-align: center; font-size: 0.625rem; color: var(--text-faint); padding: 0.25rem 0; text-transform: uppercase; font-weight: 600; }
.mini-cal-day {
  text-align: center; padding: 0.375rem 0; font-size: 0.75rem;
  border-radius: 6px; color: var(--text-2); cursor: pointer;
  font-weight: 500;
}
.mini-cal-day.muted { color: var(--text-faint); }
.mini-cal-day:hover { background: var(--surface-2); }
.mini-cal-day.today { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mini-cal-day.has-events { position: relative; }
.mini-cal-day.has-events::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

.legend-list { display: flex; flex-direction: column; gap: 0.5rem; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--text-2); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

/* ===== Action menu (üç nokta) ===== */
.action-menu-trigger { width: 32px; height: 32px; border-radius: 6px; padding: 0; }
kbd {
  font-family: inherit; font-size: 0.6875rem;
  background: var(--surface-3); padding: 0.125rem 0.375rem;
  border-radius: 4px; color: var(--text-2);
}

/* ============================================
   Room Plan Takvim
   ============================================ */
.room-plan-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.room-plan-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.room-plan-toolbar .rp-title {
  font-size: 0.875rem; font-weight: 600; color: var(--text);
  margin: 0 0.5rem 0 0; letter-spacing: -0.01em;
}
.room-plan-toolbar .rp-spacer { flex-grow: 1; }
.room-plan-summary {
  display: flex; gap: 1.5rem; padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2); font-size: 0.8125rem;
}
.room-plan-summary .rp-stat strong { color: var(--text); font-weight: 600; }
.room-plan-summary .rp-stat span { color: var(--text-muted); }

.room-plan-scroll {
  overflow: auto;
  max-height: calc(100vh - var(--header-h) - 220px);
  min-height: 480px;
}
.room-plan-grid {
  display: grid; position: relative;
  grid-auto-rows: 60px;
  grid-template-columns: 200px repeat(var(--days, 30), 56px);
}
.rp-cell, .rp-header-cell, .rp-row-header {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  background: var(--surface);
}
.rp-cell {
  display: flex; flex-direction: column;
  padding: 2px; gap: 2px;
  overflow: hidden;
}
.rp-cell:hover:not(.is-past) { background: var(--accent-soft); cursor: pointer; }
.rp-header-cell {
  position: sticky; top: 0; z-index: 4;
  background: var(--surface-2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 0.6875rem; color: var(--text-muted);
  padding: 0.25rem; line-height: 1.2;
  cursor: pointer;
  user-select: none;
}
.rp-header-cell .rp-day-num {
  font-size: 0.9375rem; font-weight: 600; color: var(--text);
  letter-spacing: -0.015em;
}
.rp-header-cell.is-today {
  background: var(--accent-soft);
}
.rp-header-cell.is-today .rp-day-num { color: var(--accent); }
.rp-header-cell.is-weekend { background: var(--surface-3); }
.rp-header-cell.is-past { opacity: 0.55; }
.rp-header-cell.month-divider { box-shadow: inset 2px 0 0 var(--accent); }

.rp-corner {
  position: sticky; top: 0; left: 0; z-index: 6;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; color: var(--text-muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.25rem 0.75rem;
}

.rp-row-header {
  position: sticky; left: 0; z-index: 3;
  background: var(--surface);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0.625rem 0.875rem;
  border-right: 1px solid var(--border-strong);
  cursor: pointer;
}
.rp-row-header:hover { background: var(--surface-2); }
.rp-row-header .rp-salon-name {
  font-size: 0.875rem; font-weight: 600; color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rp-row-header .rp-salon-meta { font-size: 0.6875rem; color: var(--text-muted); margin-top: 0.125rem; }

.rp-cell.is-today { background: rgba(99, 102, 241, 0.04); }
.rp-cell.is-weekend { background: var(--surface-3); }
.rp-cell.is-past { background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 4px, var(--surface-2) 4px, var(--surface-2) 8px); }
.rp-cell.is-hover { background: var(--accent-soft); cursor: pointer; }
.rp-cell.drag-over { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.rp-cell.drag-invalid { background: var(--danger-soft); box-shadow: inset 0 0 0 2px var(--danger); }
.rp-today-line {
  position: absolute; top: 0; bottom: 0;
  border-left: 2px solid var(--accent);
  z-index: 2; pointer-events: none;
}

/* Etkinlik bloğu */
.rp-event {
  position: relative;
  background: var(--accent); color: #fff;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.6875rem; line-height: 1.15;
  cursor: grab; user-select: none;
  display: flex; align-items: center; gap: 4px;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  touch-action: none;
}
.rp-event:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); z-index: 5; }
.rp-event:active { cursor: grabbing; }
.rp-event.is-dragging { opacity: 0.4; }
.rp-event-time { font-weight: 600; font-size: 0.625rem; letter-spacing: -0.005em; flex-shrink: 0; }
.rp-event-name {
  font-size: 0.625rem; opacity: 0.92;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1 1 0;
}
.rp-event.durum-iptal { background: repeating-linear-gradient(45deg, #94A3B8, #94A3B8 5px, #CBD5E1 5px, #CBD5E1 10px); color: #fff; text-decoration: line-through; }
.rp-event.durum-tamamlandi { opacity: 0.65; filter: grayscale(0.4); }
.rp-event-more {
  font-size: 0.625rem; color: var(--text-muted);
  background: var(--surface-2); border-radius: 4px;
  padding: 1px 4px; cursor: pointer; text-align: center;
  border: 1px dashed var(--border);
}
.rp-event-more:hover { background: var(--surface-3); color: var(--text-2); }

/* Popup */
.rp-popup {
  position: absolute; z-index: 1050;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 320px; max-width: calc(100vw - 1rem);
  padding: 1rem;
  animation: toastIn 0.15s var(--easing);
}
.rp-popup-close { position: absolute; top: 0.5rem; right: 0.5rem; }
.rp-popup-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; padding-right: 1.5rem; }
.rp-popup-title { font-size: 0.875rem; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.rp-popup-sub { color: var(--text-muted); font-size: 0.75rem; margin: 0; }
.rp-popup-body { font-size: 0.8125rem; }
.rp-popup-row { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.25rem 0; }
.rp-popup-row dt { color: var(--text-muted); margin: 0; }
.rp-popup-row dd { margin: 0; color: var(--text); font-weight: 500; text-align: right; }
.rp-popup-actions { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 0.375rem; }
.rp-popup-actions .btn { flex: 1; }

.rp-popup-form .form-label { font-size: 0.75rem; margin-bottom: 0.25rem; }
.rp-popup-form .form-control, .rp-popup-form .form-select { font-size: 0.8125rem; padding: 0.4375rem 0.625rem; min-height: 34px; }

.rp-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.7);
  z-index: 10;
  font-size: 0.875rem; color: var(--text-muted);
}

@media (max-width: 991.98px) {
  .room-plan-grid { grid-template-columns: 130px repeat(var(--days, 30), 44px); grid-auto-rows: 52px; }
  .rp-row-header { padding: 0.5rem; }
  .rp-row-header .rp-salon-name { font-size: 0.75rem; }
  .rp-row-header .rp-salon-meta { font-size: 0.625rem; }
  .rp-header-cell { font-size: 0.625rem; }
  .rp-header-cell .rp-day-num { font-size: 0.8125rem; }
  .rp-event { left: 2px; right: 2px; top: 5px; bottom: 5px; padding: 0.125rem 0.25rem; }
  .rp-event-name { font-size: 0.625rem; }
  .rp-event-time { font-size: 0.625rem; }
  .room-plan-summary { gap: 0.875rem; padding: 0.5rem 0.75rem; }
  .room-plan-summary .rp-stat { font-size: 0.75rem; }
}
@media (max-width: 575.98px) {
  .room-plan-grid { grid-template-columns: 100px repeat(var(--days, 30), 38px); grid-auto-rows: 46px; }
  .room-plan-scroll { max-height: calc(100vh - var(--header-h) - 180px); }
  .rp-event-name { display: none; }
}

/* ===== Skeleton (loading) ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius);
}
.skeleton-line { height: 12px; margin: 0.375rem 0; }
.skeleton-circle { width: 32px; height: 32px; border-radius: 50%; }

/* ===== Better page header on mobile ===== */
@media (max-width: 575.98px) {
  .page-header { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .filter-bar { padding: 0.75rem; gap: 0.5rem; }
  .filter-bar .filter-item { flex: 1 1 calc(50% - 0.25rem); }
  .stepper { gap: 0.25rem; overflow-x: auto; padding-bottom: 0.75rem; }
  .stepper-label { display: none; }
  .stepper-item.active .stepper-label { display: inline; max-width: 80px; }
  .toast-zone { top: calc(var(--header-h) + 0.5rem); right: 0.5rem; left: 0.5rem; max-width: none; width: auto; }
  .cmd-palette.show { padding-top: 4vh; padding-left: 0.5rem; padding-right: 0.5rem; }
}

