* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f0f0;
  color: #333;
}

/* Login Screen */
#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.login-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.login-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

#login-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

#login-form input:focus {
  border-color: #4a90d9;
}

#login-form button {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #4a90d9;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

#login-form button:hover {
  background: #357abd;
}

#login-form button:active {
  background: #2a5f9e;
}

.error {
  color: #d9534f;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* Map Screen */
#map-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
}

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

/* Status Banner */
#status-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(217, 83, 79, 0.95);
  color: #fff;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

/* Info Overlay */
#info-overlay {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 0.6rem 1.2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  backdrop-filter: blur(4px);
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

#info-battery {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

#info-updated {
  color: #666;
}

#force-update-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}

#force-update-btn:hover {
  background: #f0f0f0;
  border-color: #bbb;
}

#force-update-btn:active {
  background: #e0e0e0;
}

#force-update-btn.loading {
  opacity: 0.5;
  pointer-events: none;
}
