/*
 * CONNECT CAMP '27
 * HOTFIX VISUAL GLOBAL — ADMIN
 * Remove a identidade verde herdada e aplica a identidade premium do Connect Camp.
 */

:root{
  --cca-bg:#160f28;
  --cca-bg-2:#24133a;
  --cca-surface:#211232;
  --cca-surface-2:#2a1747;
  --cca-card:#f5f0e6;
  --cca-card-2:#fffaf2;
  --cca-text:#ffffff;
  --cca-text-dark:#20152f;
  --cca-muted:#cabfdc;

  --cca-orange:#f36a2d;
  --cca-magenta:#d92f74;
  --cca-purple:#7a2dd8;
  --cca-blue:#2f6bff;

  --cca-line:rgba(255,255,255,.10);
  --cca-line-soft:rgba(255,255,255,.06);
  --cca-shadow:0 24px 80px rgba(0,0,0,.32);
  --cca-shadow-soft:0 16px 40px rgba(0,0,0,.18);

  --cca-grad-main:linear-gradient(100deg,#f36a2d 0%,#dd4a5f 26%,#c32582 50%,#7a2dd8 76%,#2f6bff 100%);
  --cca-grad-soft:linear-gradient(135deg,rgba(243,106,45,.18),rgba(217,47,116,.16),rgba(122,45,216,.16),rgba(47,107,255,.14));
  --cca-grad-dark:linear-gradient(135deg,rgba(22,15,40,.96),rgba(36,19,58,.96) 48%,rgba(42,23,71,.93));
}

/* BASE */
html,
body{
  background:
    radial-gradient(circle at 12% 12%, rgba(243,106,45,.12), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(47,107,255,.10), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(217,47,116,.10), transparent 30%),
    #160f28 !important;
  color:var(--cca-text) !important;
}

/* força textos genéricos */
body,
p,
span,
small,
label,
li,
td,
th,
h1,h2,h3,h4,h5,h6{
  color:inherit;
}

/* LINKS */
a{
  color:inherit;
}

/* WRAPPERS GENÉRICOS */
main,
section,
.page,
.content,
.content-area,
.dashboard-content,
.admin-content,
.app-content,
.panel-content,
.layout-content{
  background:transparent !important;
}

/* SIDEBAR / MENU LATERAL */
aside,
.sidebar,
.admin-sidebar,
.side-nav,
.left-menu,
.drawer,
.menu-lateral,
.nav-lateral{
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    rgba(15,10,27,.78) !important;
  backdrop-filter:blur(16px) !important;
  -webkit-backdrop-filter:blur(16px) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  box-shadow:var(--cca-shadow) !important;
}

/* MARCA / BLOCO SUPERIOR */
.brand,
.logo-box,
.sidebar-brand,
.admin-brand{
  background:transparent !important;
}

.brand img,
.logo-box img,
.sidebar-brand img,
.admin-brand img{
  filter:drop-shadow(0 10px 26px rgba(0,0,0,.28));
}

/* ITENS DO MENU */
aside a,
.sidebar a,
.admin-sidebar a,
.side-nav a,
.menu-lateral a,
.nav-lateral a,
.drawer a{
  border-radius:18px !important;
}

aside a:hover,
.sidebar a:hover,
.admin-sidebar a:hover,
.side-nav a:hover,
.menu-lateral a:hover,
.nav-lateral a:hover,
.drawer a:hover{
  background:rgba(255,255,255,.07) !important;
}

aside a.active,
.sidebar a.active,
.admin-sidebar a.active,
.side-nav a.active,
.menu-lateral a.active,
.nav-lateral a.active,
.drawer a.active,
.current,
.is-active{
  background:linear-gradient(90deg, rgba(243,106,45,.95), rgba(217,47,116,.78)) !important;
  color:#fff !important;
  box-shadow:0 12px 28px rgba(243,106,45,.25) !important;
}

/* HERO / BANNERS */
.hero,
.dashboard-hero,
.page-hero,
.panel-hero,
.banner,
.top-banner,
.headline-box{
  background:
    radial-gradient(circle at 82% 18%, rgba(243,106,45,.26), transparent 24%),
    radial-gradient(circle at 18% 85%, rgba(47,107,255,.16), transparent 28%),
    linear-gradient(135deg, rgba(10,20,14,.72), rgba(10,20,14,.18)),
    var(--cca-grad-dark) !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:34px !important;
  box-shadow:var(--cca-shadow) !important;
  color:#fff !important;
}

/* CARDS GERAIS */
.card,
.panel,
.widget,
.box,
.metric-card,
.stat-card,
.summary-card,
.info-card,
.table-card,
.form-card,
.content-card{
  background:var(--cca-card) !important;
  color:var(--cca-text-dark) !important;
  border:1px solid rgba(44,22,71,.08) !important;
  border-radius:28px !important;
  box-shadow:var(--cca-shadow-soft) !important;
}

/* Textos internos de cards claros */
.card *,
.panel *,
.widget *,
.box *,
.metric-card *,
.stat-card *,
.summary-card *,
.info-card *,
.table-card *,
.form-card *,
.content-card *{
  color:inherit;
}

/* CARDS ESCUROS / DESTAQUE */
.card-dark,
.panel-dark,
.metric-dark,
.highlight-card,
.kpi-highlight,
.primary-card{
  background:
    linear-gradient(135deg, rgba(34,18,52,.98), rgba(71,29,112,.96)) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.10) !important;
}

/* MÉTRICAS COLORIDAS */
.kpi,
.metric,
.stat,
.metric-box{
  border-radius:24px !important;
  overflow:hidden !important;
}

.kpi.primary,
.metric.primary,
.stat.primary{
  background:linear-gradient(135deg,#40206e,#6630ac) !important;
  color:#fff !important;
}

.kpi.success,
.metric.success,
.stat.success{
  background:linear-gradient(135deg,#176e52,#27916f) !important;
  color:#fff !important;
}

.kpi.warning,
.metric.warning,
.stat.warning{
  background:linear-gradient(135deg,#efe8d9,#f6efe3) !important;
  color:#24133a !important;
}

.kpi.danger,
.metric.danger,
.stat.danger{
  background:linear-gradient(135deg,#7d2747,#b64169) !important;
  color:#fff !important;
}

.kpi.revenue,
.metric.revenue,
.stat.revenue{
  background:var(--cca-grad-main) !important;
  color:#fff !important;
}

/* BOTÕES */
button,
.btn,
input[type="submit"],
input[type="button"],
.action-btn{
  border-radius:16px !important;
  transition:.22s ease !important;
}

.btn-primary,
.primary,
button.primary,
input[type="submit"],
.action-primary{
  background:var(--cca-grad-main) !important;
  color:#fff !important;
  border:none !important;
  box-shadow:0 14px 32px rgba(122,45,216,.24) !important;
}

.btn-primary:hover,
.primary:hover,
button.primary:hover,
input[type="submit"]:hover,
.action-primary:hover{
  transform:translateY(-1px);
  filter:brightness(1.03);
}

.btn-secondary,
.secondary,
.action-secondary{
  background:rgba(22,15,40,.80) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.14) !important;
}

.btn-light,
.light,
.action-light{
  background:#fff8ef !important;
  color:#20152f !important;
  border:1px solid rgba(44,22,71,.08) !important;
}

.btn-danger,
.danger,
.action-danger{
  background:linear-gradient(135deg,#bb2b2b,#d24b2e) !important;
  color:#fff !important;
  border:none !important;
}

.btn-warning,
.warning,
.action-warning{
  background:linear-gradient(135deg,#f6a743,#f36a2d) !important;
  color:#fff !important;
  border:none !important;
}

/* TABS / FILTROS / PILLS */
.badge,
.tag,
.pill,
.chip,
.status,
.filter-chip{
  border-radius:999px !important;
  border:1px solid rgba(44,22,71,.10) !important;
  padding:.42rem .80rem !important;
  font-weight:700 !important;
}

.badge.active,
.tag.active,
.pill.active,
.chip.active{
  background:rgba(243,106,45,.12) !important;
  color:#b04a17 !important;
}

.badge.success,
.tag.success,
.pill.success,
.status.ok{
  background:rgba(39,145,111,.14) !important;
  color:#176e52 !important;
}

.badge.warning,
.tag.warning,
.pill.warning,
.status.pending{
  background:rgba(243,106,45,.12) !important;
  color:#af5e18 !important;
}

.badge.danger,
.tag.danger,
.pill.danger,
.status.fail{
  background:rgba(210,75,46,.12) !important;
  color:#b53030 !important;
}

/* FORMULÁRIOS */
input,
select,
textarea{
  background:rgba(255,255,255,.74) !important;
  color:#20152f !important;
  border:1px solid rgba(44,22,71,.12) !important;
  border-radius:18px !important;
  box-shadow:none !important;
}

input:focus,
select:focus,
textarea:focus{
  outline:none !important;
  border-color:rgba(122,45,216,.42) !important;
  box-shadow:0 0 0 4px rgba(122,45,216,.10) !important;
}

/* TABELAS */
table{
  border-collapse:separate !important;
  border-spacing:0 !important;
}

table thead,
table thead tr,
table thead th{
  background:#0e261f !important;
  color:#fff !important;
}

table thead th{
  border:none !important;
  padding:18px 16px !important;
}

table tbody tr{
  background:#f7f3ea !important;
}

table tbody td{
  color:#20152f !important;
  border-top:1px solid rgba(44,22,71,.05) !important;
  vertical-align:middle !important;
}

/* BLOCOS PREMIUM CLAROS */
.premium-card,
.premium-block,
.premium-status,
.release-box,
.timeline-box,
.chart-box{
  background:linear-gradient(180deg,#f7f2e9,#f2ecdf) !important;
  border:1px solid rgba(44,22,71,.08) !important;
  border-radius:28px !important;
  box-shadow:var(--cca-shadow-soft) !important;
  color:#20152f !important;
}

/* MODAIS */
.modal,
.modal-content,
.dialog,
.drawer-panel,
.notification-box{
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04)),
    rgba(27,16,42,.96) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:26px !important;
  backdrop-filter:blur(18px) !important;
  -webkit-backdrop-filter:blur(18px) !important;
}

/* TOPO / CABEÇALHO */
header,
.topbar,
.admin-topbar,
.page-topbar{
  background:transparent !important;
}

/* SCROLLBAR */
*::-webkit-scrollbar{
  width:10px;
  height:10px;
}
*::-webkit-scrollbar-track{
  background:rgba(255,255,255,.04);
}
*::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#f36a2d,#7a2dd8);
  border-radius:999px;
}

/* FIX ESPECÍFICO PARA BLOCOS QUE AINDA ESTÃO VERDES */
[style*="#0f"],
[style*="#1b5"],
[style*="#1c5"],
[style*="#2f6b2f"],
[style*="green"]{
  color:inherit !important;
}

/* INSTALL APP FIX */
.install-app,
.pwa-install-btn,
button[aria-label="Instalar app"]{
  background:linear-gradient(90deg,#f6a643,#f36a2d) !important;
  color:#20152f !important;
  border:none !important;
  font-weight:800 !important;
}

/* DASHBOARD – pequenos refinamentos visuais */
h1, .page-title, .dashboard-title{
  color:#fff !important;
}

.section-title, .card-title, .block-title{
  color:#20152f !important;
}

/* RESPONSIVO */
@media (max-width:900px){
  .hero,
  .dashboard-hero,
  .page-hero,
  .panel-hero,
  .banner,
  .top-banner{
    border-radius:24px !important;
  }

  .card,
  .panel,
  .widget,
  .box,
  .metric-card,
  .stat-card,
  .summary-card,
  .info-card,
  .table-card,
  .form-card,
  .content-card{
    border-radius:22px !important;
  }
}
