/* ============================================================
   tabelas.css — Página de Indicadores (Painel de Inovação)
   Contém: título, barra de progresso, cards glassmorphism,
           tabelas, scrollbar e ícones de status.
   ============================================================ */

/* ============================================================
   Desativa scroll suave na página de tabelas
   ============================================================ */
.tabelas-page {
  scroll-behavior: auto;
}

/* ============================================================
   Barra de progresso
   ============================================================ */
.progress {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2rem;
  width: 50%;
  min-width: 250px;
  max-width: 400px;
  box-shadow: none;
}

.progress-bar {
  background: linear-gradient(90deg, #7c6ef0 0%, #04C4D9 100%);
  box-shadow: 0 0 10px rgba(4, 196, 217, 0.4);
  color: transparent;
  font-size: 0;
  height: 100%;
  border-radius: 6px;
  width: 0%;
  transition: width 1.5s ease-out;
  will-change: width;
  position: relative;
  z-index: 2;
}

/* ============================================================
   Cards glassmorphism
   ============================================================ */
.card.shadow-sm {
  background: rgba(10, 14, 40, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.04) inset !important;
  position: relative;
  overflow: hidden;
  color: var(--cor-texto) !important;
}

/* Fio de luz superior */
.card.shadow-sm::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(4, 196, 217, 0.3), transparent);
  pointer-events: none;
  z-index: 1;
}

.card-body {
  position: relative;
  z-index: 2;
}

/* ============================================================
   Título dos cards
   ============================================================ */
.card-title {
  font-size: var(--tipo-md) !important;
  font-family: var(--fonte-titulo) !important;
  font-weight: 700 !important;
  color: rgba(232, 231, 247, 0.88) !important;
  letter-spacing: 0.2px;
  margin-bottom: 1rem !important;
}

/* ============================================================
   Tabelas
   ============================================================ */
.table {
  color: var(--cor-texto) !important;
  font-size: var(--tipo-body) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.table-bordered > :not(caption) > * {
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.table-bordered > :not(caption) > * > * {
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.table thead {
  background-color: rgba(5, 7, 30, 0.7) !important;
}

.table thead th {
  font-size: var(--tipo-xs) !important;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(4, 196, 217, 0.15) !important;
  color: rgba(200, 198, 227, 0.65) !important;
}

.table tbody tr {
  border-color: rgba(255, 255, 255, 0.04) !important;
  transition: background 0.2s ease;
}

.table tbody tr:hover {
  background-color: rgba(4, 196, 217, 0.04) !important;
}

.table tbody td {
  padding: 9px 12px;
  vertical-align: middle;
  border-color: rgba(255, 255, 255, 0.04) !important;
}

/* ============================================================
   Scrollbar das tabelas
   ============================================================ */
.table-responsive {
  scrollbar-width: thin;
  scrollbar-color: rgba(4, 196, 217, 0.3) rgba(255, 255, 255, 0.04);
}

.table-responsive::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(4, 196, 217, 0.3);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(4, 196, 217, 0.5);
}

/* ============================================================
   Ícones de status
   ============================================================ */
.status-sim { color: #00db79; }
.status-nao { color: #ef4444; }

.bi-check2-all.text-success { color: #00db79 !important; }
.bi-x-lg.text-danger        { color: #ef4444 !important; }

/* ============================================================
   Estilo inline do ícone programado (amarelo)
   — extraído dos style="" inline das blades de tabelas
   ============================================================ */
.icone-programado {
  color: yellow;
}
