/* ============================================
   Pilot - Estilo básico (tema escuro geral)
   ============================================ */

body.bg-slate-900 {
  background: #020617;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Todo texto em tela escura fica claro */
body.bg-slate-900,
body.bg-slate-900 h1,
body.bg-slate-900 h2,
body.bg-slate-900 h3,
body.bg-slate-900 h4,
body.bg-slate-900 h5,
body.bg-slate-900 h6,
body.bg-slate-900 p,
body.bg-slate-900 span,
body.bg-slate-900 small,
body.bg-slate-900 strong,
body.bg-slate-900 th,
body.bg-slate-900 td,
body.bg-slate-900 .card,
body.bg-slate-900 .card-glass,
body.bg-slate-900 .sidebar-card {
  color: #e5e7eb;
}

/* Labels e textos “apagados” (text-muted) */
body.bg-slate-900 .form-label,
body.bg-slate-900 label {
  color: #e5e7eb !important;
}

body.bg-slate-900 .text-muted,
body.bg-slate-900 .text-secondary {
  color: #cbd5f5 !important; /* um pouco mais claro que o default */
}

/* Inputs, selects e textareas */
body.bg-slate-900 .form-control,
body.bg-slate-900 .form-select,
body.bg-slate-900 textarea {
  font-size: 0.85rem;
  color: #e5e7eb;
  background-color: #020617;
  border-color: #475569;
}

body.bg-slate-900 .form-control:focus,
body.bg-slate-900 .form-select:focus,
body.bg-slate-900 textarea:focus {
  color: #e5e7eb;
  background-color: #020617;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.7);
}

/* Placeholder mais clarinho, mas ainda visível */
body.bg-slate-900 .form-control::placeholder,
body.bg-slate-900 textarea::placeholder {
  color: #9ca3af;
}

/* Tabelas escuras */
body.bg-slate-900 .table-dark {
  color: #e5e7eb;
  background-color: #020617;
}

body.bg-slate-900 .table-dark th,
body.bg-slate-900 .table-dark td {
  color: #e5e7eb;
  border-color: #1f2937;
}

body.bg-slate-900 .table-dark thead th {
  color: #e5e7eb;
}

/* Botões: mantém as cores do Bootstrap, mas texto claro garantido */
body.bg-slate-900 .btn {
  font-size: 0.85rem;
  color: #e5e7eb;
}

body.bg-slate-900 .btn-primary {
  background-color: #2563eb;
  border-color: #1d4ed8;
}

body.bg-slate-900 .btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1e40af;
}

body.bg-slate-900 .btn-outline-info {
  color: #38bdf8;
  border-color: #38bdf8;
}

body.bg-slate-900 .btn-outline-info:hover {
  background-color: #38bdf8;
  color: #020617;
}

/* ============================
   Cards de vidro / layout
   ============================ */

.card-glass {
  border-radius: 1rem;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(37,99,235,0.18), transparent 55%),
    rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.3);
  box-shadow: 0 18px 40px rgba(15,23,42,.9);
  backdrop-filter: blur(18px);
}

.sidebar-card {
  border-radius: 1rem;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.3);
  box-shadow: 0 12px 30px rgba(15,23,42,.8);
}

.sidebar-title {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.brand-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,.5);
  border: 1px solid rgba(148,163,184,0.6);
  color: #e5e7eb;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #38bdf8, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-size: 1.5rem;
}

/* Status badges */
.badge-status {
  font-size: .75rem;
  border-radius: 999px;
  padding: .2rem .6rem;
}
.badge-status-active {
  background: rgba(34,197,94,0.12);
  color: #bbf7d0;
  border: 1px solid rgba(34,197,94,0.6);
}
.badge-status-planning {
  background: rgba(59,130,246,0.12);
  color: #bfdbfe;
  border: 1px solid rgba(59,130,246,0.6);
}
.badge-status-paused {
  background: rgba(234,179,8,0.12);
  color: #facc15;
  border: 1px solid rgba(234,179,8,0.6);
}

/* Project cards */
.project-card {
  border-radius: 1rem;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.3);
}

/* Phase card */
.phase-card {
  border-radius: 1rem;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.95);
  padding: 0.75rem 0.85rem;
  box-shadow: 0 14px 30px rgba(15,23,42,.85);
}

/* Footer */
footer {
  font-size: .8rem;
  color: #e5e7eb;
  background: #020617;
}

/* ============================
   Mapa mental (mind map)
   ============================ */

.mind-map-card {
  min-height: 400px;
}

.mind-map-scroll {
  overflow-x: auto;
  overflow-y: auto;
  padding: 1rem 0.5rem;
}

.mind-root {
  display: flex;
  justify-content: center;
}

.mind-node-card {
  background: rgba(8, 25, 60, 0.9);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(120, 186, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  color: #f9fafb;
}

.mind-root-card {
  border-width: 2px;
  border-color: #3b82f6;
}

.mind-node-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.mind-node-body {
  font-size: 0.8rem;
}

.mind-node-actions .btn-link {
  font-size: 0.85rem;
}

/* Estrutura da árvore */
.mind-level {
  list-style: none;
  margin: 0;
  padding-left: 1.5rem;
  position: relative;
}

.mind-level::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.4rem;
  border-left: 1px solid rgba(148, 163, 184, 0.5);
}

.mind-level > li {
  position: relative;
  margin-bottom: 0.8rem;
}

.mind-level > li::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: -0.05rem;
  width: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.5);
}

.mind-level-0 > li .mind-node-card {
  margin-top: 0.2rem;
}

/* Responsivo */
@media (max-width: 991.98px) {
  .mind-map-scroll {
    padding-bottom: 2rem;
  }
}
