body {
  background-color: #f0f2f5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-top: 140px;
}

.header-agendamentos {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 125px;
  background-color: #ffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.principal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 40px;
  width: 100%;
}

.btn-voltar {
  position: absolute;
  left: 0;
  background-color: #007bff;
  color: #fdfdfd;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s;
}

.btn-voltar:hover {
  background-color: #0056b3;
  color: #faf9f9;
}

/* Título central */
.page-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

/* Contador de estatísticas */
.stats-container {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.stat-badge .icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-total {
  background-color: #d9dbdb;
  color: #080808;
}

.stat-total .icon {
  color: #080808;
  font-size: 1.3rem;
  font-weight: 600;
}

.stat-cancelado {
  background-color: #f1d2d5;
  color: #080808;
}

.stat-cancelado .icon {
  background-color: #dc3545;
  color: #080808;
  font-size: 1.36rem;
}

.stat-confirmado {
  background-color: #d4edda;
  color: #080808;
}

.stat-confirmado .icon {
  background-color: #299743;
  color: #080808;
  font-size: 1.75rem;
}


/* Cards de agendamento */
.card {
  border-radius: 18px;
  border: none;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Card verde - confirmado */
.card-confirmado {
  background-color: #c5e2cc;
}

/* Card vermelho - cancelado/não compareceu */
.card-cancelado {
  background-color: #c98c90e5;

}

/* Card branco - pendente */
.card-pendente {
  background-color: #ffffff;
}

.card-body {
  padding: 15px;
}

.card-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #080808;
  margin-bottom: 10px;
}

.card-text {
  color: #2b2e30;
  font-size: 1rem;
  margin-bottom: 5px;
}

/* .horario-text {
  color: #6c757d;
  font-size: 0.85rem;
} */

/* Badge de status no card */
.status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.cancelado {
  background-color: #dc3545;
  color: #fdfdfd;
}

.status-badge.confirmado {
  background-color: #28a745;
  color: #fdfdfd;
}

.status-badge.pendente {
  background-color: #ecb708;
  color: #fdfdfd;
}

/* Botões de ação */
.btn-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-action {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancelar {
  background-color: #fa5b6b;
  color: #fdfdfd;
}

.btn-cancelar:hover:not(:disabled) {
  background-color: #c82333;
}

.btn-confirmar {
  background-color: #56ca71;
  color: #fdfdfd;
}

.btn-confirmar:hover:not(:disabled) {
  background-color: #218838;
}

.btn-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsivo */
@media (max-width: 768px) {
  .stats-container {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-container {
    flex-direction: column;
  }
}
