/* WartHive - Update selettivo miner binari (rig scelti a mano, non tutta la flotta) */
/* Widget indipendente: chiama solo le API REST gia' esistenti, non tocca il bundle React */

.wh-su-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(99, 102, 241, .1);
  border: 1px solid rgba(99, 102, 241, .4);
  color: #818CF8;
  border-radius: 2px;
  font-family: monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
}
.wh-su-trigger:hover { background: rgba(99, 102, 241, .2); }

.wh-su-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.wh-su-modal {
  background: #0B0B0F;
  border: 1px solid #27272A;
  border-radius: 4px;
  width: min(480px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px 22px;
  color: #FAFAFA;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.wh-su-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.wh-su-modal-header h2 { font-size: 20px; font-weight: 800; margin: 0; }
.wh-su-close { background: none; border: none; color: #A1A1AA; font-size: 16px; cursor: pointer; }
.wh-su-close:hover { color: #FAFAFA; }
.wh-su-sub { font-size: 12px; color: #A1A1AA; margin: 0 0 16px; }
.wh-su-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #A1A1AA; margin-bottom: 6px; font-family: monospace; }
.wh-su-select {
  width: 100%;
  background: #0B0B0F;
  border: 1px solid #27272A;
  border-radius: 2px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: monospace;
  color: #FAFAFA;
  margin-bottom: 14px;
}
.wh-su-info { font-size: 11px; font-family: monospace; color: #A1A1AA; margin-bottom: 16px; word-break: break-all; }
.wh-su-auto-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #A1A1AA;
  background: rgba(99, 102, 241, .08);
  border: 1px solid rgba(99, 102, 241, .3);
  border-radius: 2px;
  padding: 8px 10px;
  margin-bottom: 16px;
  cursor: pointer;
}
.wh-su-auto-row input { margin-top: 2px; flex: 0 0 auto; }
.wh-su-rigs-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #A1A1AA;
  font-family: monospace;
  margin-bottom: 6px;
}
.wh-su-rigs-header span { flex: 1; }
.wh-su-linkbtn { background: none; border: none; color: #818CF8; cursor: pointer; font-family: monospace; font-size: 10px; text-transform: uppercase; padding: 0; }
.wh-su-linkbtn:hover { text-decoration: underline; }
.wh-su-rigs-list { max-height: 220px; overflow-y: auto; border: 1px solid #27272A; border-radius: 2px; padding: 6px; margin-bottom: 18px; }
.wh-su-rig-row { display: flex; align-items: center; gap: 8px; font-size: 12px; font-family: monospace; padding: 5px 4px; cursor: pointer; }
.wh-su-rig-row:hover { background: #18181B; }
.wh-su-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.wh-su-dot.online { background: #10B981; }
.wh-su-dot.offline { background: #EF4444; }
.wh-su-empty { font-size: 12px; color: #A1A1AA; padding: 8px 4px; }
.wh-su-footer { display: flex; justify-content: flex-end; gap: 8px; }
.wh-su-cancel { padding: 8px 14px; background: none; border: 1px solid #27272A; color: #A1A1AA; border-radius: 2px; font-family: monospace; font-size: 11px; text-transform: uppercase; cursor: pointer; }
.wh-su-cancel:hover { color: #FAFAFA; }
.wh-su-confirm { padding: 8px 16px; background: #6366F1; border: 1px solid #6366F1; color: #fff; border-radius: 2px; font-family: monospace; font-size: 11px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.wh-su-confirm:hover { background: #818CF8; }
.wh-su-confirm:disabled { opacity: .5; cursor: not-allowed; }
