/* ===============================
   MediConnect – CSS Institucional
   Versão: 1.0
   =============================== */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Corpo da página */
body {
  font-family: Inter, Roboto, Arial, sans-serif;
  background-color: #F5F7FA;
  color: #2E2E2E;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Cabeçalho */
header {
  background-color: #1E88E5;
  color: #FFFFFF;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 20px;
  font-weight: 600;
}

header .user-info {
  font-size: 14px;
}

/* Container principal */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

/* Caixa central (cards / dashboards) */
.container {
  background-color: #FFFFFF;
  width: 100%;
  max-width: 960px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
}

/* Títulos */
h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #1E88E5;
}

/* Listas */
ul {
  list-style: none;
}

li {
  padding: 12px;
  border-bottom: 1px solid #EEEEEE;
}

/* Botões */
button {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-right: 8px;
}

/* Botão primário */
.btn-primary {
  background-color: #2E7D32;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #256628;
}

/* Botão secundário */
.btn-secondary {
  background-color: #1E88E5;
  color: #FFFFFF;
}

.btn-secondary:hover {
  background-color: #1565C0;
}

/* Botão crítico */
.btn-danger {
  background-color: #C62828;
  color: #FFFFFF;
}

.btn-danger:hover {
  background-color: #A91F1F;
}

/* Formulários */
label {
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 6px;
  border: 1px solid #CCCCCC;
  font-size: 14px;
}

/* Rodapé */
footer {
  background-color: #FFFFFF;
  border-top: 1px solid #E0E0E0;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: #6B6B6B;
}

footer strong {
  color: #2E2E2E;
}

/* ===============================
   Dashboard Paciente – Histórico
   =============================== */

.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.history-table th,
.history-table td {
  border: 1px solid #E0E0E0;
  padding: 12px;
  text-align: left;
  font-size: 14px;
}

.history-table th {
  background-color: #F5F7FA;
  font-weight: 600;
}

.history-table tr:nth-child(even) {
  background-color: #FAFAFA;
}

.empty-history {
  color: #6B6B6B;
  font-style: italic;
}

/* “Pílulas” de status */
.status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  text-transform: capitalize;
  border: 1px solid transparent;
}

/* Cores alinhadas à paleta institucional */
.status-novo {
  background-color: #1E88E5;
  color: #FFFFFF;
}

.status-em_atendimento {
  background-color: #F5F7FA;
  color: #2E2E2E;
  border-color: #E0E0E0;
}

.status-agendado {
  background-color: #2E7D32;
  color: #FFFFFF;
}

/* ===============================
   Dashboard Médico – Blocos e Tabelas
   =============================== */

.profile-box {
  background-color: #F5F7FA;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid #E0E0E0;
}

.section-block {
  margin-top: 18px;
}

.patients-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.patients-table th,
.patients-table td {
  border: 1px solid #E0E0E0;
  padding: 12px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.patients-table th {
  background-color: #F5F7FA;
  font-weight: 600;
}

.empty-list {
  color: #6B6B6B;
  font-style: italic;
}

/* Botões de ação do médico */
.action-button {
  padding: 10px 12px;
  color: #FFFFFF;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.action-button.pegar { background-color: #2E7D32; }
.action-button.agendado { background-color: #1E88E5; }
.action-button.devolver { background-color: #FBC02D; color: #1A1A1A; }

.actions-cell form {
  margin: 0;
  display: inline-block;
}

.actions-cell form + form {
  margin-left: 8px;
}
