:root {
  --rosa: #F72B8B;
  --azul: #35B6E9;
  --cinza-escuro: #2b2b33;
  --cinza-claro: #f5f6fa;
  --verde: #2ecc71;
  --vermelho: #e74c3c;
  --amarelo: #f1c40f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  background: linear-gradient(160deg, var(--azul) 0%, var(--rosa) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--cinza-escuro);
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card.wide { max-width: 900px; }

h1, h2 { margin-top: 0; }

.logo-title {
  text-align: center;
  margin-bottom: 20px;
}
.logo-title h1 {
  font-size: 22px;
  background: linear-gradient(90deg, var(--rosa), var(--azul));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.logo-title p { color: #888; font-size: 13px; margin: 0; }

input[type=text], input[type=password], input[type=date] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 14px;
}

label { font-size: 13px; font-weight: 600; color: #555; }

button, .btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--rosa), var(--azul));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.secundario { background: #eee; color: #444; }
button.perigo { background: var(--vermelho); }

.erro {
  background: #fdecea;
  color: var(--vermelho);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
}
.sucesso {
  background: #eafaf1;
  color: #218c53;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
}
.aviso {
  background: #fff8e1;
  color: #8a6d00;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
}

.status-box {
  text-align: center;
  padding: 20px;
  border-radius: 14px;
  background: var(--cinza-claro);
  margin-bottom: 18px;
}
.status-box .relogio {
  font-size: 32px;
  font-weight: 700;
  margin: 4px 0;
}
.status-box .situacao {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.situacao.dentro { background: var(--verde); }
.situacao.entrada { background: var(--azul); }
.situacao.saida { background: #888; }

.gps-status { text-align: center; font-size: 13px; margin-bottom: 14px; color: #666; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eee; }
th { color: #888; font-weight: 600; font-size: 12px; text-transform: uppercase; }

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.top-bar a { font-size: 13px; color: var(--rosa); text-decoration: none; font-weight: 600; }

.badge { padding: 3px 9px; border-radius: 12px; font-size: 12px; font-weight: 700; color: #fff; }
.badge.entrada { background: var(--azul); }
.badge.saida { background: #888; }
.badge.almoco { background: var(--amarelo); color: #7a5c00; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.lista-funcionarios { list-style: none; padding: 0; margin: 0; }
.lista-funcionarios li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px; border: 1px solid #eee; border-radius: 10px; margin-bottom: 10px;
}
.lista-funcionarios .acoes { display: flex; gap: 8px; }
.lista-funcionarios .acoes a, .lista-funcionarios .acoes button {
  font-size: 12px; padding: 6px 10px; width: auto;
}

@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tr { border: 1px solid #eee; border-radius: 10px; margin-bottom: 10px; padding: 8px; }
  td { border: none; padding: 4px 4px; }
  td::before { content: attr(data-label); font-weight: 700; display: block; font-size: 11px; color: #999; }
}
