:root {
  --bg: #0b0d10;
  /* fundo principal */
  --bg-elev: #11151a;
  /* cartões/barras */
  --text: #e6e8eb;
  /* texto padrão */
  --muted: #a7b0ba;
  /* texto secundário */
  --brand: #ff7a18;
  /* laranja Lambda */
}

/* Base */
html,
body {
  background:
    radial-gradient(1200px 800px at 10% 20%, rgba(255, 122, 24, .08), transparent 60%),
    radial-gradient(1000px 600px at 90% 80%, rgba(255, 122, 24, .06), transparent 60%),
    var(--bg), ;
  color: var(--text);
}

/* Utilitários */
.bg-dark {
  background-color: var(--bg) !important;
}

.rounded-pill.text-bg-warning {
  background-color: #ff7a18 !important;
  color: #0b0d10 !important;
}

.bg-elev {
  background-color: var(--bg-elev) !important;
}

.text-muted {
  color: var(--muted) !important;
}

.text-brand {
  color: var(--brand) !important;
}

.border-brand {
  border-color: var(--brand) !important;
}

.btn-brand {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-color: #0b0d10;
  --bs-btn-hover-bg: #ff8f3f;
  --bs-btn-hover-border-color: #ff8f3f;
}

.chip {
  background-color: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  display: inline-block;
  padding: .35rem .6rem;
}

.card-dark {
  background-color: var(--bg-elev);
  border: 1px solid rgba(255, 255, 255, .06);
}

.accent-bar {
  background: var(--brand);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(255, 122, 24, .6);
  height: 4px;
  width: 64px;
}

/* Botões especiais */
.btn-brand-gradient {
  background: linear-gradient(135deg, #ff7a18, #ff4800);
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 0 rgba(255, 140, 0, 0);
  color: #fff !important;
  transition: all 0.3s ease;
}

.btn-brand-gradient:hover {
  box-shadow: 0 0 16px rgba(255, 140, 0, 0.5);
  filter: brightness(1.1);
  transform: translateY(-2px);
}
.btn-cancel {
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-cancel:hover {
  background-color: #535353 !important;
  color: #0b0d10;
  /* texto escuro pra contraste */
  box-shadow: 0 0 10px rgba(255, 122, 24, 0.4);
  transform: translateY(-2px);
}

.btn-default {
  border-color: var(--brand) !important;
  background-color: transparent;
  transition: all 0.3s ease;
}

.btn-default:hover {
  background-color: #535353 !important; 
  color: #0b0d10;
  /* texto escuro pra contraste */
  box-shadow: 0 0 10px rgba(255, 122, 24, 0.4);
}

/* Botão secundário com efeito de brilho */
.hover-glow {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #f8f9fa !important;
  transition: all 0.3s ease;
}

.hover-glow:hover {
  border-color: #ff7a00;
  box-shadow: 0 0 10px rgba(255, 122, 0, 0.4);
  color: #ff7a00 !important;
  transform: translateY(-2px);
}

.hover-glow-green {
  color: #f8f9fa !important;
  transition: all 0.3s ease;
}

.hover-glow-green:hover {
  border-color: #ffffff;
  box-shadow: 0 0 10px #3e6f4d;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Sidebar da dashboard */
.sidebar {
  background: var(--bg-elev);
  border-right: 1px solid rgba(255, 255, 255, .06);
  width: 260px;
}

.sidebar .nav-link.active {
  background-color: rgba(255, 193, 7, 0.15);
  /* amarelo translúcido */
  border-left: 3px solid #ffc107;
  color: #ffc107;
  font-weight: 500;
}

.sidebar .nav-link {
  border-left: 3px solid transparent;
  border-radius: 0;
  color: var(--muted);
  padding: .75rem 1rem;
}

.sidebar .nav-link:hover {
  background: rgba(255, 255, 255, .03);
  color: var(--text);
}

.sidebar .nav-link.active {
  background: rgba(255, 122, 24, .08);
  border-left-color: var(--brand);
  color: var(--text);
  font-weight: 600;
}

.sidebar .nav-section {
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .06em;
  margin: 1rem 1rem .5rem;
  text-transform: uppercase;
}

.sidebar .nav-link.disabled {
  color: #6c757d !important;
  opacity: 0.6;
  pointer-events: none;
}

/* Layout responsivo */
@media (min-width: 992px) {
  .main-content {
    margin-left: 260px;
  }
}

/* Cards/KPIs */
.kpi {
  background: var(--bg-elev);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: .8rem;
}

.kpi .label {
  color: var(--muted);
  font-size: .85rem;
}

.kpi .value {
  font-size: 1.75rem;
  font-weight: 700;
}

.kpi .trend {
  font-size: .85rem;
}

/* Área de gráfico placeholder */
.chart-box {
  background: var(--bg-elev);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: .8rem;
  min-height: 320px;
}

/* Topbar da dashboard */
.topbar {
  background: linear-gradient(90deg, rgba(255, 122, 24, .15), transparent 40%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* Layout base: sidebar + conteúdo */
.app-shell {
  min-height: 100vh;
}

@media (min-width: 992px) {
  .app-shell {
    display: flex;
  }

  .app-shell .sidebar {
    flex: 0 0 260px;
    height: 100dvh;
    /* ocupa a altura inteira sem sobrepor */
    position: sticky;
    top: 0;
  }

  .app-shell .page {
    flex: 1 1 auto;
  }
}