:root {
  /* Colors - High Contrast for Rural/Outdoor Use */
  --color-primary: #006D77;
  --color-primary-dark: #024D54;
  --color-secondary: #83C5BE;
  --color-bg: #F8F9FA;
  --color-surface: #FFFFFF;
  --color-text: #2D3436;
  --color-text-light: #636E72;
  --color-border: #DFE6E9;
  
  /* Status Colors */
  --status-low: #27AE60;
  --status-mod: #F2994A;
  --status-high: #EB5757;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Typography */
  --font-main: system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Mobile Container Simulation (since we're designing for mobile) */
.mobile-view {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Header */
header {
  padding: var(--space-md);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-text);
}

/* Typography */
h1 { font-size: 1.5rem; margin-bottom: var(--space-sm); }
h2 { font-size: 1.25rem; margin-bottom: var(--space-sm); }
p { font-size: 1.1rem; color: var(--color-text-light); }

/* Main Content Area */
main {
  flex: 1;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
}

/* Camera Preview */
.camera-container {
  flex: 1;
  background: #000;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  min-height: 400px;
}

.camera-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border: 2px dashed rgba(255,255,255,0.5);
  border-radius: var(--radius-full);
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  transition: transform 0.1s;
  text-decoration: none;
  width: 100%;
}

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

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

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

.btn-capture {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  border: 6px solid rgba(0, 109, 119, 0.3);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-capture-inner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Cards & Results */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.risk-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.risk-high { background: #FDECEA; color: var(--status-high); }
.risk-mod { background: #FFF4E5; color: var(--status-mod); }
.risk-low { background: #E9F7EF; color: var(--status-low); }

.confidence-bar {
  height: 12px;
  background: var(--color-bg);
  border-radius: var(--radius-full);
  margin: var(--space-sm) 0;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

/* Questionnaire */
.question-card {
  margin-bottom: var(--space-lg);
}

.question-text {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.option-btn {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: white;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.option-btn.selected {
  border-color: var(--color-primary);
  background: #E6F0F1;
  color: var(--color-primary);
}

/* Sync Screen */
.sync-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: var(--space-lg);
}

.sync-icon {
  width: 120px;
  height: 120px;
  background: #E6F0F1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: #E9ECEF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-weight: 500;
}

/* Navigation dots */
.steps {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: var(--space-md);
}

.step {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
}

.step.active {
  background: var(--color-primary);
  width: 24px;
  border-radius: 4px;
}
