
/*
 * v6.5.4 — Premium Consistent UI
 * Visual premium claro, sidebar elegante, hero gradient e contraste corrigido.
 */

:root{
  --pc-bg:#f4f7fb;
  --pc-card:#ffffff;
  --pc-text:#0f172a;
  --pc-muted:#64748b;
  --pc-border:#e5eaf2;
  --pc-primary:#2563eb;
  --pc-primary-2:#1d4ed8;
  --pc-purple:#7c3aed;
  --pc-green:#16a34a;
  --pc-red:#dc2626;
  --pc-orange:#f97316;
  --pc-sidebar:#0f172a;
  --pc-sidebar-2:#111827;
  --pc-shadow:0 14px 36px rgba(15,23,42,.08);
  --pc-shadow-lg:0 24px 70px rgba(15,23,42,.14);
}

html,body{
  background:linear-gradient(180deg,#f8fbff,#f4f7fb)!important;
  color:var(--pc-text)!important;
}

.app-shell,.ip-app-shell,.app-main,.main-content,#app-content,.content,.ip-content{
  background:
    radial-gradient(circle at 8% 0%,rgba(37,99,235,.08),transparent 30%),
    radial-gradient(circle at 94% 0%,rgba(124,58,237,.06),transparent 28%),
    linear-gradient(180deg,#f8fbff,#f4f7fb)!important;
  color:var(--pc-text)!important;
}

#app-sidebar,.app-sidebar,.sidebar{
  background:linear-gradient(180deg,var(--pc-sidebar),var(--pc-sidebar-2))!important;
  border-right:1px solid rgba(255,255,255,.08)!important;
  color:#e5e7eb!important;
  box-shadow:16px 0 45px rgba(15,23,42,.12)!important;
}

#app-sidebar a,.app-sidebar a,.sidebar a,.menu-link,.nav-link{
  color:#cbd5e1!important;
  border-radius:16px!important;
  font-weight:850!important;
}

#app-sidebar a:hover,.app-sidebar a:hover,.sidebar a:hover,.menu-link:hover,.nav-link:hover{
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
}

#app-sidebar a.active,.app-sidebar a.active,.sidebar a.active,.menu-link.active,.nav-link.active{
  background:linear-gradient(135deg,var(--pc-primary),var(--pc-purple))!important;
  color:#fff!important;
  box-shadow:0 14px 34px rgba(37,99,235,.30)!important;
}

.app-header,.topbar,.ip-topbar,.header{
  background:rgba(255,255,255,.94)!important;
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(226,232,240,.95)!important;
  box-shadow:0 8px 28px rgba(15,23,42,.05)!important;
  color:var(--pc-text)!important;
}

.ip-react-hero,.ip-page-hero,.ip-bib-hero,.ip-module-hero,.page-hero,.module-hero{
  background:linear-gradient(135deg,#0f172a 0%,#1d4ed8 55%,#7c3aed 100%)!important;
  color:#fff!important;
  border-radius:30px!important;
  padding:30px!important;
  box-shadow:var(--pc-shadow-lg)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  overflow:hidden;
  position:relative;
  margin-bottom:22px!important;
}

.ip-react-hero:after,.ip-page-hero:after,.ip-bib-hero:after,.ip-module-hero:after,.page-hero:after,.module-hero:after{
  content:"";
  position:absolute;
  right:34px;
  top:16px;
  width:190px;
  height:150px;
  border-radius:34px;
  background:rgba(255,255,255,.13);
  transform:rotate(-12deg);
  pointer-events:none;
}

.ip-react-hero h1,.ip-react-hero h2,.ip-page-hero h1,.ip-page-hero h2,.ip-bib-hero h1,.ip-bib-hero h2,.ip-module-hero h1,.ip-module-hero h2,.page-hero h1,.page-hero h2,.module-hero h1,.module-hero h2{
  color:#fff!important;
  margin:0!important;
  position:relative;
  z-index:1;
}

.ip-react-hero p,.ip-page-hero p,.ip-bib-hero p,.ip-module-hero p,.page-hero p,.module-hero p{
  color:rgba(255,255,255,.82)!important;
  position:relative;
  z-index:1;
}

h1,h2,h3,h4,.app-main h1,.main-content h1,.ip-content h1,.wrap h1{
  color:var(--pc-text)!important;
  letter-spacing:-.045em;
}

.card,.ip-card,.dashboard-card,.stat-card,.panel,.widget,.box,.msg-card,.ip-react-card,.ip-kpi,.ip-bi-card,.ip-bi-panel,.modal-content{
  background:rgba(255,255,255,.97)!important;
  color:var(--pc-text)!important;
  border:1px solid var(--pc-border)!important;
  border-radius:24px!important;
  box-shadow:var(--pc-shadow)!important;
}

.card h1,.card h2,.card h3,.ip-card h1,.ip-card h2,.ip-card h3,.panel h1,.panel h2,.panel h3{
  color:var(--pc-text)!important;
}

small,.muted,.text-muted,.description,.help{
  color:var(--pc-muted)!important;
}

input,select,textarea{
  background:#fff!important;
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  border:1px solid #cbd5e1!important;
  border-radius:15px!important;
  padding:12px 14px!important;
}

input::placeholder,textarea::placeholder{
  color:#94a3b8!important;
  -webkit-text-fill-color:#94a3b8!important;
}

table,.data-table,.wp-list-table{
  background:#fff!important;
  color:#0f172a!important;
  border:1px solid var(--pc-border)!important;
  border-radius:22px!important;
  overflow:hidden!important;
  box-shadow:var(--pc-shadow)!important;
}

table th,.data-table th,.wp-list-table th{
  background:#f8fafc!important;
  color:#334155!important;
  font-size:12px!important;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:900!important;
}

table td,.data-table td,.wp-list-table td{
  color:#1f2937!important;
  border-bottom:1px solid #edf2f7!important;
}

.btn,.button,button,input[type="submit"]{
  border-radius:15px!important;
  font-weight:900!important;
}

.btn-primary,.button-primary,button.primary,input[type="submit"].primary,input[type="submit"].button-primary{
  background:linear-gradient(135deg,var(--pc-primary),var(--pc-primary-2))!important;
  border-color:var(--pc-primary)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

.btn-wa-send,.btn-whatsapp,a[href*="wa.me"],a[href*="whatsapp"]{
  background:var(--pc-green)!important;
  border-color:var(--pc-green)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

.btn-excluir,.btn-delete,.button-delete,.delete,button[data-action*="excluir"],button[data-action*="delete"],a[href*="excluir"],a[href*="delete"]{
  background:var(--pc-red)!important;
  border-color:var(--pc-red)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

.btn-editar,.btn-edit,button[data-action*="editar"],button[data-action*="edit"],.ip-editar-livro-tab,.ip-force-edit{
  background:var(--pc-primary)!important;
  border-color:var(--pc-primary)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

.btn-warning,.warning,button[data-action*="alerta"]{
  background:var(--pc-orange)!important;
  border-color:var(--pc-orange)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

.empty-state,.ip-empty,.no-results,.ip-bib-empty{
  background:#fff!important;
  border:1px dashed #cbd5e1!important;
  border-radius:24px!important;
  color:var(--pc-muted)!important;
  padding:38px 22px!important;
  text-align:center;
}

.ip-bib-v544{
  background:linear-gradient(180deg,#f8fbff,#f4f7fb)!important;
  color:var(--pc-text)!important;
}

.ip-bib-v544 .ip-bib-hero,.ip-bib-v544 .ip-bib-hero *{
  color:#fff!important;
}

.ip-bib-v544 .ip-bib-stat,.ip-bib-v544 .ip-bib-card,.ip-bib-v544 .ip-bib-collection{
  background:#fff!important;
  border-color:var(--pc-border)!important;
  color:var(--pc-text)!important;
}

.ip-bib-v544 .ip-bib-card h3,.ip-bib-v544 .ip-bib-section-head h2,.ip-bib-v544 .ip-bib-stat strong,.ip-bib-v544 .ip-bib-collection strong{
  color:var(--pc-text)!important;
}

.ip-bib-v544 .ip-bib-card p,.ip-bib-v544 .ip-bib-stat span,.ip-bib-v544 .ip-bib-stat small,.ip-bib-v544 .ip-bib-collection span{
  color:var(--pc-muted)!important;
}

.ip-react-pilot-banner{
  background:#eff6ff!important;
  border:1px solid #bfdbfe!important;
  color:#1e3a8a!important;
  border-radius:18px!important;
}

.ip-react-pilot-banner a{color:#1d4ed8!important;}

@media(max-width:800px){
  .ip-react-hero,.ip-page-hero,.ip-bib-hero,.ip-module-hero,.page-hero,.module-hero{
    padding:23px!important;
    border-radius:24px!important;
  }
}
