/* =========================================================
   Vector GEO4D — Tema Visual do Portal
   Etapa 6 / Bloco 11.1
   Escopo: somente camada visual
   Não altera APIs, banco, ETL ou regras operacionais
   ========================================================= */

:root {
  --vector-primary: #9f341e;
  --vector-primary-dark: #7f2414;
  --vector-primary-light: #c24b2e;

  --vector-black: #111111;
  --vector-dark: #1a1a1a;
  --vector-navy: #0f172a;

  --vector-white: #ffffff;
  --vector-bg: #f4f6f8;
  --vector-card: #ffffff;
  --vector-border: #d9e1ea;
  --vector-text: #1f2933;
  --vector-muted: #64748b;

  --vector-success: #166534;
  --vector-warning: #b45309;
  --vector-danger: #991b1b;
  --vector-info: #1d4ed8;

  --vector-radius-sm: 8px;
  --vector-radius-md: 12px;
  --vector-radius-lg: 18px;

  --vector-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
  --vector-shadow-md: 0 10px 28px rgba(15, 23, 42, 0.12);

  --vector-gradient: linear-gradient(90deg, #8f2415 0%, #d15b3d 45%, #111111 100%);
  --vector-button-gradient: linear-gradient(90deg, #8f2415 0%, #c44a2d 50%, #7f2414 100%);
}

/* Base geral */

body {
  margin: 0;
  background: var(--vector-bg);
  color: var(--vector-text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: var(--vector-primary);
  text-decoration: none;
}

a:hover {
  color: var(--vector-primary-dark);
}

/* Cabeçalho institucional */

.vector-header {
  background: var(--vector-gradient);
  color: var(--vector-white);
  padding: 22px 28px;
  border-radius: 0 0 var(--vector-radius-lg) var(--vector-radius-lg);
  box-shadow: var(--vector-shadow-md);
}

.vector-header h1,
.vector-header h2,
.vector-header h3 {
  margin: 0;
  color: var(--vector-white);
}

.vector-header p {
  margin: 8px 0 0 0;
  color: rgba(255, 255, 255, 0.86);
}

/* Container padrão */

.vector-container {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
}

/* Cards */

.vector-card {
  background: var(--vector-card);
  border: 1px solid var(--vector-border);
  border-radius: var(--vector-radius-md);
  box-shadow: var(--vector-shadow-sm);
  padding: 22px;
}

.vector-card h2,
.vector-card h3 {
  color: var(--vector-dark);
  margin-top: 0;
}

.vector-card-muted {
  background: #f8fafc;
  border: 1px solid var(--vector-border);
  border-radius: var(--vector-radius-md);
  padding: 16px;
}

/* Grid utilitário */

.vector-grid {
  display: grid;
  gap: 18px;
}

.vector-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vector-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vector-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .vector-grid-2,
  .vector-grid-3,
  .vector-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Botões */

button,
.vector-btn {
  border: none;
  border-radius: var(--vector-radius-sm);
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  background: var(--vector-button-gradient);
  color: var(--vector-white);
  box-shadow: 0 4px 12px rgba(159, 52, 30, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

button:hover,
.vector-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(159, 52, 30, 0.28);
}

button:disabled,
.vector-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.vector-btn-secondary {
  background: var(--vector-dark);
  color: var(--vector-white);
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.18);
}

.vector-btn-light {
  background: var(--vector-white);
  color: var(--vector-primary);
  border: 1px solid var(--vector-border);
  box-shadow: none;
}

/* Formulários */

label {
  display: block;
  font-weight: 700;
  color: var(--vector-dark);
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--vector-border);
  border-radius: var(--vector-radius-sm);
  padding: 10px 12px;
  background: var(--vector-white);
  color: var(--vector-text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--vector-primary-light);
  box-shadow: 0 0 0 3px rgba(194, 75, 46, 0.16);
}

/* Tabelas */

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--vector-white);
  border-radius: var(--vector-radius-md);
  overflow: hidden;
}

thead {
  background: var(--vector-dark);
  color: var(--vector-white);
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--vector-border);
  text-align: left;
}

tbody tr:hover {
  background: #fff7f4;
}

/* Status */

.vector-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.vector-status-ok {
  background: #dcfce7;
  color: var(--vector-success);
}

.vector-status-warning {
  background: #fef3c7;
  color: var(--vector-warning);
}

.vector-status-error {
  background: #fee2e2;
  color: var(--vector-danger);
}

.vector-status-info {
  background: #dbeafe;
  color: var(--vector-info);
}

/* Rodapé */

.vector-footer {
  margin: 38px auto 20px auto;
  text-align: center;
  color: var(--vector-muted);
  font-size: 13px;
}

/* Menu/cards de módulos */

.vector-module-card {
  display: block;
  background: var(--vector-white);
  border: 1px solid var(--vector-border);
  border-radius: var(--vector-radius-md);
  padding: 22px;
  box-shadow: var(--vector-shadow-sm);
  color: var(--vector-text);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.vector-module-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--vector-shadow-md);
  border-color: var(--vector-primary-light);
}

.vector-module-card strong {
  display: block;
  color: var(--vector-dark);
  font-size: 18px;
  margin-bottom: 8px;
}

.vector-module-card span {
  color: var(--vector-muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Faixa superior fina */

.vector-topline {
  height: 5px;
  width: 100%;
  background: var(--vector-gradient);
}
