:root {
  --bg-header: #20222a;
  --bg-base: #171820;
  --bg-secondary: #1b1d26;

  --surface: rgba(38, 41, 51, 0.86);
  --surface-hover: rgba(48, 52, 64, 0.98);

  --border: rgba(148, 163, 184, 0.16);
  --border-hover: rgba(56, 189, 248, 0.55);

  --primary: #38bdf8;
  --primary-hover: #7dd3fc;
  --secondary: #a78bfa;

  --text-main: #f1f5f9;
  --text-muted: #aab2c0;
  --text-dim: #737b8c;

  --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.24);
  --shadow-hover:
    0 18px 38px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(56, 189, 248, 0.12);
}

/* Fundo geral: tons compatíveis com #20222A */
html,
body {
  min-height: 100%;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 4%, rgba(56, 189, 248, 0.07), transparent 28rem),
    radial-gradient(circle at 88% 3%, rgba(167, 139, 250, 0.06), transparent 26rem),
    linear-gradient(135deg, #171820 0%, #1b1d26 50%, #20222a 100%);
  background-attachment: fixed;
}

#app-mount {
  min-height: 100vh;
}

/*
  O banner possui fundo #20222A:
  - essa mesma cor é colocada como fallback;
  - o overlay é leve, não apaga a imagem;
  - o lado esquerdo tem mais contraste para título e links.
*/

/* Faixa de Cabeçalho / Banner do Dashboard */
header,
.header,
.first-line {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 2.5rem 1.5rem !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background-color: #253443 !important; /* Seu tom de fundo escuro */
  background-image: 
    linear-gradient(
      90deg, 
      rgba(37, 52, 67, 0.96) 0%, 
      rgba(37, 52, 67, 0.85) 45%, 
      rgba(37, 52, 67, 0.35) 100%
    ),
    url("./images/dashboard-banner.png") !important;
  background-position: right center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

/* Mantém os textos, logo e elementos legíveis acima da imagem */
.first-line > *,
header > *,
.header > * {
  position: relative;
  z-index: 2;
}

/* Vinheta: elimina transições bruscas no fim da imagem */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(23, 24, 32, 0.08), rgba(23, 24, 32, 0.54)),
    radial-gradient(circle at 22% 40%, rgba(56, 189, 248, 0.09), transparent 27rem);
}

/* Faz título, logo e links ficarem acima dos efeitos */
.header > * {
  position: relative;
  z-index: 1;
}

.header .title,
header .title {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.header .subtitle,
header .subtitle {
  color: #cbd5e1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.64);
}

/* Área central */
.main,
.section {
  background: transparent;
}

/* Cards */
.card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.card::before {
  content: "";
  display: block;
  height: 2px;
  opacity: 0.34;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.72),
    rgba(167, 139, 250, 0.54),
    transparent
  );
  transition: opacity 0.22s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  background: var(--surface-hover);
  box-shadow: var(--shadow-hover);
}

.card:hover::before {
  opacity: 0.95;
}

/* Tipografia dos serviços */
.card .name,
.card .title {
  color: var(--text-main) !important;
  font-weight: 750;
}

.card .subtitle,
.card .description {
  color: var(--text-muted) !important;
}

/* Ícones */
.card .service-icon,
.card .icon,
.group-icon,
.section-title i {
  color: var(--primary);
}

.card .service-icon i,
.card .icon i {
  filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.22));
}

/* Títulos de grupos */
.section-title,
.group-title,
.title.is-4,
.title.is-5 {
  color: #e2e8f0 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Tags dos serviços */
.tag {
  min-height: 1.72em;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1) !important;
  color: #bae6fd !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Barra superior e links */
.navbar,
.navbar-menu {
  background: rgba(32, 34, 42, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar-item,
.navbar-link {
  color: #cbd5e1 !important;
  border-radius: 9px;
  transition: color 0.2s ease, background 0.2s ease;
}

.navbar-item:hover,
.navbar-link:hover {
  color: #ffffff !important;
  background: rgba(56, 189, 248, 0.12) !important;
}

/* Mensagem de boas-vindas/status */
.message {
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 14px;
  background: rgba(38, 41, 51, 0.76);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.16);
}

.message-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(56, 189, 248, 0.1) !important;
  color: #e0f2fe !important;
}

.message-body {
  border: 0 !important;
  background: transparent !important;
  color: var(--text-muted) !important;
}

/* Links */
a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-hover);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #171820;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #171820;
  border-radius: 10px;
  background: #383c4a;
}

::-webkit-scrollbar-thumb:hover {
  background: #4b5568;
}

@media screen and (max-width: 768px) {
  .header {
    min-height: 185px;
    background-position: center;
  }

  .card {
    border-radius: 13px;
  }

  .card:hover {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}