/* Fever Dark: versão escura (anterior). Ativa quando body tem .dark-mode */

/* Tema escuro: fundo com mix preto + cinza + branco */
body.dark-mode.fever-body-bg,
body.dark-mode{
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.00) 55%),
    radial-gradient(circle at 82% 28%, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.00) 60%),
    linear-gradient(135deg, #06080F 0%, #1F2631 52%, #0B0F19 100%) !important;
}

/* Navbar e realces com o degrade do WhatsApp */
body.dark-mode .slim-navbar{
  background: linear-gradient(90deg, #1E7BFF 0%, #6A35FF 55%, #FF5BAA 100%) !important;
}


body.dark-mode{
  color: #F2F6FF !important;
}

body.dark-mode small,
body.dark-mode label,
body.dark-mode .text-muted,
body.dark-mode .tx-color-03,
body.dark-mode .tx-gray-600,
body.dark-mode .tx-gray-700,
body.dark-mode .tx-gray-800,
body.dark-mode .form-text,
body.dark-mode .help-block{
  color: #A9B7C9 !important;
}

/* Cards e superfícies escuras */
body.dark-mode .card,
body.dark-mode .card-body,
body.dark-mode .card-header,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu,
body.dark-mode .content,
body.dark-mode .content-body,
body.dark-mode .mainpanel,
body.dark-mode .panel,
body.dark-mode .box,
body.dark-mode .signin-box{
  background: linear-gradient(180deg, rgba(12, 22, 38, 0.86) 0%, rgba(7, 12, 22, 0.80) 100%) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 18px 55px rgba(0,0,0,0.55) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.dark-mode .card-header,
body.dark-mode .modal-header{
  background: linear-gradient(180deg, rgba(10, 18, 34, 0.72) 0%, rgba(7, 12, 22, 0.64) 100%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.10) !important;
}

/* Inputs escuros */
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea,
body.dark-mode .form-control,
body.dark-mode .custom-select{
  color: #F2F6FF !important;
  background: rgba(6, 12, 24, 0.78) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}

body.dark-mode .form-control:focus,
body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus{
  border-color: rgba(65, 91, 240, 0.60) !important;
  box-shadow: 0 0 0 0.22rem rgba(65, 91, 240, 0.18) !important;
}

/* Tabelas escuras */
body.dark-mode table,
body.dark-mode .table{
  color: #F2F6FF !important;
  background: rgba(6, 12, 24, 0.55) !important;
}

body.dark-mode table thead th,
body.dark-mode .table thead th{
  background: rgba(8, 14, 26, 0.86) !important;
  color: #F2F6FF !important;
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
}

body.dark-mode table td,
body.dark-mode table th,
body.dark-mode .table td,
body.dark-mode .table th{
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd){
  background: rgba(255,255,255,0.03) !important;
}

body.dark-mode .table-hover tbody tr:hover{
  background: rgba(65, 91, 240, 0.10) !important;
}

/* DataTables */
body.dark-mode .dataTables_wrapper .dataTables_filter input,
body.dark-mode .dataTables_wrapper .dataTables_length select{
  color: #F2F6FF !important;
  background: rgba(6, 12, 24, 0.78) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}

body.dark-mode .dataTables_wrapper .dataTables_info,
body.dark-mode .dataTables_wrapper .dataTables_paginate{
  color: #A9B7C9 !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button{
  color: #F2F6FF !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current{
  background: rgba(65, 91, 240, 0.18) !important;
  border-color: rgba(65, 91, 240, 0.28) !important;
}


/* Brand buttons (azul + roxo + rosa) */
.btn-primary, .btn-fever-primary{
  background: linear-gradient(90deg, #1E7BFF 0%, #6A35FF 55%, #FF5BAA 100%) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(0,0,0,0.28);
}
.btn-primary:hover, .btn-fever-primary:hover{
  filter: brightness(1.06);
}
.btn-primary:focus{
  box-shadow: 0 0 0 4px rgba(65,91,240,0.20) !important;
}

/* (removido) fundo fixo antigo para o tema escuro */

/* Paleta WhatsApp: sidebar e botões (tema escuro) */
body.dark-mode .sidebar-nav-link i{
  color: rgba(234, 241, 255, 0.80);
}
body.dark-mode .sidebar-nav-link:hover,
body.dark-mode .sidebar-nav-link:focus{
  background-color: rgba(30, 123, 255, 0.10);
}
body.dark-mode .sidebar-nav-link.active{
  background-color: #1E7BFF;
  background-image: linear-gradient(to right, #1E7BFF 0%, #6A35FF 55%, #FF5BAA 100%);
  color: #fff;
}
body.dark-mode .sidebar-nav-link.active i{
  color: #fff;
}

body.dark-mode .btn-primary,
body.dark-mode .btn-fever-primary{
  background-image: linear-gradient(135deg, #1E7BFF 0%, #6A35FF 55%, #FF5BAA 100%) !important;
  border: 0 !important;
  color: #fff !important;
}
body.dark-mode .btn-primary:hover,
body.dark-mode .btn-fever-primary:hover{
  filter: brightness(1.05);
}
body.dark-mode .btn-primary:focus{
  box-shadow: 0 0 0 4px rgba(106,53,255,0.22) !important;
}
