/* Design system - Itinerary App */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-hover: #f4f4f5;
  --border: #e4e4e7;
  --border-light: #f0f0f2;
  --text: #18181b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --accent: #7c3aed;
  --accent-light: #ede9fe;
  --accent-dark: #6d28d9;
  --accent-subtle: #f5f3ff;
  --green: #16a34a;
  --green-light: #dcfce7;
  --red: #dc2626;
  --red-light: #fef2f2;
  --blue: #2563eb;
  --blue-light: #eff6ff;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

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

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.header .container,
.header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.header-nav a:hover {
  color: var(--text);
}

.header-user {
  font-size: 13px;
  color: var(--text-muted);
}

/* Login */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
}

.login-card h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  text-align: center;
  letter-spacing: -0.03em;
  color: var(--text);
}

.login-card .subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

.login-error {
  display: none;
  background: var(--red-light);
  color: var(--red);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.login-error.visible {
  display: block;
}

/* Forms */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Show cards */
.show-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.show-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.show-card .show-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.show-card .show-venue {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.show-card .show-city {
  font-size: 13px;
  color: var(--text-secondary);
}

.show-card .show-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Section headings */
.section-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 16px;
}

/* Key-value pairs */
.kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
}

.kv + .kv {
  border-top: 1px solid var(--border-light);
}

.kv .kv-label {
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  letter-spacing: 0.01em;
}

.kv .kv-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

/* Flight cards */
.flight-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 16px 0 8px;
}

.flight-section-label:first-child {
  margin-top: 0;
}

.flight-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  transition: border-color 0.15s;
}

.flight-card:hover {
  border-color: var(--border);
}

.flight-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.flight-status-dot.confirmed { background: var(--green); }
.flight-status-dot.unconfirmed { background: var(--accent); }
.flight-status-dot.landed { background: var(--text-muted); }
.flight-status-dot.in-flight { background: var(--green); animation: pulse-dot 1.5s ease-in-out infinite; }
.flight-status-dot.boarding { background: var(--accent); animation: pulse-dot 1s ease-in-out infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Landed flights - muted */
.flight-card.landed {
  opacity: 0.5;
  background: var(--bg);
}
.flight-card.landed:hover { opacity: 0.7; }
.flight-card.landed .flight-card-line { background: var(--border-light); }
.flight-card.landed .flight-card-line::after { border-left-color: var(--border-light); }

/* In flight - highlighted with animated border */
.flight-card.in-flight {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green-light);
}

/* Boarding soon - highlighted with accent */
.flight-card.boarding {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-light);
}

/* State badges */
.badge-in-flight {
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.03em;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.badge-boarding {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.03em;
}

.badge-landed {
  background: var(--surface);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}

.badge-countdown {
  background: var(--accent-light);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

.flight-card-body {
  flex: 1;
  min-width: 0;
}

.flight-card-route {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.flight-card-airport {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.flight-card-code {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.flight-card-city {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-card-time {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.flight-card-arrow {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
}

.flight-card-line {
  width: 100%;
  height: 2px;
  background: var(--border);
  position: relative;
}

.flight-card-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  width: 0;
  height: 0;
  border-left: 5px solid var(--border);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.flight-card-flight-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.flight-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.flight-card-date {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.flight-card-ref {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 1px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.flight-card-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.flight-card-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.flight-card-track {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

.flight-card-track:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .flight-card-route {
    gap: 8px;
  }
  .flight-card-code {
    font-size: 15px;
  }
  .flight-card-time {
    font-size: 12px;
  }
  .flight-card-airport {
    min-width: 45px;
  }
  .flight-card-footer {
    gap: 8px;
  }
}

/* Transfer blocks */
.transfer-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
}

.transfer-block .transfer-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.transfer-block .transfer-detail {
  font-size: 14px;
  color: var(--text);
}

/* Star ratings */
.stars {
  display: inline-flex;
  gap: 4px;
}

.star {
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: var(--border);
  transition: color 0.15s;
}

.star.active {
  color: var(--accent);
}

.star:hover {
  color: var(--accent-dark);
}

/* Two column grid */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Page title */
.page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 20px;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* Loading state */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.loading::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 14px;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Role badges */
.badge {
  display: inline-block;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
}

.role-dj {
  background: var(--accent-light);
  color: var(--accent);
}

.role-videographer {
  background: var(--blue-light);
  color: var(--blue);
}

.role-lighting {
  background: #fef3c7;
  color: #b45309;
}

/* Feedback badges */
.feedback-pending {
  background: var(--red-light);
  color: var(--red);
}

.feedback-done {
  background: var(--green-light);
  color: var(--green);
}

/* Calendar grid */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 16px; }
.calendar-header { font-size: 11px; font-weight: 600; text-align: center; color: var(--text-muted); padding: 4px; text-transform: uppercase; }
.calendar-day { aspect-ratio: 1; padding: 4px; font-size: 12px; border-radius: var(--radius); position: relative; text-align: center; }
.calendar-day.today { font-weight: 700; box-shadow: inset 0 0 0 2px var(--accent); }
.calendar-day.has-show { background: var(--green-light); }
.calendar-day.has-travel { background: var(--blue-light); }
.calendar-day.has-off { background: var(--surface); }
.calendar-day .dot { width: 6px; height: 6px; border-radius: 50%; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); }
.calendar-day .dot.show { background: var(--green); }
.calendar-day .dot.travel { background: var(--blue); }

/* Advance status dots */
.advance-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.advance-dot.not-started { background: var(--border); }
.advance-dot.in-progress { background: var(--accent); }
.advance-dot.done { background: var(--green); }

/* Tour header in grouped lists */
.tour-group-header { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 10px; }
.tour-group-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.tour-group-meta { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* Calendar nav */
.calendar-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.calendar-nav-btn { border: none; background: none; cursor: pointer; font-size: 18px; color: var(--text-secondary); padding: 4px 8px; }
.calendar-nav-label { font-size: 14px; font-weight: 600; }

/* Schedule timeline */
.schedule-item { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.schedule-time { min-width: 100px; font-size: 12px; font-family: var(--font-mono); font-weight: 500; color: var(--text-secondary); white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 1px; }
.schedule-title { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.schedule-details { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.schedule-item.unconfirmed { border-left: 3px solid var(--accent); padding-left: 11px; }
.schedule-item.confirmed { border-left: 3px solid var(--green); padding-left: 11px; }

/* Tasks */
.task-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.task-checkbox { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--border); cursor: pointer; flex-shrink: 0; margin-top: 2px; transition: background 0.15s, border-color 0.15s; }
.task-checkbox:hover { border-color: var(--green); }
.task-checkbox.checked { background: var(--green); border-color: var(--green); }
.task-title { font-size: 13px; font-weight: 500; }
.task-title.complete { text-decoration: line-through; color: var(--text-muted); font-weight: 400; }
.task-due { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.task-overdue { color: var(--red); font-weight: 600; }
.badge-overdue { background: var(--red-light); color: var(--red); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; margin-left: 4px; letter-spacing: 0.02em; }

/* Room list */
.room-table { width: 100%; font-size: 13px; border-collapse: collapse; margin-top: 12px; }
.room-table th { text-align: left; font-size: 10px; font-weight: 700; color: var(--text-muted); padding: 5px 8px 6px; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid var(--border); }
.room-table td { padding: 7px 8px; border-bottom: 1px solid var(--border-light); font-weight: 400; }

/* Status badges */
.badge-confirmed { background: var(--green-light); color: var(--green); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; margin-left: 6px; letter-spacing: 0.02em; }
.badge-unconfirmed { background: var(--accent-light); color: var(--accent); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; margin-left: 6px; letter-spacing: 0.02em; }
.badge-day-after { background: var(--blue-light); color: var(--blue); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; margin-left: 6px; letter-spacing: 0.02em; }

/* Copy button */
.btn-copy { font-size: 12px; padding: 4px 10px; }

/* Running order */
.running-order { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.running-order-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.02em; text-transform: uppercase; }
.running-order-item { display: flex; gap: 12px; padding: 5px 0; font-size: 13px; align-items: baseline; }
.running-order-item.highlight { background: var(--accent-light); padding: 5px 8px; border-radius: 6px; margin: 2px -8px; font-weight: 600; }
.running-order-time { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text-secondary); min-width: 110px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.running-order-artist { color: var(--text); }

/* Action buttons row */
.action-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* Profile tabs */
.profile-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.profile-tab { padding: 10px 18px; font-size: 13px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; color: var(--text-muted); background: none; border-top: none; border-left: none; border-right: none; transition: color 0.15s, border-color 0.15s; }
.profile-tab:hover { color: var(--text-secondary); }
.profile-tab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.profile-tab-content { display: none; }
.profile-tab-content.active { display: block; }
.ff-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.ff-row input { flex: 1; }
.ff-remove { color: var(--red); cursor: pointer; border: none; background: none; font-size: 18px; padding: 0 4px; }

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.filter-pills {
  display: flex;
  gap: 4px;
}

.filter-pill {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--accent);
  color: var(--text-secondary);
}

.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filter-select {
  padding: 5px 10px;
  font-size: 12px;
  font-family: var(--font);
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.filter-search {
  padding: 6px 12px;
  font-size: 13px;
  font-family: var(--font);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  width: 220px;
  outline: none;
  transition: border-color 0.15s;
}

.filter-search:focus {
  border-color: var(--accent);
}

.filter-search::placeholder {
  color: var(--text-muted);
}

/* Unassigned warning */
.unassigned-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: var(--radius);
  font-size: 12px;
  color: #92400e;
  margin-bottom: 6px;
}

.unassigned-warning-icon {
  flex-shrink: 0;
  font-size: 14px;
}

@media (max-width: 768px) {
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-pills { overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
  .filter-search { width: 100%; }
}

/* View toggle */
.view-toggle {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.view-toggle-btn {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.view-toggle-btn.active {
  background: var(--accent);
  color: #fff;
}
.view-toggle-btn:hover:not(.active) {
  background: var(--surface-hover);
}

/* Admin calendar */
.admin-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.admin-cal-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
  padding: 10px 4px;
  background: var(--surface);
}

.admin-cal-day {
  min-height: 100px;
  padding: 6px;
  background: var(--bg);
  vertical-align: top;
}

.admin-cal-day.empty {
  background: var(--surface);
  min-height: 60px;
}

.admin-cal-day.past {
  background: var(--surface);
}

.admin-cal-day.today {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.admin-cal-day.has-shows {
  background: var(--bg);
}

.admin-cal-day-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.admin-cal-day.today .admin-cal-day-num {
  color: var(--accent);
  font-weight: 700;
}

.admin-cal-day.past .admin-cal-day-num {
  color: var(--text-muted);
}

.admin-cal-show {
  display: flex;
  align-items: center;
  padding: 2px 4px;
  margin-bottom: 2px;
  border-radius: 4px;
  background: var(--accent-subtle);
  text-decoration: none;
  transition: background 0.15s;
  overflow: hidden;
}

.admin-cal-show:hover {
  background: var(--accent-light);
}

.admin-cal-show-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-cal-more {
  font-size: 10px;
  color: var(--text-muted);
  padding: 0 4px;
}

.admin-cal-day.dimmed {
  opacity: 0.4;
}

.admin-cal-show.unassigned {
  background: #fef3c7;
  border-left: 2px solid #f59e0b;
}

@media (max-width: 768px) {
  .admin-cal-day {
    min-height: 60px;
    padding: 4px;
  }
  .admin-cal-show-name {
    font-size: 10px;
  }
  .admin-cal-day-num {
    font-size: 11px;
  }
}

/* Mobile responsive */
@media (max-width: 640px) {
  .container,
  .container-wide {
    padding: 0 16px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 32px 24px;
  }

  .show-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .show-card .show-meta {
    margin-left: 0;
  }

  .kv {
    flex-direction: column;
    gap: 2px;
  }

  .kv .kv-value {
    text-align: left;
  }

  .travel-table {
    font-size: 13px;
  }

  .travel-table th,
  .travel-table td {
    padding: 8px;
  }

  .page-title {
    font-size: 20px;
  }

  .kv-value a { padding: 4px 0; display: inline-block; min-height: 44px; line-height: 36px; }
  .btn { min-height: 44px; }
  .schedule-item { padding: 12px 0; }
  .task-checkbox { width: 24px; height: 24px; }
  .profile-tabs { overflow-x: auto; white-space: nowrap; }
  .profile-tab { flex-shrink: 0; }
}
