/*
================================================================================
OnTime - CSS base comentado e fácil de ajustar/manter
================================================================================
*/

/* -------------------- RESET BÁSICO -------------------- */
/* Garante que espaçamentos e box-sizing sejam consistentes */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background: #f6f8fa;         /* Cor de fundo suave para distinguir containers */
  color: #23272f;              /* Texto para boa leitura */
}

/* -------------------- NAVBAR -------------------- */
nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 2rem;
  background: #334e68;         /* Azul escuro elegante */
  color: #fff;
  font-size: 1.07rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 0.6rem;
  transition: color 0.18s;
}
nav a:hover {
  text-decoration: underline;
  color: #a7c7e7;
}

/* -------------------- FLASH MESSAGES (DJANGO) -------------------- */
/* Classes adicionadas pelo template base */
.messages {
  max-width: 600px;
  margin: 24px auto 0 auto;
}
.message {
  background: #f8fafc;
  border-left: 5px solid #aaa;
  border-radius: 4px;
  margin-bottom: 12px;
  padding: 12px 20px;
}
.message.success { border-color: #28a745; color: #23703d; background: #ecfce6; }
.message.error   { border-color: #e74c3c; color: #98312b; background: #fff0ef; }
.message.warning { border-color: #f8bb07; color: #927a2b; background: #fffbea; }
.message.info    { border-color: #17a2b8; color: #165664; background: #e9f5fa; }

/* -------------------- CONTAINER PRINCIPAL -------------------- */
/* Use class="container" para centralizar e dar padding */
.container {
  max-width: 900px;
  margin: 32px auto 32px auto;
  background: #fff;
  border-radius: 10px;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.045);
}

/* -------------------- FORMULÁRIOS -------------------- */
input,
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.8rem;
  border: 1px solid #bbc9d7;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 0.6rem;
  background: #fafbfc;
  transition: border 0.18s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #334e68;
  outline: none;
}

button, .button {
  padding: 0.5rem 1.4rem;
  background: #334e68;
  color: #fff;
  border-radius: 6px;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  margin-top: 6px;
  cursor: pointer;
  transition: background 0.17s;
}
button:hover, .button:hover {
  background: #476285;
}
button[disabled], .button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* -------------------- TABELAS -------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #f8fafc;
}
th,
td {
  padding: 0.5rem 0.8rem;
  border: 1px solid #d3dbe4;
  text-align: left;
}
thead th {
  background: #dde6ed;
  font-weight: 600;
}
tbody tr:nth-child(even) td {
  background: #f2f7fb;
}

/* -------------------- FOOTER BÁSICO -------------------- */
footer.footer {
  text-align: center;
  color: #6d7d8b;
  font-size: 0.98rem;
  padding: 18px 0 15px 0;
  background: none;
  margin-top: 40px;
}

/* -------------------- UTILIDADES E SUGESTÕES PARA EXPANDIR -------------------- */
/* Para cards, alertas customizados, loading/spinner, etc., crie novas classes aqui */
/* .card { ... } */
/* .alert { ... } */

/* --- FIM DO CSS BASE --- */