:root {
  /* Colors */
  --bg-dark: #121212;
  --bg-card: #1E1E1E;
  --bg-card-glass: rgba(30, 30, 30, 0.8);

  --primary: #00FF88;
  /* Neon Green */
  --secondary: #00CCFF;
  /* Electric Blue */
  --accent: #FF0055;
  /* Alert Red */

  --text-main: #FFFFFF;
  --text-muted: #AAAAAA;

  /* Spacing */
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 32px;

  /* Effects */
  --glow-primary: 0 0 10px rgba(0, 255, 136, 0.3);
  --radius-m: 12px;
  --radius-l: 20px;
}

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

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  width: 100%;
  max-width: 480px;
  /* Mobile width cap */
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding: var(--space-m);
}

/* Typography */
h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: var(--space-l);
}

h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--space-m);
  color: var(--primary);
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-s);
}

p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Components */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-m);
  padding: var(--space-m);
  margin-bottom: var(--space-m);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn {
  background: linear-gradient(135deg, var(--primary), #00DD77);
  color: #000;
  font-weight: 800;
  border: none;
  padding: 16px 32px;
  border-radius: var(--radius-l);
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.input-date {
  background: var(--bg-card);
  color: white;
  border: 1px solid var(--text-muted);
  padding: var(--space-m);
  border-radius: var(--radius-m);
  font-size: 18px;
  width: 100%;
  margin-bottom: var(--space-l);
  font-family: 'Manrope', sans-serif;
}

.input-date::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-neon {
  color: var(--primary);
  text-shadow: var(--glow-primary);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden {
  display: none !important;
}

/* Timeline/List items */
.task-item {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  padding: var(--space-s) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.task-item:last-child {
  border-bottom: none;
}

.task-icon {
  font-size: 24px;
  color: var(--secondary);
}

/* --- NEW STYLES (Restored) --- */

/* Google & Email Buttons */
.btn-google {
  background: white;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  margin-bottom: 10px;
}

.btn-email {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Horizontal Timeline */
.timeline-horizontal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
  padding: 0 10px;
  margin-top: 20px;
}

.timeline-horizontal::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #333;
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  background: var(--bg-dark);
  padding: 0 5px;
  text-align: center;
}

.timeline-dot {
  width: 30px;
  height: 30px;
  background: #333;
  border-radius: 50%;
  margin: 0 auto 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #777;
  border: 2px solid var(--bg-dark);
}

.timeline-step.active .timeline-dot {
  background: var(--primary);
  color: black;
  box-shadow: 0 0 10px var(--primary);
}

.timeline-step.completed .timeline-dot {
  background: var(--secondary);
  color: black;
}

.timeline-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.timeline-step.active .timeline-label {
  color: var(--primary);
  font-weight: bold;
}

/* Spray Counter */
.spray-counter {
  text-align: center;
  margin: 20px 0;
  border: 1px solid var(--secondary);
  /* Ensure visibility */
}

.spray-count-display {
  font-size: 48px;
  font-weight: 800;
  color: var(--secondary);
  text-shadow: 0 0 20px rgba(0, 204, 255, 0.5);
  margin: 10px 0;
}

/* Checklist */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.checklist-item.checked {
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--primary);
}

.checklist-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--text-muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked+.slider {
  background-color: var(--primary);
}

input:checked+.slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Loader */
.loader {
  border: 4px solid rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: var(--primary);
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Fade In Animation */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gradient Cards */
.card-gradient-blue {
  background: linear-gradient(135deg, rgba(37, 140, 244, 0.2), rgba(0, 0, 0, 0));
  border: 1px solid var(--secondary);
}

.card-gradient-purple {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.1), rgba(0, 0, 0, 0));
  border: 1px solid #ff00ff;
}

.card-gradient-green {
  background: linear-gradient(135deg, rgba(0, 255, 127, 0.1), rgba(0, 0, 0, 0));
  border: 1px solid #00FF7F;
}

.card-gradient-violet {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 0, 0, 0));
  border: 1px solid #8A2BE2;
}

.card-gradient-map {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.card-progress {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-left: 4px solid var(--secondary);
}

.card-scab {
  background: linear-gradient(135deg, #FFB000 0%, #FF8800 100%);
  color: black;
}

.card-spray {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 0.9));
  border: 1px solid var(--secondary);
}

/* Toast Notifications */
.toast {
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  opacity: 0;
  transform: translateY(20px);
}

.toast-success {
  border-color: var(--primary);
  color: var(--primary);
}

.toast-error {
  border-color: var(--accent);
  color: var(--accent);
}

.toast-warning {
  border-color: orange;
  color: orange;
}

/* Small Loader */
.loader-sm {
  border: 2px solid rgba(255, 255, 255, 0.1);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border-left-color: var(--primary);
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}