html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  font-size: 13px; 
  font-family: "Segoe UI", Arial, sans-serif; 
  margin: 0; 
  background: #f6f7fb; 
  color: #3b2f1f;
}

header {
    background: linear-gradient(
    90deg,
    #5a0f0a 0%,     /* vinho escuro */
    #8c1d18 30%,   /* vermelho queimado */
    #c0392b 60%,   /* vermelho alaranjado */
    #e67e22 100%   /* abóbora */
  );
    color: white;
    padding: 16px 24px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1000;
}

/* Alinha o nome do usuário logado à direita no header (sem alterar o HTML) */
header > span {
  position: absolute;
  right: 24px;
  top: 16px;
  text-align: right;
  white-space: nowrap;
}

/* Se existir um link "Sair" como filho direto do header 
(fora do nav), posiciona à direita também */
header > a {
  position: absolute;
  right: 24px;
  top: 40px;
  white-space: nowrap;
}

nav {
  margin-top: 8px;
}

nav a {
  color: #fff3e0;
  margin-right: 16px;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover {
  text-decoration: none;
  color: #cc6a00;
  border-bottom: 3px solid #cc6a00;
}

a {
  color: #cc6a00;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  text-decoration: none;
  border-bottom: 3px solid #cc6a00;
}

.tooltip {
  position: relative;
  color: #cc6a00;
  text-decoration: none;
  cursor: pointer;
  z-index: 1;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 180%;
  left: 50%;
  transform: translateX(-50%);
  background: #5a2d00;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tooltip::before {
  content: "";
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #5a2d00;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
}

main { flex: 1; margin-top: 20px; padding: 24px; }

.logo-line {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-line::before {
    content: "";
    display: inline-block;
    width: 100px; 
    height: 100px;
    margin-top: -30px;      
    margin-bottom: 0px;
    background-image: url('../img/logo.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transform: rotate(90deg);
  }

.logo-line .subtitle {
    font-size: 34px;
    font-weight: 300;
    color: #fff3e0;
    letter-spacing: 0.5px;
    margin-top: -8px;  
}

hr {
    border: none;           /* remove borda padrão */
    border-top: 1px solid white; /* linha branca */
    margin-top: -15px;         /* espaçamento opcional */
    height: 0;              /* colapsa a altura */
}

.login-container {
    width: 240px;           /* ainda menor */
    margin: 25px auto;      /* ocupa menos altura */
    padding: 14px;          /* reduzido */
    background: #fffaf5;    /* branco quente */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(204,106,0,0.18); /* sombra abóbora */
    text-align: center;
}

.login-container h2 {
    margin-bottom: 10px;
    font-size: 18px;              /* menor */
    color: #7a3e00;               /* marrom abóbora */
}

.login-container label {
    display: block;
    text-align: left;
    margin: 5px 0 3px;
    font-size: 12px;              /* menor */
    color: #8a4b08;               /* marrom quente */
}

.login-container input {
    width: 100%;
    padding: 6px;                 /* mínimo confortável */
    border: 1px solid #ffbf80;    /* abóbora suave */
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 6px;
    margin-right: 0px;
    transition: 0.2s;
    box-sizing: border-box;
}

.login-container input:focus {
    border-color: #cc6a00;        /* abóbora escuro */
    outline: none;
    box-shadow: 0 0 3px rgba(204,106,0,0.4);
}

.login-container button {
    width: 100%;
    padding: 7px;                 /* menor ainda */
    background: #cc6a00;          /* abóbora principal */
    color: #fffaf5;               /* branco quente */
    border: none;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 3px;
}

.login-container button:hover {
    background: #a85700;          /* abóbora mais fechado */
}

.form-filtro {
    text-align: right;       /* garante alinhamento */
    margin-bottom: 15px;    /* espaço abaixo do filtro */
}

.form-filtro input {
    padding: 5px;
    border: 1px solid #aaa;
    border-radius: 4px;
}

.agenda_incluir {
    text-align: right;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.dashboard li {
  background: #ffe0c2;
  padding: 18px;
  border-radius: 14px;
  border: none;
  
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard li:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(204,106,0,0.65);
}

.dashboard li p {
  font-size: 15px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #8a3d00;
}

.dashboard li span {
  font-size: 13px;
  color: #a85a00;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

th, td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
}

tr th {
    background: #ff9f1c;
    color: #5a2d00;
}

table thead tr {
    background-color: #ff9f1c;
    color: #5a2d00;
}

table thead th {
    color: #5a2d00;
    font-weight: 600;
    padding: 6px;
    text-align: left;
}

table tbody tr {
  background-color: #fff9f2; /* base mais quente e viva */
}

table tbody tr:nth-child(even) {
  background-color: #ffefd9; /* alternância mais perceptível */
}

table tbody tr:hover {
  background-color: #ffd19a;
}

.hangarado {
    background-color: #FFF6ED; /* laranja ultra claro */
}

table tbody tr.hangarado {
  background-color: #fdb777;
}

table tbody tr.hangarado:hover {
  background-color: #ffd19a;
}

.app-footer {
  background: linear-gradient(
    90deg,
    #5a0f0a 0%,
    #8c1d18 30%,
    #c0392b 60%,
    #e67e22 100%
  );
  color: #fff3e0;
  padding: 14px 24px;
  box-shadow: 0 -3px 12px rgba(0,0,0,0.25);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.footer-separator {
  opacity: 0.6;
}

.form-card {
  max-width: 1000px;
  margin: 0 auto;
  background: #fffaf5;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 6px 18px rgba(204,106,0,0.18);
}

.form-card h2 {
  margin-bottom: 20px;
  color: #5a2d00;
}

.agenda-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #7a3a00;
  margin-bottom: 6px;
}

input,
select,
textarea {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #f0caa6;
  background: #fff;
  font-size: 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #cc6a00;
  box-shadow: 0 0 0 2px rgba(204,106,0,0.2);
}

.inline-inputs {
  display: flex;
  gap: 10px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.form-actions button {
  background: linear-gradient(90deg, #cc6a00, #ff9f1c);
  color: #fff;
  border: none;
  padding: 10px 26px;
  border-radius: 22px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(204,106,0,0.35);
}

.form-actions button:hover {
  filter: brightness(1.05);
}