/* ============================================
   Hastalavista — Mapa de Locais
   Premium Dark Theme with Glassmorphism
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --bg-deep: #07070e;
  --bg-base: #0f0f1a;
  --bg-surface: #161625;
  --bg-elevated: #1c1c30;
  --bg-card: rgba(28, 28, 48, 0.6);
  --bg-glass: rgba(28, 28, 48, 0.45);

  --accent: #6c63ff;
  --accent-hover: #7b73ff;
  --accent-glow: rgba(108, 99, 255, 0.25);
  --accent-soft: rgba(108, 99, 255, 0.1);

  --success: #00d68f;
  --success-soft: rgba(0, 214, 143, 0.1);
  --danger: #ff5c6c;
  --danger-hover: #ff7a87;
  --danger-soft: rgba(255, 92, 108, 0.1);
  --warning: #ffb347;

  --text-primary: #f0f0f8;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a82;
  --text-inverse: #07070e;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(108, 99, 255, 0.3);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Helper Utilities --- */
[hidden] {
  display: none !important;
}

/* --- Screen Reader Only --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   LOGIN
   ============================================ */
.login-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 214, 143, 0.05) 0%, transparent 50%),
    var(--bg-deep);
  padding: var(--space-md);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease-out;
}

.login-logo {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-glow);
}

.logo-icon svg {
  width: 32px;
  height: 32px;
}

.login-logo h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: var(--space-xs);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0a0b8' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #9b8afb);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.btn-accent:hover {
  background: rgba(108, 99, 255, 0.18);
}

.btn-accent.active {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 12px var(--accent-glow);
}

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

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

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

.btn-sm {
  padding: 8px 14px;
  font-size: 0.8125rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* Button loader */
.btn-loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ============================================
   ERROR MESSAGES
   ============================================ */
.error-message {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(255, 92, 108, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.8125rem;
  margin-bottom: var(--space-md);
  animation: shake 0.4s ease-out;
}

/* ============================================
   APP HEADER
   ============================================ */
.app-section {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-base);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
}

.header-logo svg {
  width: 18px;
  height: 18px;
}

.header-left h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

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

/* ============================================
   TOOLBAR
   ============================================ */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.select-filter {
  padding: 8px 36px 8px 12px;
  font-size: 0.8125rem;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23a0a0b8' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color var(--transition-fast);
}

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

.select-filter option {
  background: var(--bg-elevated);
}

.search-input {
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition-fast);
  width: 180px;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  width: 230px;
}

.locations-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}

/* ============================================
   GEO MESSAGE
   ============================================ */
.geo-message {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  animation: slideDown 0.3s ease-out;
}

.geo-message.geo-success {
  background: var(--success-soft);
  color: var(--success);
  border-bottom: 1px solid rgba(0, 214, 143, 0.15);
}

.geo-message.geo-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-bottom: 1px solid rgba(255, 92, 108, 0.15);
}

.geo-message.geo-info {
  background: var(--accent-soft);
  color: var(--accent);
  border-bottom: 1px solid rgba(108, 99, 255, 0.15);
}

/* ============================================
   MAIN CONTENT (MAP + LIST)
   ============================================ */
.main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.map-container {
  flex: 1;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

/* Dark map tiles adjustment */
.leaflet-tile-pane {
  filter: brightness(1);
}

/* Custom popup styling */
.leaflet-popup-content-wrapper {
  background: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-md) !important;
}

.leaflet-popup-tip {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border) !important;
  border-top: none !important;
  border-left: none !important;
}

.leaflet-popup-close-button {
  color: var(--text-muted) !important;
}

.leaflet-popup-close-button:hover {
  color: var(--text-primary) !important;
}

.popup-content {
  padding: 4px 0;
}

.popup-content .popup-name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.popup-content .popup-device {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.popup-device .device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.device-dot.selbetti { background: #ff7a00; }
.device-dot.pc-armazzem { background: #fdc500; }
.device-dot.mobiplus { background: #3b82f6; }

/* ============================================
   LOCATIONS LIST
   ============================================ */
.list-container {
  width: 380px;
  min-width: 320px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.locations-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
}

.locations-list::-webkit-scrollbar {
  width: 6px;
}

.locations-list::-webkit-scrollbar-track {
  background: transparent;
}

.locations-list::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 3px;
}

/* List Tabs */
.list-tabs {
  display: flex;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 6px;
  gap: 4px;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: white;
  background: var(--accent);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.tab-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.tab-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Location Card (Narrower design) */
.location-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px; /* Reduzida a altura com padding estreito */
  margin-bottom: 6px;
  cursor: pointer;
  transition: all var(--transition-base);
  animation: fadeInUp 0.3s ease-out;
  animation-fill-mode: both;
}

.location-card:hover {
  border-color: var(--border-accent);
  background: rgba(28, 28, 48, 0.8);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--accent-glow);
}

/* Checkbox customizado do card */
.card-checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--text-muted);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.03);
}

.card-checkbox:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.card-checkbox:checked {
  background: var(--success);
  border-color: var(--success);
}

.card-checkbox:checked::after {
  content: '';
  width: 4px;
  height: 7px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 1.5px;
}

.location-card .card-content {
  flex: 1;
  min-width: 0;
}

.location-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px; /* Espaçamento menor entre título e subtítulo */
}

.location-card .card-name {
  font-weight: 600;
  font-size: 0.875rem; /* Fonte ligeiramente menor */
  line-height: 1.3;
  flex: 1;
  margin-right: var(--space-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Riscar e esmaecer se concluído */
.location-card.completed .card-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.location-card .card-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.location-card:hover .card-actions {
  opacity: 1;
}

.card-actions .btn-icon {
  width: 24px;
  height: 24px;
}

.card-actions .btn-icon svg {
  width: 13px;
  height: 13px;
}

.card-actions .btn-edit:hover {
  color: var(--accent);
}

.card-actions .btn-delete:hover {
  color: var(--danger);
}

.location-card .card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.75rem; /* Fonte menor para ficar compacto */
  color: var(--text-secondary);
}

.card-device {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-distance {
  color: var(--text-muted);
  font-size: 0.71875rem;
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--text-muted);
  text-align: center;
}

.empty-state svg {
  margin-bottom: var(--space-md);
  opacity: 0.3;
}

.empty-state p {
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.empty-state span {
  font-size: 0.8125rem;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
  padding: var(--space-md);
}

.modal {
  width: 100%;
  max-width: 460px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.25s ease-out;
}

.modal-sm {
  max-width: 380px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.modal-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.delete-message {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.15);
  }
}

/* User marker pulse */
.user-marker-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Staggered card animation */
.location-card:nth-child(1) { animation-delay: 0ms; }
.location-card:nth-child(2) { animation-delay: 40ms; }
.location-card:nth-child(3) { animation-delay: 80ms; }
.location-card:nth-child(4) { animation-delay: 120ms; }
.location-card:nth-child(5) { animation-delay: 160ms; }
.location-card:nth-child(6) { animation-delay: 200ms; }
.location-card:nth-child(7) { animation-delay: 240ms; }
.location-card:nth-child(8) { animation-delay: 280ms; }
.location-card:nth-child(9) { animation-delay: 320ms; }
.location-card:nth-child(10) { animation-delay: 360ms; }

/* ============================================
   LEAFLET OVERRIDES — Custom Markers
   ============================================ */
.custom-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}

.custom-marker.selbetti { background: #ff7a00; }
.custom-marker.pc-armazzem { background: #fdc500; }
.custom-marker.mobiplus { background: #3b82f6; }
.custom-marker.completed { background: var(--success) !important; }

.custom-marker-user {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50%;
  background: #3b82f6;
  border: 3px solid white;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.3), var(--shadow-sm);
}

/* Bottom mobile navigation */
.mobile-nav {
  display: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    position: relative;
  }

  .main-content.view-list .map-container {
    display: none !important;
  }

  .main-content.view-map .list-container {
    display: none !important;
  }

  .map-container {
    flex: 1 !important;
    height: 100% !important;
  }

  .list-container {
    width: 100% !important;
    min-width: unset !important;
    border-left: none !important;
    border-top: none !important;
    flex: 1 !important;
    height: 100% !important;
  }

  .mobile-nav {
    display: flex;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    height: 60px;
    padding: 4px;
    gap: 8px;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
  }
  
  .mobile-nav-btn {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
  }
  
  .mobile-nav-btn:hover {
    color: var(--text-primary);
  }
  
  .mobile-nav-btn.active {
    color: var(--accent);
  }
  
  .mobile-nav-btn svg {
    transition: transform var(--transition-fast);
  }
  
  .mobile-nav-btn.active svg {
    transform: scale(1.1);
  }

  .toolbar {
    padding: var(--space-sm) var(--space-md);
  }

  .toolbar-left,
  .toolbar-right {
    flex-wrap: wrap;
  }

  .app-header {
    padding: var(--space-sm) var(--space-md);
  }

  .header-left h2 {
    font-size: 1rem;
  }

  .header-user {
    display: none;
  }

  .btn span:not(.btn-loader) {
    display: none;
  }

  .btn svg {
    margin: 0;
  }

  .btn-sm {
    padding: 8px 10px;
  }

  .select-filter {
    font-size: 0.75rem;
    padding: 6px 28px 6px 8px;
  }

  .search-input {
    width: 100% !important;
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .search-group {
    width: 100%;
    margin-bottom: var(--space-xs);
  }

  .filter-group {
    width: 100%;
  }

  .select-filter {
    width: 100% !important;
  }

  .location-card .card-actions {
    opacity: 1;
  }

  .modal {
    margin: var(--space-md);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: var(--space-xl) var(--space-lg);
  }
}
