@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ==========================================================================
   EVN Imersões — Design System Inicial e Estilos Globais
   ========================================================================== */

:root {
  /* Cores Principais - Tema Médico/Nutricional Dark Premium */
  --bg: #061318;
  --card: #0d2329;
  --line: #1e3f4a;
  --txt: #f2f6f6;
  --txt-muted: #8a9e9f;
  
  /* Status */
  --g: #31d093; /* Verde Esmeralda */
  --g2: #78e5b9; /* Verde Esmeralda Claro */
  --r: #f56565; /* Vermelho Erro */
  --y: #ecc94b; /* Amarelo Atenção */
  --b: #4299e1; /* Azul Informativo */
  
  /* Bordas e Layout */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.4);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Geral */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--txt);
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
}

/* Links */
a {
  color: var(--g);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--g2);
}

/* Formas & Inputs */
.field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.inp {
  width: 100%;
  background-color: #08171b;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--txt);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.inp:focus {
  border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(49, 208, 147, 0.15);
  background-color: #0c2026;
}

select.inp {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238a9e9f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

textarea.inp {
  resize: vertical;
  min-height: 80px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  padding: 10px 18px;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--g);
  color: #031810;
}

.btn-primary:hover {
  background-color: var(--g2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(49, 208, 147, 0.25);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-danger {
  background-color: var(--r);
  color: #fff;
}

.btn-danger:hover {
  background-color: #fc8181;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
}

.btn-lg {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
}

/* Alertas */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

.alert-error {
  background-color: rgba(245, 101, 101, 0.1);
  border-color: rgba(245, 101, 101, 0.25);
  color: #feb2b2;
}

.alert-success {
  background-color: rgba(49, 208, 147, 0.1);
  border-color: rgba(49, 208, 147, 0.25);
  color: #78e5b9;
}

.alert-warning {
  background-color: rgba(236, 201, 75, 0.1);
  border-color: rgba(236, 201, 75, 0.25);
  color: #fef08a;
}

.hidden {
  display: none !important;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
