/* ===== CSS Variables ===== */
:root {
  /* Colors - Light Theme for clarity */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  
  --accent-primary: #3b82f6;
  --accent-hover: #2563eb;
  
  --status-todo: #ef4444;
  --status-done: #22c55e;
  --status-problem: #f59e0b;
  
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-heavy: rgba(0, 0, 0, 0.15);
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  
  /* Layout */
  --header-height: 56px;
  --stats-height: 64px;
  --bottom-sheet-min: 80px;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--space-md);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  z-index: 100;
  box-shadow: 0 1px 3px var(--shadow-color);
}

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

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

.logo svg {
  width: 20px;
  height: 20px;
  color: white;
}

.header-title h1 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

.header-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

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

.sync-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background var(--transition-fast);
}

.sync-indicator.connected .sync-dot {
  background: var(--status-done);
  animation: pulse 2s infinite;
}

.sync-indicator.syncing .sync-dot {
  background: var(--accent-primary);
  animation: spin 1s linear infinite;
}

.sync-indicator.error .sync-dot {
  background: var(--status-todo);
}

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

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

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

.icon-btn:hover,
.icon-btn:focus {
  background: var(--bg-tertiary);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* ===== Stats Bar ===== */
.stats-bar {
  display: flex;
  height: var(--stats-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: var(--space-sm);
}

.stat-item:hover,
.stat-item.active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.stat-item.active {
  border-bottom-color: var(--accent-primary);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.stat-todo { color: var(--status-todo); }
.stat-done { color: var(--status-done); }
.stat-problem { color: var(--status-problem); }
.stat-total { color: var(--accent-primary); }

.stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ===== Main ===== */
.main {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* ===== Map ===== */
.map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.leaflet-container {
  background: #f8f8f8;
  font-family: inherit;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 8px var(--shadow-color) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: none !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
}

.leaflet-control-zoom a:hover {
  background: var(--bg-tertiary) !important;
}

/* GPS Button */
.gps-btn {
  position: absolute;
  bottom: calc(var(--bottom-sheet-min) + 20px);
  right: 16px;
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px var(--shadow-heavy);
  z-index: 100;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.gps-btn:hover {
  background: var(--accent-primary);
  transform: scale(1.05);
}

.gps-btn:hover svg {
  color: white;
}

.gps-btn svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.gps-btn.locating {
  background: var(--accent-primary);
}

.gps-btn.locating svg {
  color: white;
  animation: pulse 1s infinite;
}

/* Custom markers */
.custom-marker {
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  transition: transform var(--transition-fast);
  border: 2px solid white;
}

.custom-marker::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transform: rotate(45deg);
}

.custom-marker.todo { background: var(--status-todo); }
.custom-marker.done { background: var(--status-done); }
.custom-marker.problem { background: var(--status-problem); }

.leaflet-marker-icon:hover .custom-marker {
  transform: rotate(-45deg) scale(1.2);
}

/* User location marker */
.user-marker {
  width: 20px;
  height: 20px;
  background: var(--accent-primary);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
}

/* Popup */
.leaflet-popup-content-wrapper {
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px var(--shadow-heavy);
  border: 1px solid var(--border-color);
}

.leaflet-popup-tip {
  background: var(--bg-card);
}

.popup-content {
  padding: var(--space-sm);
  text-align: center;
}

.popup-content h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.popup-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.popup-btn {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast);
}

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

/* ===== Bottom Sheet ===== */
.bottom-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 65vh;
  min-height: var(--bottom-sheet-min);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-slow), height var(--transition-slow);
  box-shadow: 0 -4px 20px var(--shadow-heavy);
  touch-action: none;
}

.bottom-sheet.collapsed {
  transform: translateY(calc(100% - var(--bottom-sheet-min)));
}

.sheet-handle {
  display: flex;
  justify-content: center;
  padding: var(--space-sm) 0;
  cursor: grab;
  flex-shrink: 0;
}

.handle-bar {
  width: 40px;
  height: 4px;
  background: var(--border-color);
  border-radius: var(--radius-full);
}

.search-container {
  position: relative;
  padding: 0 var(--space-md) var(--space-sm);
  flex-shrink: 0;
}

.search-icon {
  position: absolute;
  left: calc(var(--space-md) + 12px);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px var(--space-md);
  padding-left: 44px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.search-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.parcmetre-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--space-md) var(--space-md);
  padding-bottom: calc(var(--space-md) + var(--safe-area-bottom));
}

.parcmetre-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.parcmetre-item:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px var(--shadow-color);
  transform: translateX(4px);
}

.item-status {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 3px var(--shadow-color);
}

.item-status.todo { background: var(--status-todo); }
.item-status.done { background: var(--status-done); }
.item-status.problem { background: var(--status-problem); }

.item-info {
  flex: 1;
  min-width: 0;
}

.item-id {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.item-address {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-zone {
  font-size: 0.6875rem;
  text-transform: uppercase;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  font-weight: 500;
}

.item-arrow {
  color: var(--text-muted);
}

.item-arrow svg {
  width: 18px;
  height: 18px;
}

.empty-state {
  text-align: center;
  padding: var(--space-xl);
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

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

.modal-content {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  box-shadow: 0 -4px 30px var(--shadow-heavy);
}

.modal.open .modal-content {
  transform: translateY(0);
}

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

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

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.detail-item {
  background: var(--bg-tertiary);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
}

.detail-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.detail-value {
  font-size: 0.875rem;
  font-weight: 500;
  word-break: break-word;
  color: var(--text-primary);
}

.section-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.status-section {
  margin-bottom: var(--space-lg);
}

.status-buttons {
  display: flex;
  gap: var(--space-sm);
}

.status-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px var(--space-md);
  background: var(--bg-tertiary);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.status-btn .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-btn.todo .status-dot { background: var(--status-todo); }
.status-btn.done .status-dot { background: var(--status-done); }
.status-btn.problem .status-dot { background: var(--status-problem); }

.status-btn.active {
  color: var(--text-primary);
}

.status-btn.todo.active { 
  border-color: var(--status-todo); 
  background: rgba(239, 68, 68, 0.1); 
}
.status-btn.done.active { 
  border-color: var(--status-done); 
  background: rgba(34, 197, 94, 0.1); 
}
.status-btn.problem.active { 
  border-color: var(--status-problem); 
  background: rgba(245, 158, 11, 0.1); 
}

.comment-section {
  margin-bottom: var(--space-md);
}

.comment-input {
  width: 100%;
  min-height: 100px;
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.comment-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-footer {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-top: 1px solid var(--border-color);
  padding-bottom: calc(var(--space-md) + var(--safe-area-bottom));
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px var(--space-md);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  flex: 1;
  background: var(--accent-primary);
  color: white;
}

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

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

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

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--status-todo);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-full {
  width: 100%;
  margin-bottom: var(--space-sm);
}

/* ===== Side Menu ===== */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 90vw;
  background: var(--bg-secondary);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  box-shadow: -4px 0 30px var(--shadow-heavy);
}

.side-menu.open {
  transform: translateX(0);
}

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

.menu-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

.menu-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.menu-section {
  margin-bottom: var(--space-lg);
}

.menu-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.menu-section-title svg {
  width: 18px;
  height: 18px;
}

.sync-info {
  background: var(--bg-tertiary);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.sync-status-text {
  color: var(--status-done);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.sync-hint {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

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

.progress-bar {
  flex: 1;
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--status-done), #4ade80);
  transition: width var(--transition-normal);
}

.progress-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--status-done);
  min-width: 45px;
  text-align: right;
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-sheet-min) + var(--space-md));
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  padding: 12px var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 15px var(--shadow-heavy);
  animation: toastIn 0.3s ease;
  white-space: nowrap;
  border: 1px solid var(--border-color);
}

.toast.success { border-left: 4px solid var(--status-done); }
.toast.error { border-left: 4px solid var(--status-todo); }
.toast.warning { border-left: 4px solid var(--status-problem); }
.toast.info { border-left: 4px solid var(--accent-primary); }

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

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-20px); }
}

/* ===== Desktop Styles ===== */
@media (min-width: 768px) {
  .bottom-sheet {
    left: auto;
    right: var(--space-md);
    bottom: var(--space-md);
    width: 380px;
    max-height: calc(100vh - var(--header-height) - var(--stats-height) - var(--space-xl));
    border-radius: var(--radius-lg);
  }
  
  .bottom-sheet.collapsed {
    transform: translateY(calc(100% - var(--bottom-sheet-min)));
  }
  
  .gps-btn {
    bottom: var(--space-md);
    right: calc(380px + var(--space-lg));
  }
  
  .modal-content {
    max-width: 480px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
  }
  
  .toast-container {
    bottom: var(--space-lg);
  }
}

/* ===== Login Screen ===== */
.login-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-md);
}

.login-screen.hidden {
  display: none;
}

.login-card {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: loginCardIn 0.5s ease;
}

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.login-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.login-logo svg {
  width: 40px;
  height: 40px;
  color: white;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.login-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.pin-container {
  margin-bottom: var(--space-lg);
}

.pin-input {
  width: 100%;
  padding: var(--space-md);
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 1rem;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pin-input::placeholder {
  letter-spacing: 0.5rem;
  color: var(--text-muted);
}

.pin-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.login-btn {
  margin-bottom: var(--space-md);
}

.login-btn svg {
  width: 20px;
  height: 20px;
}

.login-error {
  color: var(--status-todo);
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 1.5em;
}

.login-error.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-10px); }
  80% { transform: translateX(10px); }
}

/* App hidden state */
.app-hidden {
  display: none !important;
}
