/* Telegram-style upload progress overlay */
.upload-progress-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.upload-progress-circle {
  position: relative;
  width: 48px;
  height: 48px;
}

.upload-progress-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.upload-progress-circle circle {
  fill: none;
  stroke-width: 3;
}

.upload-progress-circle .progress-bg {
  stroke: rgba(255, 255, 255, 0.2);
}

.upload-progress-circle .progress-bar {
  stroke: #fff;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}

.upload-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

/* Download/loading spinner for recipients */
.download-progress-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.download-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
