/* ============================================
   ID Card Upload — shared drag-and-drop zone
   ============================================ */

.spcx-id-upload {
  width: 100%;
}

.spcx-id-upload-zone {
  display: block;
  cursor: pointer;
  border: 2px dashed rgba(75, 227, 235, 0.28);
  border-radius: var(--radius-lg, 14px);
  background: rgba(6, 12, 20, 0.85);
  padding: 28px 20px 22px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.spcx-id-upload-zone:hover,
.spcx-id-upload.is-dragover .spcx-id-upload-zone {
  border-color: rgba(75, 227, 235, 0.55);
  background: rgba(75, 227, 235, 0.04);
  box-shadow: 0 0 24px rgba(75, 227, 235, 0.08);
}

.spcx-id-upload-zone.is-filled .spcx-id-upload-empty {
  display: none;
}

.spcx-id-upload-zone.is-filled .spcx-id-upload-preview {
  display: block;
}

.spcx-id-upload-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.spcx-id-upload-icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  color: rgba(75, 227, 235, 0.75);
}

.spcx-id-upload-card {
  display: block;
}

.spcx-id-upload-arrow {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(8, 14, 22, 0.95);
  border: 1px solid rgba(75, 227, 235, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary, #4be3eb);
}

.spcx-id-upload-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #f0f4f8);
  line-height: 1.35;
}

.spcx-id-upload-or {
  font-size: 12px;
  color: var(--text-muted, #a4b4c4);
}

.spcx-id-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--primary, #4be3eb);
  color: var(--primary-foreground, #041018);
  font-size: 13px;
  font-weight: 700;
}

.spcx-id-upload-hint {
  font-size: 11px;
  color: var(--text-muted, #a4b4c4);
  margin-top: 4px;
}

.spcx-id-upload-preview {
  display: none;
}

.spcx-id-upload-preview-img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spcx-id-upload-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.spcx-id-upload-filename {
  font-size: 12px;
  color: var(--text-muted, #a4b4c4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  text-align: left;
}

.spcx-id-upload-change {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(75, 227, 235, 0.35);
  background: transparent;
  color: var(--primary, #4be3eb);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.spcx-id-upload-change:hover {
  background: rgba(75, 227, 235, 0.08);
}

/* Auth tab: reuse upload styling inside existing slots */
.ud-auth-upload-zone.spcx-id-upload-zone {
  min-height: 200px;
}

.ud-auth-upload-slot .spcx-id-upload {
  height: 100%;
}

.ud-auth-upload-slot .spcx-id-upload-zone {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ud-auth-upload-slot .spcx-id-upload-preview-img {
  max-height: 240px;
}
