:root{
  /* Paleta alinhada ao ConnectPr (base.css) */
  --primary-color: #0e2e71;
  --secondary-color: #1f4fa3;
  --success-color: #9ccc65;
  --lemon-green: #9ccc65;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #00b4d8;
  --dark-color: #2c3e50;
  --light-color: #f4f7fb;
  /* Ambiente: HML = azul claro, Produção = vermelho */
  --env-hml-bg: #0ea5e9;
  --env-prod-bg: #dc2626;
}

body{
  background-color: var(--light-color);
}

/* Stats/KPI em cards de módulo — tipografia mais refinada */
.main-content .fs-2.fw-bold,
.main-content .card .fs-2 { font-size: 1.35rem !important; font-weight: 600 !important; }
.main-content .fs-4.fw-bold,
.main-content .card .fs-4,
.main-content .sm-stat-card .fw-bold.fs-4 { font-size: 1.25rem !important; font-weight: 600 !important; }

/* Títulos de seção (Ferramentas do módulo, etc.) */
.main-content h2.h5,
.main-content .h5.fw-semibold { font-size: 0.95rem !important; font-weight: 600 !important; letter-spacing: 0.02em; color: #374151 !important; }

/* Cards de módulo — mais elegantes */
.main-content .card.border {
  border-radius: 10px;
  border-color: #e5e7eb !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.main-content .card.border:hover {
  box-shadow: 0 4px 12px rgba(14,46,113,0.08);
  border-color: #c7d2fe !important;
}
.main-content .card .h6 { font-size: 0.9rem !important; font-weight: 600 !important; }

/* ── Page headers: estilo elegante (Secret Manager) ───────────────────── */
.page-header {
  background: linear-gradient(135deg, #0e2e71 0%, #1a4fa8 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(14, 46, 113, 0.2);
}
.page-header h1,
.page-header h2,
.page-header h4 {
  color: #fff !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.35rem 0 !important;
  letter-spacing: 0.01em;
}
.page-header h1:last-child,
.page-header h2:last-child,
.page-header h4:last-child { margin-bottom: 0 !important; }
.page-header p,
.page-header .text-muted {
  color: rgba(255,255,255,0.82) !important;
  font-size: 0.8rem !important;
  margin: 0 !important;
  line-height: 1.45;
  font-weight: 400;
}
.page-header .em-icon-wrap,
.page-header .iam-shield-icon,
.page-header [class*="-icon-wrap"] {
  width: 40px !important;
  height: 40px !important;
  background: rgba(255,255,255,0.15) !important;
}
.page-header .em-icon-wrap i,
.page-header .iam-shield-icon i,
.page-header [class*="-icon-wrap"] i {
  color: #fff !important;
  font-size: 1.1rem !important;
}
.page-header .fs-3 { font-size: 1.1rem !important; }
.page-header .text-primary,
.page-header i.bi { color: rgba(255,255,255,0.95) !important; }
.page-header .btn-primary {
  background: #fff !important;
  color: #0e2e71 !important;
  border-color: #fff !important;
}
.page-header .btn-primary:hover {
  background: rgba(255,255,255,0.9) !important;
  color: #0e2e71 !important;
  border-color: rgba(255,255,255,0.9) !important;
}
.page-header .btn-outline-secondary {
  border-color: rgba(255,255,255,0.6) !important;
  color: #fff !important;
}
.page-header .btn-outline-secondary:hover {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.8) !important;
}

/* Sidebar: fonte moderna + degradê HD (premium) */
.sidebar{
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  position: relative;
  overflow: hidden;
  background: linear-gradient(168deg,
    #1e2d4a 0%,
    #162238 12%,
    #0f1929 28%,
    #0c1422 45%,
    #090e18 65%,
    #060a12 82%,
    #040710 100%);
  box-shadow: 4px 0 32px rgba(0, 0, 0, 0.35),
              2px 0 0 rgba(99, 102, 241, 0.08);
  will-change: width, transform;
}
/* Brilho sutil no topo (efeito HD / glass) */
.sidebar::before{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 140% 100% at 50% -30%, rgba(99, 102, 241, 0.18) 0%, rgba(59, 130, 246, 0.06) 35%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
/* Faixa de luz suave na borda esquerda */
.sidebar::after{
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.sidebar > *{
  position: relative;
  z-index: 1;
}
.sidebar .accordion-button,
.sidebar .nav-link{
  color: rgba(255, 255, 255, 0.92);
}
.sidebar .accordion-button:not(.collapsed),
.sidebar .nav-link:hover,
.sidebar .nav-link.active{
  color: #fff;
}
.sidebar .accordion-button::after{
  filter: invert(1);
  opacity: .9;
}
.sidebar .sidebar-brand{
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.sidebar .nav-link:hover{
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2) 0%, rgba(255, 255, 255, 0.06) 100%);
}
.sidebar .nav-link.active{
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.28) 0%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: inset 2px 0 0 rgba(255,255,255,0.35);
}
.sidebar .accordion-button:not(.collapsed){
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(255, 255, 255, 0.06) 100%);
}
.sidebar-mini-nav .mini-link:hover,
.sidebar-mini-nav .mini-link.active{
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(255, 255, 255, 0.1) 100%);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}
.sidebar-mini-nav .mini-sep{
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
}
.sidebar::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.5) 0%, rgba(99, 102, 241, 0.25) 100%);
  border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.65) 0%, rgba(99, 102, 241, 0.4) 100%);
}

.sidebar .sidebar-brand{
  padding: 1rem 1rem .75rem 1rem;
  text-align: center;
}

.sidebar .brand-logo-wrap{
  width: 100%;
  min-height: 56px;
}

.sidebar #adminBrandLogo{
  display: block;
  margin: 0 auto;
  transition: transform .22s ease, max-width .22s ease, filter .22s ease;
  transform-origin: center center;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.sidebar .brand-subtitle{
  margin-top: .35rem;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  transition: opacity .18s ease, transform .22s ease;
}

.sidebar .sidebar-accordion{
  padding: .25rem .25rem 1rem .25rem;
}

.sidebar .accordion-item{
  background: transparent;
  border: 0;
}

.sidebar .accordion-button{
  background: transparent;
  color: rgba(255,255,255,0.92);
  padding: .62rem .9rem;
  font-size: .89rem;
  font-weight: 600;
  border: 0;
  box-shadow: none;
}

.sidebar .accordion-button:not(.collapsed){
  background: rgba(255,255,255,0.10);
  color: #fff;
}

.sidebar .accordion-button::after{
  filter: invert(1);
  opacity: .85;
}

.sidebar .accordion-body{
  padding: 0;
}

.sidebar .nav-link{
  padding: .46rem .9rem;
  font-size: .86rem;
  position: relative;
  overflow: hidden;
}

.sidebar .nav-link::before{
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.06) 35%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.06) 65%,
    rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
  pointer-events: none;
  z-index: 0;
}

.sidebar .nav-link:hover::before{
  transform: translateX(100%);
}

.sidebar .nav-link i,
.sidebar .nav-link span{
  position: relative;
  z-index: 1;
}

.sidebar .nav-link i{
  width: 22px;
}

/* Efeito iluminação L→R nos títulos do accordion (Principal, Usuários, etc.) */
.sidebar .accordion-button{
  position: relative;
  overflow: hidden;
}

.sidebar .accordion-button::before{
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.06) 35%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0.06) 65%,
    rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
  pointer-events: none;
  z-index: 0;
}

.sidebar .accordion-button:hover::before{
  transform: translateX(100%);
}

.sidebar .accordion-button > span,
.sidebar .accordion-button::after{
  position: relative;
  z-index: 1;
}

.sidebar .nav-link.submenu{
  padding: .42rem 1.05rem .42rem 1.45rem;
  font-size: .8rem;
  opacity: .92;
}

.sidebar .nav-link.submenu i{
  font-size: 1.05rem;
  opacity: .95;
}

/* Sidebar colapsado (somente ícones) */
body.sidebar-collapsed{
  --sidebar-width: 78px;
}

body.sidebar-collapsed .sidebar-brand{
  padding: 0 0.5rem 1rem;
}

body.sidebar-collapsed #adminBrandLogo{
  max-width: 46px !important;
  transform: scale(0.95);
}

body.sidebar-collapsed .sidebar-brand small{
  display: none;
}

body.sidebar-collapsed .brand-subtitle{
  display: none;
}
body.sidebar-collapsed .brand-meta{
  display: none;
}

.sidebar .brand-meta{
  margin-top: .5rem;
  padding-top: .35rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: .56rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.sidebar .brand-meta-line{
  margin-bottom: .15rem;
}
.sidebar .brand-meta-line:last-child{
  margin-bottom: 0;
}
.sidebar .brand-meta-value{
  display: inline-block;
  padding-left: .5em;
}

/* Animação ao recolher/expandir (efeito "esticado") */
body.sidebar-animating .sidebar{
  transition: width .55s cubic-bezier(.2,.8,.2,1), transform .55s cubic-bezier(.2,.8,.2,1);
}

body.sidebar-animating:not(.sidebar-collapsed) .sidebar{
  transform: scaleX(1.01);
}

body.sidebar-animating.sidebar-collapsed .sidebar{
  transform: scaleX(0.99);
}

body.sidebar-animating .sidebar .sidebar-brand{
  transform: translateY(-1px);
}

body.sidebar-animating .sidebar #adminBrandLogo{
  filter: brightness(0) invert(1) drop-shadow(0 12px 20px rgba(0,0,0,0.2));
}

body.sidebar-collapsed .sidebar-full{
  display: none;
}

.sidebar-mini-nav{
  display: none;
  padding: .75rem .25rem 1rem .25rem;
  gap: .25rem;
}

body.sidebar-collapsed .sidebar-mini-nav{
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.sidebar-mini-nav .mini-link{
  display:flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  border-radius: 10px;
  color: rgba(255,255,255,0.92);
  text-decoration:none;
  transition: background .15s ease-in-out;
}

.sidebar-mini-nav .mini-link{
  position: relative;
  overflow: hidden;
}

.sidebar-mini-nav .mini-link::before{
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0.08) 60%,
    rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
  pointer-events: none;
  z-index: 0;
}

.sidebar-mini-nav .mini-link:hover{
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.sidebar-mini-nav .mini-link:hover::before{
  transform: translateX(100%);
}

.sidebar-mini-nav .mini-link i{
  position: relative;
  z-index: 1;
}

.sidebar-mini-nav .mini-link.active{
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.sidebar-mini-nav .mini-link i{
  font-size: 1.25rem;
}

/* Mini-nav: grupo com flyout (linha + marcadores transparentes) */
.sidebar-mini-nav .mini-group{
  position: relative;
}
.sidebar-mini-nav .mini-link-parent{
  cursor: pointer;
}
.sidebar-mini-nav .mini-flyout{
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 4px;
  min-width: 180px;
  padding: 0.5rem 0 0.5rem 0.75rem;
  background: rgba(30, 41, 59, 0.97);
  border-radius: 0 12px 12px 0;
  box-shadow: 4px 4px 20px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
  z-index: 1001;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.06);
}
.sidebar-mini-nav .mini-group.open .mini-flyout{
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
/* No modo colapsado o flyout visível é o do portal; o inline fica escondido */
body.sidebar-collapsed .sidebar-mini-nav .mini-group.open .mini-flyout{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Linha vertical sutil à esquerda do flyout */
.mini-flyout-line{
  position: absolute;
  left: 0;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.12) 20%, rgba(255,255,255,0.12) 80%, transparent 100%);
  border-radius: 1px;
}
/* Marcadores bem transparentes */
.mini-flyout-marker{
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  margin-right: 0.5rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.mini-flyout-item.active .mini-flyout-marker{
  background: rgba(255,255,255,0.6);
}
.mini-flyout-item{
  display: flex;
  align-items: center;
  padding: 0.4rem 0.5rem 0.4rem 0.25rem;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}
.mini-flyout-item:last-child{ margin-bottom: 0; }
.mini-flyout-item:hover{
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.mini-flyout-item.active{
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.mini-flyout-item-primary{
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 4px;
  padding-bottom: 6px;
}

/* Portal do flyout (sidebar recolhido): fora da sidebar; apenas ícones; links funcionam */
.sidebar-flyout-portal{
  position: fixed;
  z-index: 1060;
  pointer-events: none;
  display: none;
}
.sidebar-flyout-portal.is-open{
  pointer-events: auto;
}
.sidebar-flyout-portal.is-open .mini-flyout,
.sidebar-flyout-portal.is-open .mini-flyout-item{
  pointer-events: auto;
}
.sidebar-flyout-portal .mini-flyout{
  position: static;
  margin-left: 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  min-width: auto;
  padding: 0.4rem 0.5rem 0.4rem 0.6rem;
  background: linear-gradient(145deg, rgba(45, 55, 72, 0.28) 0%, rgba(30, 41, 59, 0.35) 100%) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  border-radius: 0 14px 14px 0;
}
/* No portal: ícone + nome ao lado; sem marcador */
.sidebar-flyout-portal .mini-flyout-marker{
  display: none;
}
.sidebar-flyout-portal .mini-flyout-label{
  display: inline;
  font-size: 0.875rem;
  white-space: nowrap;
}
.sidebar-flyout-portal .mini-flyout-item{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem 0.5rem 0.6rem;
  min-width: auto;
  justify-content: flex-start;
}
.sidebar-flyout-portal .mini-flyout-item i{
  font-size: 1.1rem;
  opacity: 0.95;
  flex-shrink: 0;
}
.sidebar-flyout-portal .mini-flyout{
  min-width: 160px;
}
.sidebar-flyout-portal .mini-flyout-line{
  top: 0.5rem;
  bottom: 0.5rem;
}

.sidebar-mini-nav .mini-sep{
  height: 1px;
  margin: .35rem .75rem;
  background: rgba(255,255,255,0.18);
}

.nav-link.active{
  background: rgba(255,255,255,0.18);
}

.stat-card-icon.primary,
.stat-card-icon.bg-primary{
  background: rgba(14, 46, 113, 0.10) !important;
  color: var(--primary-color) !important;
}

.stat-card-icon.success,
.stat-card-icon.bg-success{
  background: rgba(156, 204, 101, 0.25) !important;
  color: #33691e !important;
}

/* ========== Cards KPI com gradiente e mini-gráfico (estilo vivo) ========== */
.stat-card-gradient {
  position: relative;
  overflow: hidden;
  border: none;
  color: #fff;
  padding: 1.5rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.stat-card-gradient h6 {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.stat-card-gradient .stat-card-icon {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  margin-bottom: 0.75rem;
}
.stat-card-gradient h3,
.stat-card-gradient h3 .counter-value {
  color: #fff !important;
  font-size: 1.75rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.stat-card-gradient p,
.stat-card-gradient p.small,
.stat-card-gradient .text-muted {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.8rem;
}
.stat-card-gradient .trend,
.stat-card-gradient .text-muted {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.8rem;
}
.stat-card-gradient .trend.up { color: rgba(255, 255, 255, 0.95) !important; }
.stat-card-gradient .trend.down { color: rgba(255, 255, 255, 0.85) !important; }

/* Linha de cards KPI: mesma altura para os 4 */
.stat-cards-row .col-md-3 { display: flex; }
.stat-cards-row .col-md-3 > .stat-card { flex: 1; }

/* Ícone de interrogação (tooltip) em cards e gráficos – pequeno, discreto */
.metric-tooltip-trigger{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  font-size: 0.8rem;
  opacity: 0.82;
  cursor: help;
  margin-left: 0.35rem;
  vertical-align: middle;
  border-radius: 50%;
  transition: opacity 0.2s;
}
.metric-tooltip-trigger:hover{ opacity: 1; }
.stat-card-gradient .metric-tooltip-trigger{ color: rgba(255,255,255,0.9); }
.table-card .metric-tooltip-trigger{ color: #64748b; }
.table-card .metric-tooltip-trigger:hover{ color: #475569; }
/* Mini-gráfico decorativo (barras) */
.stat-card-chart {
  height: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 3px;
  padding: 0 1rem 0.75rem;
  opacity: 0.35;
}
/* No card com gradiente: gráfico no fluxo do flex, colado no rodapé */
.stat-card-gradient .stat-card-chart {
  position: relative;
  margin-top: auto;
  flex-shrink: 0;
}
.stat-card:not(.stat-card-gradient) .stat-card-chart {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.stat-card-chart span {
  display: block;
  width: 6px;
  min-height: 8px;
  border-radius: 4px 4px 0 0;
  background: rgba(255, 255, 255, 0.9);
  transform-origin: bottom;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
/* Hover no card: destaque + animação sutil nos mini-gráficos */
.stat-card-gradient {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card-gradient:hover {
  transform: translateY(-6px);
}
.stat-card-gradient:hover .stat-card-chart {
  opacity: 0.6;
}
.stat-card-gradient:hover .stat-card-chart span {
  animation: chartBarPulse 0.55s ease;
}
.stat-card-gradient .stat-card-chart span:nth-child(1){ animation-delay: 0.02s; }
.stat-card-gradient .stat-card-chart span:nth-child(2){ animation-delay: 0.05s; }
.stat-card-gradient .stat-card-chart span:nth-child(3){ animation-delay: 0.08s; }
.stat-card-gradient .stat-card-chart span:nth-child(4){ animation-delay: 0.11s; }
.stat-card-gradient .stat-card-chart span:nth-child(5){ animation-delay: 0.14s; }
.stat-card-gradient .stat-card-chart span:nth-child(6){ animation-delay: 0.17s; }
.stat-card-gradient .stat-card-chart span:nth-child(7){ animation-delay: 0.2s; }
.stat-card-gradient .stat-card-chart span:nth-child(8){ animation-delay: 0.23s; }
@keyframes chartBarPulse {
  0% { transform: scaleY(1); }
  45% { transform: scaleY(1.2); }
  100% { transform: scaleY(1); }
}
/* Gradientes por tipo de card */
.stat-card-gradient.stat-card-users {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.35);
}
.stat-card-gradient.stat-card-users .stat-card-chart span:nth-child(1){ height: 18px; }
.stat-card-gradient.stat-card-users .stat-card-chart span:nth-child(2){ height: 28px; }
.stat-card-gradient.stat-card-users .stat-card-chart span:nth-child(3){ height: 22px; }
.stat-card-gradient.stat-card-users .stat-card-chart span:nth-child(4){ height: 35px; }
.stat-card-gradient.stat-card-users .stat-card-chart span:nth-child(5){ height: 24px; }
.stat-card-gradient.stat-card-users .stat-card-chart span:nth-child(6){ height: 32px; }
.stat-card-gradient.stat-card-users .stat-card-chart span:nth-child(7){ height: 26px; }
.stat-card-gradient.stat-card-users .stat-card-chart span:nth-child(8){ height: 38px; }
.stat-card-gradient.stat-card-users:hover { box-shadow: 0 16px 44px rgba(79, 70, 229, 0.45); }

.stat-card-gradient.stat-card-revenue {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.35);
}
.stat-card-gradient.stat-card-revenue .stat-card-chart span { background: rgba(255,255,255,0.85); }
.stat-card-gradient.stat-card-revenue .stat-card-chart span:nth-child(1){ height: 24px; }
.stat-card-gradient.stat-card-revenue .stat-card-chart span:nth-child(2){ height: 30px; }
.stat-card-gradient.stat-card-revenue .stat-card-chart span:nth-child(3){ height: 26px; }
.stat-card-gradient.stat-card-revenue .stat-card-chart span:nth-child(4){ height: 36px; }
.stat-card-gradient.stat-card-revenue .stat-card-chart span:nth-child(5){ height: 32px; }
.stat-card-gradient.stat-card-revenue .stat-card-chart span:nth-child(6){ height: 28px; }
.stat-card-gradient.stat-card-revenue .stat-card-chart span:nth-child(7){ height: 34px; }
.stat-card-gradient.stat-card-revenue .stat-card-chart span:nth-child(8){ height: 22px; }
.stat-card-gradient.stat-card-revenue:hover { box-shadow: 0 16px 44px rgba(5, 150, 105, 0.45); }

.stat-card-gradient.stat-card-consultations {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.35);
}
.stat-card-gradient.stat-card-consultations .stat-card-chart span { background: rgba(255,255,255,0.9); }
.stat-card-gradient.stat-card-consultations .stat-card-chart span:nth-child(1){ height: 20px; }
.stat-card-gradient.stat-card-consultations .stat-card-chart span:nth-child(2){ height: 26px; }
.stat-card-gradient.stat-card-consultations .stat-card-chart span:nth-child(3){ height: 34px; }
.stat-card-gradient.stat-card-consultations .stat-card-chart span:nth-child(4){ height: 28px; }
.stat-card-gradient.stat-card-consultations .stat-card-chart span:nth-child(5){ height: 38px; }
.stat-card-gradient.stat-card-consultations .stat-card-chart span:nth-child(6){ height: 30px; }
.stat-card-gradient.stat-card-consultations .stat-card-chart span:nth-child(7){ height: 24px; }
.stat-card-gradient.stat-card-consultations .stat-card-chart span:nth-child(8){ height: 32px; }
.stat-card-gradient.stat-card-consultations:hover { box-shadow: 0 16px 44px rgba(217, 119, 6, 0.45); }

.stat-card-gradient.stat-card-ticket {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #22d3ee 100%);
  box-shadow: 0 10px 30px rgba(8, 145, 178, 0.35);
}
.stat-card-gradient.stat-card-ticket .stat-card-chart span { background: rgba(255,255,255,0.9); }
.stat-card-gradient.stat-card-ticket .stat-card-chart span:nth-child(1){ height: 28px; }
.stat-card-gradient.stat-card-ticket .stat-card-chart span:nth-child(2){ height: 22px; }
.stat-card-gradient.stat-card-ticket .stat-card-chart span:nth-child(3){ height: 36px; }
.stat-card-gradient.stat-card-ticket .stat-card-chart span:nth-child(4){ height: 30px; }
.stat-card-gradient.stat-card-ticket .stat-card-chart span:nth-child(5){ height: 26px; }
.stat-card-gradient.stat-card-ticket .stat-card-chart span:nth-child(6){ height: 34px; }
.stat-card-gradient.stat-card-ticket .stat-card-chart span:nth-child(7){ height: 20px; }
.stat-card-gradient.stat-card-ticket .stat-card-chart span:nth-child(8){ height: 32px; }
.stat-card-gradient.stat-card-ticket:hover { box-shadow: 0 16px 44px rgba(8, 145, 178, 0.45); }

.btn-primary{
  background: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-primary:hover,
.btn-primary:focus{
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline-primary{
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus{
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* ========== Tabelas estilo Products History ========== */
.table-card {
  background: #fff;
  background-image: linear-gradient(180deg, #faf5ff 0%, #fff 12%, #fff 88%, #faf5ff 100%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.table-card .table {
  margin-bottom: 0;
}
.table-card .table thead th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 1.25rem;
}
.table-card .table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}
.table-card .table tbody tr:last-child td {
  border-bottom: 0;
}
.table-card .table tbody tr:hover {
  background: rgba(248, 250, 252, 0.8);
}
.table-card .table a:not(.btn) {
  color: #4f46e5;
  font-weight: 500;
}
.table-card .table a:not(.btn):hover {
  text-decoration: underline;
}
.table-card .p-4.border-bottom {
  border-bottom-color: #e2e8f0 !important;
}

/* Balões/badges em degradê (Atividades Recentes – cara HD) */
.badge-gradient-action {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%) !important;
  color: #fff !important;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}
.badge-gradient-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%) !important;
  color: #fff !important;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}
.badge-gradient-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%) !important;
  color: #fff !important;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}
.badge-gradient-warning {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%) !important;
  color: #fff !important;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

/* ========== Status do Sistema – badges e barras em degradê HD ========== */
.status-badge {
  border: none;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.status-badge-online,
.status-badge-count {
  background: linear-gradient(135deg, #059669 0%, #10b981 45%, #34d399 100%) !important;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.4);
}
.status-badge-admins {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%) !important;
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.4);
}
.status-progress-wrap {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.status-progress {
  border-radius: 999px;
  transition: width 0.4s ease;
}
.status-progress-online {
  background: linear-gradient(90deg, #059669 0%, #10b981 50%, #34d399 100%) !important;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.35);
}
.status-progress-count {
  background: linear-gradient(90deg, #059669 0%, #10b981 50%, #34d399 100%) !important;
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.35);
}
.status-icon-db,
.status-icon-svc {
  color: #059669 !important;
}
.status-icon-admins {
  color: #1e40af !important;
}

/* Flags de status em tabelas: verde limão / vermelho / amarelo em todos os badges */
.table .badge.bg-success {
  background: linear-gradient(135deg, #7cb342 0%, #9ccc65 50%, #aed581 100%) !important;
  color: #fff !important;
  border: none;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(124, 179, 66, 0.3);
}
.table .badge.bg-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%) !important;
  color: #fff !important;
  border: none;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}
.table .badge.bg-warning {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%) !important;
  color: #1f2937 !important;
  border: none;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.btn-gradient-logs {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
}
.btn-gradient-logs:hover {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

/* Toggle HML/PROD: HML azul degradê, PROD vermelho degradê; ativo mostra "Ativo" */
.dataenv-toggle {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #fff;
}
.dataenv-btn {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.dataenv-btn:first-child {
  border-radius: 999px 0 0 999px;
}
.dataenv-btn:last-child {
  border-radius: 0 999px 999px 0;
}
.dataenv-hml.active {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
  color: #fff;
}
.dataenv-hml:not(.active):hover {
  background: rgba(59, 130, 246, 0.1);
  color: #1e40af;
}
.dataenv-prod.active {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ef4444 100%);
  color: #fff;
}
.dataenv-prod:not(.active):hover {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

/* Busca na página: linhas ocultas */
.search-hidden { display: none !important; }

/* Botão Exportar tabela (degradê) */
.btn-export-table {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-weight: 500;
  font-size: 0.85rem;
}
.btn-export-table:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* Paginação padronizada (degradê, layout único) */
.pagination {
  gap: 0.25rem;
}
.pagination .page-item .page-link {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  padding: 0.4rem 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
}
.pagination .page-item .page-link:hover {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.08) 0%, rgba(59, 130, 246, 0.12) 100%);
  border-color: #93c5fd;
  color: #1e40af;
}
.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  border-color: transparent;
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
}
.pagination .page-item:not(:first-child) .page-link { margin-left: 0; }

/* Barras horizontais (Features / Serviços mais usados) – degradê */
.progress-bar-glow {
  background: rgba(226, 232, 240, 0.8);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-gradient {
  background: linear-gradient(90deg, #1e40af 0%, #4f46e5 25%, #7c3aed 50%, #a855f7 75%, #ec4899 100%) !important;
  border-radius: 999px;
  transition: width 0.5s ease-out;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.35);
}

/* ========== Meu Perfil – degradê e alinhamento à nova visão ========== */
.profile-card-gradient {
  border-radius: 14px;
  background: #fff;
  background-image: linear-gradient(180deg, rgba(79, 70, 229, 0.06) 0%, #fff 18%, #fff 82%, rgba(5, 150, 105, 0.05) 100%);
  border: 1px solid rgba(79, 70, 229, 0.12);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
}
.profile-avatar-wrap {
  width: 112px;
  height: 112px;
}
.profile-avatar-img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 4px solid rgba(79, 70, 229, 0.2);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.2);
}
.profile-avatar-placeholder {
  width: 112px;
  height: 112px;
  font-size: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}
.btn-profile-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-profile-primary:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.45);
}
.btn-profile-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-profile-success:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.45);
}
.btn-profile-link {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(99, 102, 241, 0.12) 100%);
  color: #4f46e5 !important;
  border: 1px solid rgba(79, 70, 229, 0.25);
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
}
.btn-profile-link:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  color: #fff !important;
  border-color: transparent;
}
.badge-profile-role {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%) !important;
  color: #fff !important;
  border: none;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}
.badge-profile-action {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%) !important;
  color: #fff !important;
  border: none;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.8rem;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}
.profile-hr {
  border-color: rgba(79, 70, 229, 0.12);
}
.profile-details .profile-icon {
  color: #4f46e5;
}
.profile-action-card {
  border-radius: 14px;
  min-height: 160px;
  transition: box-shadow 0.2s;
}
.profile-action-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}
.profile-card-password {
  background: #fff;
  background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.04) 0%, #fff 40%, rgba(99, 102, 241, 0.03) 100%);
  border: 1px solid rgba(79, 70, 229, 0.12);
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.06);
}
.profile-card-2fa {
  background: #fff;
  background-image: linear-gradient(135deg, rgba(5, 150, 105, 0.04) 0%, #fff 40%, rgba(16, 185, 129, 0.03) 100%);
  border: 1px solid rgba(5, 150, 105, 0.12);
  box-shadow: 0 2px 12px rgba(5, 150, 105, 0.06);
}
.profile-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.profile-action-icon-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}
.profile-action-icon-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}
.profile-action-icon-warning {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}
.profile-action-sub {
  color: #64748b;
}
.fw-600 {
  font-weight: 600;
}

/* Modal Desativar 2FA – alinhado à nova visão */
#disable2faModal .modal-content {
  border-radius: 14px;
  border: 1px solid rgba(220, 38, 38, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
#disable2faModal .modal-header {
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.6) 0%, #fff 100%);
}
#disable2faModal .btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
  border: none;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35);
}
#disable2faModal .btn-danger:hover {
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.45);
}

/* ========== Modal Selecionar projeto – fundo mais claro, quase transparente, azul royal ========== */
.gcp-project-modal .modal-backdrop {
  background: rgba(100, 116, 139, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gcp-project-modal-content {
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.97) 0%, rgba(241, 245, 249, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 46, 113, 0.12);
  border-radius: 14px;
  color: #1e293b;
  box-shadow: 0 12px 40px rgba(14, 46, 113, 0.08), 0 0 0 1px rgba(14, 46, 113, 0.06) inset;
}
.gcp-project-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(14, 46, 113, 0.12);
}
.gcp-project-modal-header .modal-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #0e2e71;
  margin: 0;
}
.gcp-project-modal-icon {
  color: #64748b !important;
  font-size: 1.25rem;
  padding: 0.35rem;
}
.gcp-project-modal-icon:hover { color: #0e2e71 !important; }
.gcp-project-modal-new {
  background: var(--primary-color, #0e2e71) !important;
  border: none;
  color: #fff !important;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 8px;
}
.gcp-project-modal-new:hover { background: var(--secondary-color, #1f4fa3) !important; color: #fff !important; }
.gcp-project-modal-body { padding: 1rem 1.5rem; }
.gcp-project-search-wrap {
  position: relative;
  margin-bottom: 1rem;
}
.gcp-project-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
  pointer-events: none;
}
.gcp-project-search {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(14, 46, 113, 0.15);
  border-radius: 8px;
  color: #1e293b;
  font-size: 0.95rem;
}
.gcp-project-search::placeholder { color: #94a3b8; }
.gcp-project-search:focus {
  outline: none;
  border-color: var(--primary-color, #0e2e71);
  box-shadow: 0 0 0 2px rgba(14, 46, 113, 0.2);
}
.gcp-project-tabs {
  border-bottom: 1px solid rgba(14, 46, 113, 0.12);
  margin-bottom: 1rem;
  gap: 0;
}
.gcp-project-tabs .nav-link {
  color: #64748b;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: transparent;
  margin-bottom: -1px;
  border-radius: 0;
}
.gcp-project-tabs .nav-link:hover { color: #0e2e71; }
.gcp-project-tabs .nav-link.active {
  color: #0e2e71;
  border-bottom-color: #0e2e71;
  font-weight: 500;
}
.gcp-project-table-wrap {
  max-height: 320px;
  overflow: auto;
  border: 1px solid rgba(14, 46, 113, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}
.gcp-project-table { color: #1e293b; }
.gcp-project-table thead th {
  background: rgba(14, 46, 113, 0.06);
  color: #475569;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(14, 46, 113, 0.1);
}
.gcp-project-th-check { width: 36px; }
.gcp-project-th-name { width: 42%; }
.gcp-project-th-type { width: 22%; }
.gcp-project-th-id { width: 22%; }
.gcp-project-th-star { width: 5%; text-align: center; }
.gcp-project-modal .text-primary { color: #0e2e71 !important; }
.gcp-project-row {
  cursor: pointer;
  transition: background 0.15s;
}
.gcp-project-row:hover { background: rgba(14, 46, 113, 0.06); }
.gcp-project-row.selected { background: rgba(14, 46, 113, 0.12); }
.gcp-project-row td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(14, 46, 113, 0.06);
  vertical-align: middle;
}
.gcp-project-row:last-child td { border-bottom: 0; }
.gcp-project-td-check { text-align: center; }
.gcp-project-td-check .bi-check-circle-fill { font-size: 1.1rem; color: #0e2e71 !important; }
.gcp-project-td-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gcp-project-row-icon { color: #64748b; font-size: 1.15rem; }
.gcp-project-info-icon { color: #94a3b8; font-size: 0.85rem; }
.gcp-project-link {
  color: #0e2e71;
  text-decoration: none;
  font-weight: 500;
}
.gcp-project-link:hover { color: #1f4fa3; text-decoration: underline; }
.gcp-project-td-type { color: #64748b; font-size: 0.9rem; }
.gcp-project-td-id code {
  background: rgba(14, 46, 113, 0.08);
  color: #475569;
  font-size: 0.85rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
.gcp-project-td-star { color: #94a3b8; }
.gcp-project-star { font-size: 1rem; cursor: pointer; }
.gcp-project-star:hover { color: #0e2e71; }
.gcp-project-star.starred { color: #f2c83d; fill: #f2c83d; }
.gcp-project-delete {
  color: rgba(248, 113, 113, 0.8) !important;
  opacity: 0.85;
}
.gcp-project-delete:hover {
  color: #f87171 !important;
  opacity: 1;
}
.gcp-project-delete:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.gcp-project-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(14, 46, 113, 0.12);
  display: flex;
  justify-content: flex-end;
}
.gcp-project-btn-cancel {
  background: rgba(14, 46, 113, 0.08) !important;
  border: 1px solid rgba(14, 46, 113, 0.2) !important;
  color: #0e2e71 !important;
  border-radius: 8px;
}
.gcp-project-btn-cancel:hover {
  background: rgba(14, 46, 113, 0.12) !important;
  color: #0e2e71 !important;
  border-color: rgba(14, 46, 113, 0.3) !important;
}
.project-select-trigger:hover { background: rgba(0,0,0,0.05); border-radius: 6px; }

/* Modal Criar projeto: labels e mensagens legíveis */
.gcp-project-modal .form-label { color: #1e293b; }
.gcp-project-modal .form-text { color: #64748b; }
.gcp-project-modal #createProjectMessage.text-success { color: #059669 !important; }
.gcp-project-modal #createProjectMessage.text-warning { color: #d97706 !important; }
.gcp-project-modal .btn-close-white { filter: none; opacity: 0.7; color: #64748b; }

/* ========== App Modal (substitui alert/confirm) ========== */
.app-modal.show { z-index: 1070 !important; }
.app-modal .modal-dialog { max-width: 420px; }
.app-modal-content {
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: none;
}
.app-modal-icon-wrap {
  display: flex;
  justify-content: center;
  padding-top: 1.75rem;
}
.app-modal-icon {
  font-size: 3rem;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-modal-icon.alert-info { color: var(--info-color); background: rgba(0, 180, 216, 0.12); }
.app-modal-icon.alert-success { color: var(--success-color); background: rgba(108, 217, 111, 0.15); }
.app-modal-icon.alert-warning { color: var(--warning-color); background: rgba(245, 158, 11, 0.15); }
.app-modal-icon.alert-danger { color: var(--danger-color); background: rgba(239, 68, 68, 0.12); }
.app-modal-icon.confirm { color: var(--primary-color); background: rgba(14, 46, 113, 0.08); }
.app-modal-header { padding-top: 0.5rem; }
.app-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-color);
  text-align: center;
}
.app-modal-body {
  padding: 0 1.5rem 1rem;
  text-align: center;
}
.app-modal-message {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
}
.app-modal-footer { padding: 0 1.5rem 1.5rem; }
.app-modal-btn-ok {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 10px;
  min-width: 100px;
}
.app-modal-btn-ok:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #fff;
}
.app-modal-btn-cancel {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
}
.app-modal-btn-cancel:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #374151;
}
.app-modal.app-modal-alert .app-modal-btn-cancel { display: none; }

/* ========== Badges: Ativo (verde limão) e Ambiente (HML azul / Produção vermelho) ========== */
.badge.bg-success,
.badge.bg-success-lemon {
  background: linear-gradient(135deg, #7cb342 0%, #9ccc65 50%, #aed581 100%) !important;
  color: #fff !important;
}
.badge.badge-env-hml {
  background: var(--env-hml-bg) !important;
  color: #fff !important;
}
.badge.badge-env-prod {
  background: var(--env-prod-bg) !important;
  color: #fff !important;
}
.card-header.bg-success,
.card-header.bg-success.bg-opacity-10 {
  background: rgba(156, 204, 101, 0.15) !important;
}

/* ========== Correções de estados (hover/click/focus) ========== */
.btn:active,
.btn.active,
.btn.show {
  transform: none !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-check:checked + .btn-primary {
  color: #fff !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-check:checked + .btn-outline-primary {
  color: #fff !important;
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary.active,
.btn-check:checked + .btn-outline-secondary {
  color: #fff !important;
  background: #64748b !important;
  border-color: #64748b !important;
}

.gcp-project-tabs .nav-link:focus,
.gcp-project-tabs .nav-link:active,
.gcp-project-tabs .nav-link.active {
  color: #0e2e71 !important;
}

