:root {
  --primary: #3b82f6;      /* Azul moderno */
  --secondary: #22c55e;    /* Verde moderno */
  --danger: #ef4444;       /* Vermelho moderno */
  --warning: #f59e0b;      /* Laranja para o som */
  --bg: #0f172a;           /* Fundo do app alinhado com o Manifest */
  --card-bg: #1e293b;      /* Fundo do painel central */
  --text: #f8fafc;         /* Texto claro */
  --text-muted: #94a3b8;   /* Subtítulos e footer */
}

* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text);
  padding: 1rem;
  transition: opacity 0.2s ease; /* Transição suave para o bloqueio anti-F12 */
}

.app {
  background: var(--card-bg);
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.status {
  text-align: center;
  font-weight: bold;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.status.ok { color: var(--secondary); }
.status.erro { color: var(--danger); }

/* Estilização Geral de Botões */
button {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  border: none;
  border-radius: 14px;
  margin-bottom: 0.8rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.1s ease, filter 0.2s ease;
}

button:active {
  transform: scale(0.98);
}

button:hover {
  filter: brightness(1.1);
}

button:focus {
  outline: 3px solid var(--primary);
}

/* Cores específicas de cada botão */
.btn-save { background: var(--primary); color: #fff; }
.btn-find { background: var(--secondary); color: #fff; }
.btn-pause { background: #64748b; color: #fff; } /* Cinza azulado */
.btn-sound { background: var(--warning); color: #fff; }
.btn-install { background: #8b5cf6; color: #fff; } /* Roxo para instalação */
.btn-help { background: #475569; color: #fff; }
.btn-exit { background: #334155; color: #fff; margin-top: 0.4rem; }

/* Bloco Explicativo de Ajuda Dinâmico */
#helpBox {
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid #334155;
  line-height: 1.5;
}

#helpBox h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

#helpBox p {
  margin: 0.4rem 0;
}

/* Painel de Coordenadas do GPS */
.coords {
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.8rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid #334155;
  line-height: 1.4;
}

iframe {
  width: 100%;
  height: 220px;
  border: none;
  border-radius: 14px;
  margin-bottom: 1rem;
}

footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
