/* ─── Devices page additions (scoped; reuses variables from app.css) ─── */

.devices-table {
  width: 100%;
  border-collapse: collapse;
}
.devices-table th,
.devices-table td {
  text-align: left;
  padding: 14px 22px;
  font-size: 13px;
  border-bottom: 1px solid rgba(20,15,45,0.05);
}
.devices-table th {
  font-weight: 600;
  color: var(--text-muted, #8b859a);
  background: rgba(124,92,191,0.04);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.devices-table tbody tr:last-child td {
  border-bottom: none;
}
.devices-table .device-label {
  font-weight: 600;
}
.devices-table .status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.status-dot.active { background: #10b981; }
.status-dot.offline { background: #f59e0b; }
.status-dot.pending { background: #9ca3af; }
.status-dot.revoked { background: #ef4444; }

.btn-revoke {
  background: transparent;
  color: #ef4444;
  border: 1px solid #fecaca;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
}
.btn-revoke:hover { background: #fee2e2; }

/* ─── Modal ─── */
.hf-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 40, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.hf-modal-backdrop[hidden] { display: none; }
.hf-modal {
  background: rgba(255,252,248,0.96);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 18px;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.88),
    0 24px 60px rgba(20,15,45,0.18),
    0 4px 10px rgba(20,15,45,0.06);
}
.hf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(20,15,45,0.06);
}
.hf-modal-header h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.hf-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted, #6b7280);
  line-height: 1;
}
.hf-modal-body {
  padding: 18px 22px 22px;
}
.hf-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.hf-field {
  display: block;
  margin-bottom: 14px;
}
.hf-field > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #4b5563);
  margin-bottom: 6px;
}
.hf-field input,
.hf-field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  background: #fff;
}
.hf-field input:focus,
.hf-field select:focus {
  outline: none;
  border-color: #7C5CBF;
  box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.15);
}

.hf-err {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-top: 10px;
}

.hf-status {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
}
.hf-status-pending {
  background: #fff7ed;
  color: #9a3412;
}
.hf-status-success {
  background: #ecfdf5;
  color: #065f46;
}
