/* ============================================================
   Infinityhub Marketplace — Dark Theme globale
   Caricato DOPO app.css e gli altri CSS per uniformare l'app.
   ============================================================ */

:root{
  color-scheme:dark;
  --color-bg:#090b0d;
  --color-surface:#111417;
  --color-text:#f3f5f4;
  --color-text-muted:#a9b1ad;
  --color-border:#272d2a;
  --color-border-strong:#39413d;
  --slate-50:#0d1012;
  --slate-100:#15191c;
  --slate-200:#23292c;
  --slate-300:#343c40;
  --slate-400:#929da3;
  --slate-500:#aab3b8;
  --slate-600:#c2c9cd;
  --slate-700:#d7dcdf;
  --slate-800:#e9edef;
  --slate-900:#ffffff;
  --white:#111417;
}

html,body{
  background:#090b0d !important;
  color:#f3f5f4 !important;
}
body::before{display:none !important;content:none !important;}
.layout-root,.layout-main,.main-content,.container,.page-section,.page-section--sm{
  color:#f3f5f4;
}
.layout-main,.main-content{background:#090b0d !important;}

/* Testi */
h1,h2,h3,h4,h5,h6,
.dashboard-title,.card-title,
.py-title,.prof-title,.pd-title,.ed-title,.pn-title,.pw-title,
.ev-title,.ev-card-title,.prof-card-title,
strong,label,.form-label{
  color:#fff !important;
}
p,li,dd,dt,span,small{border-color:#272d2a;}
.text-muted,.ev-muted,.prof-muted,.py-muted,.form-hint,.card-subtitle{
  color:#a9b1ad !important;
}
a{color:#65d4ae;}
a:hover{color:#8be6c7;}

/* Card e pannelli */
.card,.kpi-card,
.ev-card,.prof-card,.py-card,.pr-card,.pd-card,.ed-card,.pn-card,.pw-card,
.prof-invito-card,.prof-panel,.py-panel,.ev-panel,
[class$="-card"],[class*=" card-"]{
  background:#111417 !important;
  color:#f3f5f4 !important;
  border-color:#272d2a !important;
  box-shadow:0 10px 28px rgba(0,0,0,.22) !important;
}
.card-header,.card-footer,
.ev-card-head,.prof-card-head,.py-card-head,.pd-card-head,.ed-card-head{
  background:#111417 !important;
  color:#fff !important;
  border-color:#272d2a !important;
}
.card-footer{background:#0d1012 !important;}

/* KPI */
.kpi-value,.prof-kpi-value,.ev-kpi,.py-kpi{color:#65d4ae !important;}
.kpi-label,.prof-kpi-label{color:#a9b1ad !important;}

/* Form */
.form-control,.py-control,.prof-control,.ev-control,
input[type="text"],input[type="email"],input[type="password"],input[type="tel"],
input[type="number"],input[type="date"],input[type="datetime-local"],input[type="url"],
input[type="search"],input[type="file"],select,textarea{
  background:#171b1e !important;
  color:#fff !important;
  border-color:#39413d !important;
}
.form-control:hover,input:hover,select:hover,textarea:hover{border-color:#59645f !important;}
.form-control:focus,input:focus,select:focus,textarea:focus{
  border-color:#20a77a !important;
  box-shadow:0 0 0 4px rgba(32,167,122,.16) !important;
}
input::placeholder,textarea::placeholder{color:#7f8a84 !important;}
input:disabled,select:disabled,textarea:disabled{
  background:#0f1214 !important;
  color:#8e9893 !important;
  opacity:1;
}
option{background:#171b1e;color:#fff;}

/* Pulsanti neutri */
.btn,.py-btn,.prof-btn,.pd-btn,.ed-btn,.ev-btn,.pw-tabs a{
  background:#171b1e !important;
  color:#f3f5f4 !important;
  border-color:#39413d !important;
}
.btn:hover,.py-btn:hover,.prof-btn:hover,.pd-btn:hover,.ed-btn:hover,.ev-btn:hover,.pw-tabs a:hover{
  background:#22282b !important;
  border-color:#52605a !important;
  color:#fff !important;
}
.btn-primary,.btn-secondary,.py-btn--primary,.prof-btn--accept,.pd-btn-primary,
.ed-btn.primary,.ev-btn-primary,.prof-save,.page-hero__button--primary{
  background:#0f6e56 !important;
  border-color:#20a77a !important;
  color:#fff !important;
}
.btn-primary:hover,.btn-secondary:hover,.py-btn--primary:hover,.prof-save:hover,.ev-btn-primary:hover{
  background:#0b5d49 !important;
}

/* Tabelle */
.table-wrap,.py-table-wrap,.prof-table-wrap,.ev-table-wrap{
  background:#111417 !important;
  border-color:#272d2a !important;
}
table,.table,.py-table,.prof-table,.ed-table,.ev-table{
  background:#111417 !important;
  color:#f3f5f4 !important;
}
thead th,.table th,.py-table th,.prof-table th,.ed-table th,.ev-table th{
  background:#171b1e !important;
  color:#b9c1bd !important;
  border-color:#272d2a !important;
}
tbody td,.table td,.py-table td,.prof-table td,.ed-table td,.ev-table td{
  color:#e8ecea !important;
  border-color:#272d2a !important;
  background:#111417 !important;
}
tbody tr:hover td{background:#171b1e !important;}

/* Toolbar, tab, empty state */
.pr-empty,.py-empty,.prof-empty,.ev-empty{
  background:#111417 !important;
  color:#a9b1ad !important;
  border-color:#39413d !important;
}
.tabs,.py-tabs,.prof-tabs,.nav-tabs{border-color:#272d2a !important;}

/* Badge */
.badge-gray,.ev-pill,.prof-pill{
  background:#23292c !important;
  color:#d5dcda !important;
  border-color:#39413d !important;
}

/* Modali / dropdown */
.modal-content,.dropdown-menu,.user-menu-dropdown,.popover{
  background:#111417 !important;
  color:#f3f5f4 !important;
  border-color:#272d2a !important;
}

/* Upload */
.upload-zone{
  background:#111417 !important;
  color:#a9b1ad !important;
  border-color:#39413d !important;
}
.upload-zone:hover{background:#15231e !important;color:#d8fff1 !important;}

/* Auth: nero pieno, card scura */
body.auth-layout,.auth-page{background:#000 !important;}
.auth-page::before,.auth-page::after{display:none !important;content:none !important;}
.auth-card{
  background:#111417 !important;
  color:#f3f5f4 !important;
  border:1px solid #272d2a !important;
}
.auth-title{color:#fff !important;}
.auth-subtitle,.auth-footer{color:#a9b1ad !important;}
.auth-divider::before,.auth-divider::after{background:#272d2a !important;}

/* Footer */
.site-footer{background:#050607 !important;border-top:1px solid #202522;}

/* Mantiene volutamente le hero fotografiche */
.page-hero,.ev-hero,.dashboard-header{
  color:#fff !important;
}

/* Override di alcuni background chiari inline/comuni nelle view */
[style*="background:#fff"],[style*="background: #fff"],
[style*="background:#ffffff"],[style*="background: #ffffff"]{
  background:#111417 !important;
}
[style*="color:#10231d"],[style*="color: #10231d"],
[style*="color:#111827"],[style*="color: #111827"],
[style*="color:#17342b"],[style*="color: #17342b"]{
  color:#f3f5f4 !important;
}

/* Scrollbar */
*{scrollbar-color:#39413d #111417;}
::-webkit-scrollbar{width:10px;height:10px;}
::-webkit-scrollbar-track{background:#111417;}
::-webkit-scrollbar-thumb{background:#39413d;border-radius:10px;border:2px solid #111417;}
