/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f4f4f5;
  color: #0f172a;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===============================
   PAINEL DE FLUXOS – GEST
   (usado em /gest/fluxos/index.php)
   =============================== */

:root {
  --bg-body: #020617;
  --primary: #0ea5e9;
  --accent: #22c55e;
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --border-soft: #1e293b;
  --card-bg: rgba(15,23,42,0.92);
  --card-bg-strong: rgba(15,23,42,0.98);
  --badge-bg: rgba(22,163,74,0.16);
  --badge-dot: #22c55e;
  --shadow-card: 0 18px 60px rgba(15,23,42,0.9);
}

/* Escopo visual só para páginas que tiverem a classe "gest-fluxos" no body */
body.gest-fluxos {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(56,189,248,0.25), transparent 55%),
    radial-gradient(circle at bottom, rgba(59,130,246,0.18), #020617 60%);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gest-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.gest-panel {
  background: radial-gradient(circle at top left, rgba(56,189,248,0.15), transparent 55%),
              radial-gradient(circle at top right, rgba(37,99,235,0.18), transparent 55%),
              radial-gradient(circle at bottom, rgba(22,163,74,0.15), transparent 60%),
              linear-gradient(to bottom right, rgba(15,23,42,0.96), rgba(15,23,42,0.99));
  border-radius: 28px;
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: var(--shadow-card);
  padding: 28px 26px 24px;
  position: relative;
  overflow: hidden;
}

.gest-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(148,163,184,0.16);
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.gest-panel-inner {
  position: relative;
  z-index: 1;
}

.gest-header {
  text-align: center;
  margin-bottom: 24px;
}

.gest-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.32);
  color: var(--text-soft);
  margin-bottom: 16px;
}

.gest-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--badge-dot);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.25);
}

.gest-logo {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  margin: 0 auto 16px;
  background:
    radial-gradient(circle at top, rgba(56,189,248,0.9), transparent 60%),
    radial-gradient(circle at bottom, rgba(22,163,74,0.9), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(148,163,184,0.3),
    0 20px 45px rgba(15,23,42,0.9);
  overflow: hidden;
}

.gest-logo-inner {
  width: 70px;
  height: 70px;
  border-radius: inherit;
  background: radial-gradient(circle at top, #0ea5e9, #1d4ed8 60%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-size: 30px;
}

.gest-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #e5e7eb;
}

.gest-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  max-width: 640px;
  margin-inline: auto;
}

.gest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card {
  position: relative;
  border-radius: 20px;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.16), transparent 60%),
              radial-gradient(circle at bottom right, rgba(52,211,153,0.12), transparent 55%),
              var(--card-bg);
  border: 1px solid rgba(148,163,184,0.22);
  box-shadow: 0 18px 45px rgba(15,23,42,0.85);
  overflow: hidden;
  min-height: 220px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(148,163,184,0.22);
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.card-inner {
  position: relative;
  z-index: 1;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.card-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a5b4fc;
  background: rgba(15,23,42,0.88);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid rgba(129,140,248,0.45);
}

.card-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle at center, #a5b4fc, #6366f1);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.36);
}

.card-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: radial-gradient(circle at 30% 0, #38bdf8, #0369a1);
  box-shadow: 0 0 12px rgba(56,189,248,0.9);
}

.card-text {
  font-size: 13px;
  color: var(--text-soft);
  margin: 0;
}

.card-actions {
  margin-top: auto;
  padding-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
}

.btn.primary {
  background: linear-gradient(to right, #22c55e, #16a34a);
  color: white;
  box-shadow:
    0 10px 25px rgba(22,163,74,0.45),
    0 0 0 1px rgba(34,197,94,0.3);
}

.btn.secondary {
  background: radial-gradient(circle at top left, rgba(56,189,248,0.18), rgba(37,99,235,0.95));
  color: #e5e7eb;
  box-shadow:
    0 10px 25px rgba(37,99,235,0.5),
    0 0 0 1px rgba(59,130,246,0.35);
}

.btn .icon {
  font-size: 14px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 35px rgba(15,23,42,0.85),
    0 0 0 1px rgba(148,163,184,0.45);
}

footer {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-soft);
  opacity: 0.9;
}

@media (max-width: 960px) {
  .gest-grid {
    grid-template-columns: 1fr;
  }

  .gest-panel {
    padding: 22px 18px 20px;
  }
}
