/* Fever Base: fundo degradê (turquesa + azul) + botões luminosos + hover do menu
   Este arquivo é comum aos 2 temas (claro e escuro).
*/
:root{
  --bg-0:#050A12;
  --bg-1:#061A25;
  --bg-2:#030614;

  --teal:#00D2B9;
  --blue:#0091FF;

  --text-on-dark:#F2F6FF;
  --muted-on-dark:#A9B7C9;

  --shadow-strong: 0 22px 70px rgba(0,0,0,0.55);
  --ring: 0 0 0 1px rgba(255,255,255,0.10);
}

html, body{ height:100%; }

/* Fundo sempre no estilo do print (mais presença + toque de azul) */
body{
  background:
    radial-gradient(1100px 760px at 16% 18%, rgba(0, 210, 185, 0.44) 0%, rgba(0,0,0,0) 62%),
    radial-gradient(980px 680px at 76% 14%, rgba(0, 145, 255, 0.30) 0%, rgba(0,0,0,0) 66%),
    radial-gradient(900px 700px at 62% 88%, rgba(56, 189, 248, 0.18) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-0) 55%, var(--bg-2) 100%) !important;
  background-attachment: fixed !important;
}

/* Header + sidebar sempre escuros para combinar com o fundo */
.slim-header,
.slim-sidebar,
.sidebar,
.navbar,
.topbar,
.header{
  background: linear-gradient(180deg, rgba(7, 14, 26, 0.80) 0%, rgba(6, 11, 20, 0.70) 100%) !important;
  border-right: 1px solid rgba(255,255,255,0.10) !important;
  border-bottom: 1px solid rgba(255,255,255,0.10) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Tipografia do header/sidebar em branco */
.slim-header a,
.slim-sidebar a,
.sidebar a,
.nav-link,
.navbar-brand,
.slim-logo a{
  color: var(--text-on-dark) !important;
}

/* Título em degradê (presença no font) */
.page-title, .navbar-brand, .slim-logo a{
  background: linear-gradient(90deg, rgba(242,246,255,1) 0%, rgba(180,255,235,1) 40%, rgba(0,210,185,1) 72%, rgba(0,145,255,1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

/* Hover do menu lateral: degradê turquesa + azul com brilho, texto sempre visível */
.slim-sidebar .nav-sidebar .sidebar-nav-link,
.slim-sidebar .nav-sidebar .sidebar-nav-link *{
  color: var(--text-on-dark) !important;
}

.slim-sidebar .nav-sidebar .sidebar-nav-link{
  border-radius: 12px;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.slim-sidebar .nav-sidebar .sidebar-nav-link:hover{
  background: linear-gradient(135deg,
    rgba(0, 210, 185, 0.38) 0%,
    rgba(0, 145, 255, 0.30) 55%,
    rgba(0, 90, 180, 0.18) 100%) !important;
  box-shadow:
    0 14px 34px rgba(0,0,0,0.28),
    0 0 0 1px rgba(0, 210, 185, 0.26),
    0 0 28px rgba(0, 145, 255, 0.26) !important;
  transform: translateX(2px);
  text-shadow: 0 1px 0 rgba(0,0,0,0.40);
}

.slim-sidebar .nav-sidebar .sidebar-nav-link.active{
  background: linear-gradient(135deg,
    rgba(0, 210, 185, 0.42) 0%,
    rgba(0, 145, 255, 0.34) 55%,
    rgba(0, 90, 180, 0.22) 100%) !important;
  box-shadow:
    0 12px 30px rgba(0,0,0,0.24),
    0 0 0 1px rgba(0, 145, 255, 0.22),
    0 0 22px rgba(0, 210, 185, 0.20) !important;
}

/* Botões: manter cores originais porém em degradê e mais luminosos */
.btn{
  border: 1px solid rgba(255,255,255,0.10) !important;
}

.btn-success{
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 60%, #0F8F43 100%) !important;
  color: #07130C !important;
  box-shadow: 0 20px 54px rgba(34,197,94,0.32), 0 0 24px rgba(34,197,94,0.20) !important;
}

.btn-primary{
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 60%, #1D4ED8 100%) !important;
  color: #06101A !important;
  box-shadow: 0 20px 54px rgba(59,130,246,0.30), 0 0 24px rgba(59,130,246,0.18) !important;
}

.btn-danger{
  background: linear-gradient(135deg, #FB7185 0%, #EF4444 55%, #B91C1C 100%) !important;
  color: #1A0508 !important;
  box-shadow: 0 20px 54px rgba(239,68,68,0.28), 0 0 24px rgba(239,68,68,0.16) !important;
}

.btn-warning{
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 60%, #B45309 100%) !important;
  color: #140C02 !important;
  box-shadow: 0 18px 48px rgba(245,158,11,0.28), 0 0 22px rgba(245,158,11,0.16) !important;
}

.btn-info{
  background: linear-gradient(135deg, #67E8F9 0%, #06B6D4 60%, #0E7490 100%) !important;
  color: #041015 !important;
  box-shadow: 0 18px 48px rgba(6,182,212,0.28), 0 0 22px rgba(6,182,212,0.16) !important;
}

.btn-secondary{
  background: linear-gradient(135deg, #E2E8F0 0%, #94A3B8 60%, #475569 100%) !important;
  color: #0B1220 !important;
  box-shadow: 0 16px 40px rgba(148,163,184,0.18) !important;
}

/* Em muitos templates, o botão Entrar do login é btn-dark */
.btn-dark,
button#submit.btn.btn-dark{
  background: linear-gradient(135deg, #22C55E 0%, #16A34A 60%, #0F8F43 100%) !important;
  color: #07130C !important;
  box-shadow: 0 20px 54px rgba(34,197,94,0.32), 0 0 24px rgba(34,197,94,0.20) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
}

.btn:hover{
  filter: brightness(1.10) saturate(1.08) !important;
}

/* Evita flash branco do loader */
#loader{ background: transparent !important; }

/* Ajustes de contraste para o modo claro/escuro (evita textos sumidos) */
.sidebar-label{
  color: rgba(255,255,255,0.78) !important;
  text-shadow: 0 1px 0 rgba(0,0,0,0.45);
}

/* Em fundo escuro, classes "inverse" precisam ser claras */
.slim-mainpanel .tx-inverse,
.slim-mainpanel .tx-gray-900,
.slim-mainpanel .tx-gray-800,
.slim-mainpanel .tx-gray-700,
.slim-mainpanel .tx-gray-600{
  color: rgba(255,255,255,0.92) !important;
}

/* Dentro de cards claros, volta para texto escuro (somente modo claro) */
body.light-mode .card .tx-inverse,
body.light-mode .card .tx-gray-900,
body.light-mode .card .tx-gray-800,
body.light-mode .card .tx-gray-700,
body.light-mode .card .tx-gray-600{
  color: #0B1220 !important;
}

/* No modo escuro, cards permanecem com texto claro */
body.dark-mode .card .tx-inverse,
body.dark-mode .card .tx-gray-900,
body.dark-mode .card .tx-gray-800,
body.dark-mode .card .tx-gray-700,
body.dark-mode .card .tx-gray-600{
  color: rgba(255,255,255,0.92) !important;
}


/* ---- Login: toggle de senha (olho) + contraste (V1) ---- */
.password-field{ position: relative; }
.password-field .form-control{ padding-right: 44px; }

.password-toggle{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 6px;
  line-height: 1;
  cursor: pointer;
  outline: none;
}

.password-toggle i{
  font-size: 18px;
}

/* Modo claro: texto e ícone pretos (visíveis em input branco) */
body:not(.dark-mode) input[type="password"],
body:not(.dark-mode) #password{
  color: #0B1220 !important;
}
body:not(.dark-mode) .password-toggle i{
  color: #0B1220 !important;
  opacity: 0.75;
}
body:not(.dark-mode) input::placeholder{
  color: #64748b !important;
}

/* Modo escuro: mantém contraste claro */
body.dark-mode input[type="password"],
body.dark-mode #password{
  color: #F2F6FF !important;
}
body.dark-mode .password-toggle i{
  color: #F2F6FF !important;
  opacity: 0.80;
}

