/* 1. Reset mínimo e fonte base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.5;
}

/* 2. Cabeçalho geral */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}

/* Título com logo ao lado */
.page-title {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  margin: 0;
}

.logo-inline {
  height: 40px;
  margin-right: 10px;
}

/* Link de navegação */
.app-header nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color .2s;
}

.app-header nav a:hover {
  color: #007bff;
}

/* 3. Container do calendário */
.calendar-container {
  max-width: 1100px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1rem 1.5rem;
}

/* 4. Botões padrão */
button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background .2s;
}

button:hover {
  background: #0056b3;
}

/* 5. Calendário em grid */
#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e0e0e0;
  border-radius: 0.25rem;
  overflow: hidden;
  margin-top: 1rem;
}

.calendar-cell {
  background: #fff;
  min-height: 80px;
  position: relative;
  padding: 0.25rem;
  font-size: 0.9rem;
}

/* Cabeçalho dos dias */
.cell-header {
  background: #f7f7f7;
  text-align: center;
  font-weight: 600;
}

/* Células vazias */
.cell-empty {
  background: #fafafa;
}

/* Hover nos dias */
.cell-day:hover {
  background: #f0f8ff;
}

/* 6. Cores de status */
.calendar-cell.vago {
  background: #e8f5e9;
}

.calendar-cell.parcial {
  background: #fffde7;
}

.calendar-cell.cheio {
  background: #ffebee;
}

.calendar-cell.bloqueado {
  background: #eceff1;
  color: #78909c;
}

/* 7. Formulários */
form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

form button[type="submit"] {
  background: #28a745;
}

form button[type="submit"]:hover {
  background: #218838;
}

/* 8. Estilo seção de login */
.login-header {
  text-align: center;
  padding: 1rem 0;
}

.login-header .logo-inline {
  max-width: 200px;
}

/* === Login Page === */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.login-card {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 320px;
  text-align: center;
}

.login-logo img {
  max-width: 200px;
  margin-bottom: 1.5rem;
}

.login-error {
  background: #ffe6e6;
  color: #c00;
  padding: 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.login-form label {
  display: block;
  text-align: left;
  margin: 0.75rem 0 0.25rem;
  font-weight: 600;
  color: #555;
}

.login-form input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 0.95rem;
}

.login-form input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
}

.login-form button {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
}

.login-form button:hover {
  background: #0069d9;
}
