:root { --primary: #0d6efd; }
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: #f4f6fa;
  color: #222;
}
.navbar {
  background: #fff;
  border-bottom: 1px solid #e4e7ee;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.navbar img { height: 32px; }
.navbar h1 { font-size: 18px; margin: 0; flex: 1; }
.navbar a { color: #555; text-decoration: none; font-size: 14px; margin-left: 14px; }
.navbar a:hover { color: var(--primary); }
.container { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}
h2 { margin-top: 0; }
label { display: block; font-size: 13px; color: #555; margin-bottom: 4px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
  font-family: inherit;
}
.btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { opacity: 0.9; }
.btn-danger { background: #dc3545; }
.btn-warn { background: #f59e0b; }
.btn-secondary { background: #6b7280; }
.btn-lg { padding: 18px 36px; font-size: 18px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.timer {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  margin: 20px 0;
}
.status { text-align: center; font-size: 14px; color: #6b7280; margin-bottom: 12px; }
.status.active { color: #059669; font-weight: 600; }
.status.paused  { color: #f59e0b; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eef0f4; }
th { background: #f9fafb; font-weight: 600; color: #444; }
.actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-ok    { background: #d1fae5; color: #065f46; }
.alert-info  { background: #dbeafe; color: #1e40af; }
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: #fff;
  padding: 36px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.login-card img { height: 64px; margin-bottom: 12px; }
.login-card h1 { font-size: 22px; margin: 0 0 24px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-on  { background: #d1fae5; color: #065f46; }
.badge-off { background: #e5e7eb; color: #555; }
#map { height: 360px; border-radius: 10px; }
.gps-info { font-size: 12px; color: #6b7280; text-align: center; margin-top: 8px; }
