/* ============================================
   Visa Automation Dashboard - Stylesheet
   ============================================ */

:root {
  --bg-primary: #0f1117;
  --bg-secondary: #161b27;
  --bg-card: #1e2535;
  --bg-hover: #252d3d;
  --border: #2a3349;
  --border-light: #334060;

  --text-primary: #e8eaf0;
  --text-secondary: #8b95b0;
  --text-muted: #556070;

  --accent-blue: #4f7cff;
  --accent-blue-hover: #6690ff;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-orange: #f97316;
  --accent-yellow: #eab308;
  --accent-purple: #a855f7;
  --accent-teal: #14b8a6;

  --sidebar-width: 240px;
  --topbar-height: 64px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.6);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, select, textarea { font-family: var(--font); }
::placeholder { color: var(--text-muted); }

/* ---- Utilities ---- */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }

/* ============================================
   LOGIN SCREEN
   ============================================ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(79,124,255,0.15) 0%, transparent 70%),
              var(--bg-primary);
}

.login-card {
  width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.logo-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(79,124,255,0.3);
}

.login-logo h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.login-logo p { color: var(--text-secondary); font-size: 13px; }

.login-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text-secondary); }

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

.input-wrapper > i:first-child {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 11px 40px 11px 38px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79,124,255,0.15);
}

.input-toggle {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  padding: 4px;
  transition: color var(--transition);
}
.input-toggle:hover { color: var(--text-primary); }

.login-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* ============================================
   APP LAYOUT
   ============================================ */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}

.sidebar-logo i {
  font-size: 20px;
  color: var(--accent-blue);
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(79,124,255,0.12);
  color: var(--accent-blue);
}

.nav-badge {
  margin-left: auto;
  background: var(--accent-blue);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.user-avatar {
  width: 34px; height: 34px;
  background: rgba(79,124,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.btn-logout {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn-logout:hover {
  background: rgba(239,68,68,0.1);
  color: var(--accent-red);
}

/* ---- Main Content ---- */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- Topbar ---- */
.topbar {
  height: var(--topbar-height);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left {
  display: flex;
  flex-direction: column;
}

.page-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.refresh-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.refresh-info i { font-size: 11px; }
.refresh-info i.spinning { animation: spin 1s linear infinite; }

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

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---- Tab Content ---- */
.tab-content {
  display: none;
  padding: 24px 28px;
  flex-direction: column;
  gap: 24px;
}

.tab-content.active {
  display: flex;
}

/* ============================================
   STATS CARDS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

@media (max-width: 1400px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-active .stat-icon { background: rgba(79,124,255,0.15); color: var(--accent-blue); }
.stat-booked .stat-icon { background: rgba(34,197,94,0.15); color: var(--accent-green); }
.stat-failed .stat-icon { background: rgba(239,68,68,0.15); color: var(--accent-red); }
.stat-revenue .stat-icon { background: rgba(234,179,8,0.15); color: var(--accent-yellow); }
.stat-pending .stat-icon { background: rgba(168,85,247,0.15); color: var(--accent-purple); }
.stat-total .stat-icon { background: rgba(20,184,166,0.15); color: var(--accent-teal); }

.stat-body { flex: 1; }
.stat-value { font-size: 26px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ============================================
   SECTION CARDS
   ============================================ */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.section-header h3 {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.section-header h3 i { color: var(--text-secondary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================
   TABLES
   ============================================ */
.table-wrapper { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
  color: var(--text-primary);
}

.data-table tbody tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

.empty-row td {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 16px;
  font-style: italic;
}

.cell-id { font-weight: 600; color: var(--text-secondary); font-size: 12px; }
.cell-email { font-size: 12px; color: var(--text-secondary); }
.cell-name { font-weight: 600; }

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-pending { background: rgba(107,114,128,0.15); color: #9ca3af; }
.badge-running { background: rgba(79,124,255,0.15); color: var(--accent-blue); animation: blink 2s infinite; }
.badge-booked { background: rgba(34,197,94,0.15); color: var(--accent-green); }
.badge-failed { background: rgba(239,68,68,0.15); color: var(--accent-red); }
.badge-expired { background: rgba(249,115,22,0.15); color: var(--accent-orange); }
.badge-stopped { background: rgba(168,85,247,0.15); color: var(--accent-purple); }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-blue);
  color: white;
}
.btn-primary:hover { background: var(--accent-blue-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,124,255,0.3); }

.btn-danger { background: var(--accent-red); color: white; }
.btn-danger:hover { background: #dc2626; }

.btn-success { background: var(--accent-green); color: white; }
.btn-success:hover { background: #16a34a; }

.btn-warning { background: var(--accent-orange); color: white; }
.btn-warning:hover { background: #ea580c; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}
.btn-outline:hover { background: rgba(79,124,255,0.1); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-full { width: 100%; }

.btn-icon {
  width: 30px; height: 30px;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.btn-loader { display: inline-flex; align-items: center; }

.action-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   FORMS
   ============================================ */
.form-section {
  margin-bottom: 24px;
}

.form-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-full { grid-column: 1 / -1; }

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

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.required { color: var(--accent-red); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 9px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b95b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79,124,255,0.12);
}

.form-hint { font-size: 11px; color: var(--text-muted); }

.input-wrapper input {
  padding-right: 40px;
}

.checkbox-group { flex-direction: row; align-items: center; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
  user-select: none;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkbox-custom {
  width: 18px; height: 18px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  width: 4px; height: 8px;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.cities-row { grid-template-columns: repeat(5, 1fr); }

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

.filter-select {
  padding: 7px 28px 7px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238b95b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  width: 100%;
  overflow: hidden;
}

.modal-sm { max-width: 420px; }
.modal-md { max-width: 600px; }
.modal-large { max-width: 800px; }
.modal-xl { max-width: 1000px; }
.modal-screenshot { max-width: 900px; }

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header h3 i { color: var(--accent-blue); }

.modal-close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition);
}

.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

/* ============================================
   LOGS VIEWER
   ============================================ */
.logs-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.logs-container {
  background: #0a0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  height: 500px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.log-entry {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  align-items: flex-start;
}

.log-entry:last-child { border-bottom: none; }

.log-time {
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 160px;
  font-size: 11px;
}

.log-type {
  min-width: 90px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.log-severity {
  min-width: 60px;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
}

.sev-info { color: #60a5fa; background: rgba(96,165,250,0.1); }
.sev-warning { color: var(--accent-orange); background: rgba(249,115,22,0.1); }
.sev-error { color: var(--accent-red); background: rgba(239,68,68,0.1); }
.sev-success { color: var(--accent-green); background: rgba(34,197,94,0.1); }

.log-message { flex: 1; color: var(--text-primary); word-break: break-word; }

.log-screenshot-link {
  color: var(--accent-blue);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.logs-loading { text-align: center; color: var(--text-muted); padding: 40px; }
.logs-count { font-size: 12px; color: var(--text-muted); flex: 1; }

/* ============================================
   SCREENSHOT
   ============================================ */
.screenshot-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.page-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.page-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.page-btn.active { background: var(--accent-blue); color: white; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  min-width: 280px;
  max-width: 380px;
  animation: slideIn 0.3s ease;
  pointer-events: all;
}

.toast-icon { font-size: 16px; flex-shrink: 0; }
.toast-body { flex: 1; }
.toast-title { font-size: 13px; font-weight: 600; }
.toast-msg { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.toast-success { border-left: 3px solid var(--accent-green); }
.toast-success .toast-icon { color: var(--accent-green); }
.toast-error { border-left: 3px solid var(--accent-red); }
.toast-error .toast-icon { color: var(--accent-red); }
.toast-info { border-left: 3px solid var(--accent-blue); }
.toast-info .toast-icon { color: var(--accent-blue); }
.toast-warning { border-left: 3px solid var(--accent-orange); }
.toast-warning .toast-icon { color: var(--accent-orange); }

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

.toast.removing { animation: slideOut 0.3s ease forwards; }

/* ============================================
   CITIES CHIP DISPLAY
   ============================================ */
.cities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.city-chip {
  padding: 2px 8px;
  background: rgba(79,124,255,0.1);
  border: 1px solid rgba(79,124,255,0.3);
  border-radius: 99px;
  font-size: 11px;
  color: var(--accent-blue);
  text-transform: capitalize;
}

/* ============================================
   MISC
   ============================================ */
.date-range {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ============================================
   Bulk Upload
   ============================================ */
.bulk-instructions { margin-bottom: 1.5rem; }
.bulk-tip {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--primary); border-radius: 8px;
  padding: 1rem; margin-bottom: 1rem;
}
.bulk-tip i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.bulk-tip ol { margin: 0.25rem 0 0 1.25rem; padding: 0; }
.bulk-tip ol li { margin-bottom: 0.2rem; font-size: 0.875rem; color: var(--text-secondary); }
.bulk-required-note {
  font-size: 0.8rem; color: var(--text-muted);
  background: var(--bg-secondary); padding: 0.5rem 0.75rem; border-radius: 6px;
}
.bulk-actions-row {
  display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.file-upload-label { cursor: pointer; }
.csv-file-name { font-size: 0.85rem; color: var(--text-muted); font-style: italic; }
.bulk-preview-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem;
}
.bulk-parse-status { font-size: 0.9rem; }
.bulk-parse-status.success { color: var(--success); }
.bulk-parse-status.error   { color: var(--danger); }
.bulk-preview-table { max-height: 340px; overflow-y: auto; }
.bulk-row-valid   td:first-child { color: var(--success); }
.bulk-row-invalid td:first-child { color: var(--danger); }
.bulk-row-invalid { background: rgba(239,68,68,0.05); }
.bulk-results-summary {
  display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.bulk-stat {
  padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.875rem; font-weight: 600;
}
.bulk-stat.created { background: rgba(16,185,129,0.12); color: var(--success); }
.bulk-stat.failed  { background: rgba(239,68,68,0.12); color: var(--danger); }
.bulk-stat.total   { background: var(--bg-secondary); color: var(--text-primary); }
.result-created { color: var(--success); font-weight: 600; }
.result-failed  { color: var(--danger); }
