:root {
  /* Colors - Optimized for high visibility and clear status */
  --color-primary: #0066cc;
  --color-success: #2e7d32;
  --color-warning: #f9a825;
  --color-danger: #d32f2f;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;

  /* Typography - Large for readability */
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --size-base: 18px;
  --size-lg: 22px;
  --size-xl: 28px;
  --size-huge: 40px;
}

* {
  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;
  font-size: var(--size-base);
  overflow-x: hidden;
}

.app-container {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  position: relative;
}

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

.app-logo {
  font-weight: 800;
  font-size: var(--size-lg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Camera Preview Area */
.camera-container {
  flex: 1;
  background: #000;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.camera-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border: 4px dashed rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
}

.camera-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* Action Bar / Controls */
.controls-area {
  padding: var(--space-lg) var(--space-md);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

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

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

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

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

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

.btn-large-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: 8px solid rgba(0, 102, 204, 0.2);
  margin-top: -50px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Result Cards */
.result-card {
  margin: var(--space-md);
  padding: var(--space-lg);
  border-radius: 24px;
  text-align: center;
  border: 2px solid transparent;
}

.result-card.high-risk {
  background: #fff5f5;
  border-color: var(--color-danger);
}

.risk-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  font-size: var(--size-lg);
  margin-bottom: var(--space-xs);
}

.risk-status {
  font-size: var(--size-huge);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.high-risk .risk-status { color: var(--color-danger); }

.confidence-meter {
  background: #eee;
  height: 12px;
  border-radius: 6px;
  margin: var(--space-md) 0;
  overflow: hidden;
}

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

.referral-box {
  background: white;
  padding: var(--space-md);
  border-radius: 16px;
  margin-top: var(--space-lg);
  border: 1px solid var(--color-border);
  text-align: left;
}

/* Interview Styles */
.question-container {
  padding: var(--space-lg) var(--space-md);
  flex: 1;
}

.question-text {
  font-size: var(--size-xl);
  font-weight: 700;
  margin-bottom: var(--space-xl);
  color: var(--color-text);
}

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

.btn-answer {
  height: 140px;
  flex-direction: column;
  font-size: var(--size-xl);
}

/* Utils */
.placeholder-image {
  background: #e2e8f0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.status-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-success);
}

.text-center { text-align: center; }
.mt-xl { margin-top: var(--space-xl); }
