/* MambaHub Web V200 — dashboard, chat, notifiche e pulsanti Polar */
:root{--mh-red:#df171f;--mh-black:#090a0c;--mh-panel:#15171c;--mh-line:#343944;--mh-sky:#38bdf8;--mh-yellow:#facc15}

/* Azioni principali più riconoscibili e coerenti */
.quick-actions-v181 .button,.dashboard-actions .button,.athlete-actions .button{
  min-height:58px!important;padding:15px 18px!important;border:1px solid #3b404a!important;
  border-left:6px solid var(--mh-red)!important;border-radius:14px!important;background:linear-gradient(145deg,#15171b,#050506)!important;
  color:#fff!important;font-weight:900!important;letter-spacing:.02em!important;box-shadow:0 7px 18px rgba(0,0,0,.18)!important;
}
.quick-actions-v181 .button:hover,.dashboard-actions .button:hover,.athlete-actions .button:hover{transform:translateY(-1px);border-color:#676d78!important}

/* Controllo Polar: un solo punto di accesso, nella dashboard amministratore */
.performance-admin-panel{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(420px,.9fr);gap:22px!important;align-items:center!important;border-top:6px solid #dc161d!important;background:linear-gradient(145deg,#17191f,#0b0c0f)!important;color:#fff!important}
.performance-admin-copy span{color:#ff8e94!important;font-size:13px!important;font-weight:950!important;letter-spacing:.14em!important}
.performance-admin-copy h2{margin:.35rem 0 .45rem!important;color:#fff!important;font-size:27px!important}
.performance-admin-copy p{margin:0!important;color:#cbd2dd!important;line-height:1.55!important}
.performance-admin-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:12px!important}
.performance-live-button,.performance-diagnostics-button{display:flex!important;flex-direction:column!important;justify-content:center!important;min-height:88px!important;padding:15px 17px!important;border:2px solid!important;border-radius:14px!important;text-decoration:none!important;box-shadow:0 8px 20px rgba(0,0,0,.25)!important}
.performance-live-button{border-color:#0284c7!important;background:var(--mh-sky)!important;color:#06141c!important}
.performance-diagnostics-button{border-color:#ca8a04!important;background:var(--mh-yellow)!important;color:#211800!important}
.performance-live-button b,.performance-diagnostics-button b{font-size:17px!important;font-weight:950!important}
.performance-live-button small,.performance-diagnostics-button small{margin-top:5px!important;color:inherit!important;font-size:12px!important;line-height:1.35!important;opacity:.82}
.performance-live-button:hover,.performance-diagnostics-button:hover{transform:translateY(-2px)!important;filter:brightness(1.04)!important}

/* Chat: contrasto, dimensioni e gerarchia visiva */
.group-chat-page{color:#111827!important}
.chat-app-topbar{gap:12px!important;padding:13px 15px!important;border-radius:15px!important}
.chat-app-topbar .chat-dashboard-link{min-height:42px!important;padding:9px 14px!important;border-radius:10px!important;color:#fff!important;font-weight:900!important}
.group-chat-heading{border-radius:16px!important;box-shadow:0 8px 24px rgba(15,23,42,.09)!important}
.room-switcher{gap:8px!important;margin-block:12px!important}
.room-switcher a{min-height:46px!important;padding:11px 14px!important;border-width:2px!important;border-radius:12px!important;font-weight:950!important;box-shadow:0 3px 9px rgba(0,0,0,.08)!important;outline:none!important}
.room-switcher a.active,.room-switcher a[aria-current="page"]{box-shadow:0 0 0 3px rgba(22,163,74,.18),0 3px 9px rgba(0,0,0,.08)!important}
.group-chat-card{overflow:hidden!important;border:1px solid #d3d9e2!important;border-radius:17px!important;background:#f7f9fc!important;box-shadow:0 8px 24px rgba(15,23,42,.09)!important}
.group-chat-bar{padding:15px 17px!important;background:#0b0d11!important;color:#fff!important}
.group-chat-stream{padding:18px!important;background:#eef2f7!important}
.chat-bubble{max-width:min(82%,720px)!important;padding:13px 15px!important;border:1px solid #cbd3df!important;border-radius:16px!important;background:#fff!important;color:#101827!important;box-shadow:0 5px 14px rgba(15,23,42,.10)!important}
.chat-bubble.from-admin{border-color:#ff9aa0!important;background:#fff5f5!important}
.chat-bubble header b{color:#0b1220!important;font-size:15px!important;font-weight:950!important}
.chat-bubble header small{color:#475569!important;font-size:12px!important}
.chat-bubble p{margin:.45rem 0 0!important;color:#111827!important;font-size:17px!important;font-weight:560!important;line-height:1.55!important;white-space:pre-wrap!important}
.chat-bubble .chat-message-delete{color:#991b1b!important;font-weight:850!important}
.group-chat-compose{gap:9px!important;padding:14px!important;background:#fff!important;border-top:1px solid #d6dce5!important}
.group-chat-compose textarea,.group-chat-compose input{min-height:50px!important;border:2px solid #aeb7c5!important;border-radius:12px!important;background:#fff!important;color:#111827!important;font-size:17px!important;line-height:1.45!important}
.group-chat-compose button{min-height:50px!important;border-radius:12px!important;font-weight:950!important}

/* Centro notifiche: elemento apribile + eliminazione indipendente */
.notification-row{display:flex!important;align-items:stretch!important;gap:8px!important;padding:0!important;overflow:hidden!important;border:1px solid #d6dce5!important;border-radius:14px!important;background:#fff!important}
.notification-row.is-unread{border-left:5px solid var(--mh-red)!important;background:#fffafa!important}
.notification-open{display:flex!important;align-items:center!important;gap:12px!important;flex:1!important;min-width:0!important;padding:15px 12px 15px 14px!important;color:#111827!important;text-decoration:none!important}
.notification-open>span:nth-child(2){display:grid!important;gap:3px!important;min-width:0!important}
.notification-open small{color:#596579!important;font-weight:850!important}
.notification-open b{color:#0b1220!important;font-size:16px!important;line-height:1.35!important}
.notification-open em{color:#263244!important;font-size:15px!important;line-height:1.45!important;font-style:normal!important}
.notification-row form{display:flex!important;align-items:center!important;margin:0!important;padding-right:10px!important}
.notification-delete,.notification-delete-all{min-height:40px!important;padding:9px 12px!important;border:1px solid #b91c1c!important;border-radius:10px!important;background:#fff!important;color:#a20f16!important;font-size:12px!important;font-weight:950!important}
.notification-delete:hover,.notification-delete-all:hover{background:#b91c1c!important;color:#fff!important}
.notification-actions{display:flex!important;flex-wrap:wrap!important;gap:9px!important;margin-top:15px!important}
.notification-actions form{margin:0!important}

/* Pulizia controllata del registro diagnostico */
.perf-diag-tools{display:flex!important;flex-wrap:wrap!important;gap:9px!important;margin:10px 0 18px!important}
.perf-diag-tools form,.perf-diag-delete-form{margin:0!important}
.perf-diag-delete,.perf-diag-clear{min-height:40px!important;padding:9px 13px!important;border:1px solid #b91c1c!important;border-radius:10px!important;background:#fff!important;color:#991b1b!important;font-weight:950!important}
.perf-diag-delete:hover,.perf-diag-clear:hover{background:#b91c1c!important;color:#fff!important}
.perf-diag-delete-form{display:flex!important;justify-content:flex-end!important;margin-top:12px!important}
.perf-retention-note{color:#566176!important;font-size:14px!important}

@media(max-width:700px){
  .chat-bubble{max-width:94%!important}.chat-bubble p{font-size:16px!important}
  .performance-admin-panel{grid-template-columns:1fr!important}.performance-admin-actions{grid-template-columns:1fr!important}
  .notification-row{align-items:center!important}.notification-open{padding:13px 8px 13px 11px!important}.notification-delete{padding:8px!important;font-size:11px!important}
}
