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

body {
  font-family: Arial, sans-serif;
  background: #f0f2f5;
}

/* ===== LOGIN ===== */
#login-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 360px;
}

.login-box h2 {
  text-align: center;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.login-box p {
  text-align: center;
  color: #666;
  margin-bottom: 24px;
  font-size: 14px;
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.login-box button {
  width: 100%;
  padding: 12px;
  background: #2d6a4f;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.login-box button:hover { background: #1b4332; }

/* ===== NOVA SENHA ===== */
#new-password-screen {
  display: none;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.new-password-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 360px;
}

.new-password-box h2 {
  text-align: center;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.new-password-box p {
  text-align: center;
  color: #666;
  margin-bottom: 24px;
  font-size: 14px;
}

.new-password-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.new-password-box button {
  width: 100%;
  padding: 12px;
  background: #2d6a4f;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

/* ===== DASHBOARD ===== */
#dashboard { display: none; }

.header {
  background: #2d6a4f;
  color: white;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 { font-size: 20px; }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ultima-atualizacao {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

.header button {
  background: transparent;
  border: 1px solid white;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.header button:hover { background: rgba(255,255,255,0.1); }

.content {
  padding: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.card h3 {
  margin-bottom: 16px;
  color: #1a1a2e;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.info-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: center;
}

.info-card .value {
  font-size: 32px;
  font-weight: bold;
  color: #2d6a4f;
}

.info-card .label {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

/* ===== SEÇÃO DE EXPORTAÇÃO ===== */
.export-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.export-section h4 {
  font-size: 14px;
  color: #444;
  margin-bottom: 14px;
  font-weight: 600;
}

.export-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.periodo-grupo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.periodo-grupo label {
  font-size: 12px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.periodo-inputs {
  display: flex;
  gap: 8px;
}

.periodo-inputs input[type="date"],
.periodo-inputs input[type="time"] {
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fafafa;
  cursor: pointer;
}

.periodo-inputs input[type="date"]:focus,
.periodo-inputs input[type="time"]:focus {
  outline: none;
  border-color: #2d6a4f;
  background: white;
}

.periodo-separador {
  font-size: 14px;
  color: #888;
  padding-bottom: 10px;
}

.btn-pdf {
  background: #2d6a4f;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  height: 40px;
  white-space: nowrap;
}

.btn-pdf:hover { background: #1b4332; }

.error-msg {
  color: red;
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}
