/* Importando a fonte profissional Inter */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: #f8fafc; /* Tom de cinza azulado suave premium */
  color: #1e293b;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ==========================================================================
   ESTILOS DA TELA DE LOGIN (INDEX.HTML)
   ========================================================================== */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.login-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.login-card h2 {
  font-size: 24px;
  color: #0f172a;
  margin-bottom: 8px;
  font-weight: 700;
}

.login-subtit {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
  display: block;
}

.input-group {
  text-align: left;
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

/* Inputs, Selects e Textareas Padronizados */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: #ffffff;
  color: #0f172a;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Botões no padrão Azul Corporativo */
.btn-primary,
.btn-salvar,
.btn-login {
  width: 100%;
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover,
.btn-salvar:hover,
.btn-login:hover {
  background-color: #1d4ed8;
}

/* ==========================================================================
   ESTILOS DO DASHBOARD (DASHBOARD.HTML)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1100px;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.header-painel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.medico-status {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  margin-right: 15px;
}

.btn-sair {
  background-color: #ef4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-sair:hover {
  background-color: #dc2626;
}

form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
  background: #f1f5f9;
  padding: 24px;
  border-radius: 8px;
}

.full-width {
  grid-column: 1 / -1;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

#lista-pacientes {
  display: grid;
  gap: 16px;
  margin-top: 15px;
}

.card-paciente {
  border: 1px solid #e2e8f0;
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.card-paciente:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05);
}

.card-header {
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 8px;
}

details {
  margin-top: 12px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}
summary {
  font-weight: 500;
  color: #2563eb;
  cursor: pointer;
  font-size: 14px;
}
details p {
  font-size: 14px;
  color: #475569;
  background: #f8fafc;
  padding: 10px;
  border-radius: 6px;
  margin-top: 8px;
  line-height: 1.5;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }
  form {
    grid-template-columns: 1fr;
  }
  .header-painel {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
