/**
 * Document Converter - DropZone and Modal Styles
 */

/* ========================================
   DropZone Component
   ======================================== */

.document-drop-zone {
  background: linear-gradient(135deg, hsl(352 72% 98%) 0%, hsl(352 72% 96%) 100%);
  border: 2px dashed hsl(352 72% 75%);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 24px;
}

.document-drop-zone.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f3f4f6;
  border-color: #d1d5db;
}

.document-drop-zone:not(.disabled):hover {
  border-color: hsl(352 72% 52%);
  background: linear-gradient(135deg, hsl(352 72% 97%) 0%, hsl(352 72% 94%) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(214, 65, 97, 0.15);
}

.document-drop-zone.drag-over {
  border-color: hsl(352 72% 52%);
  border-style: solid;
  background: linear-gradient(135deg, hsl(352 72% 95%) 0%, hsl(352 72% 92%) 100%);
  box-shadow: 0 0 0 4px rgba(214, 65, 97, 0.1);
}

.drop-zone-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

.drop-zone-title {
  font-size: 16px;
  font-weight: 600;
  color: hsl(352 72% 40%);
  margin: 0 0 8px 0;
}

.drop-zone-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.drop-zone-formats {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.drop-zone-format {
  font-size: 11px;
  background: white;
  color: #6b7280;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}


/* ========================================
   Conversion Modal
   ======================================== */

.conversion-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conversion-modal.hidden {
  display: none;
}

.conversion-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.conversion-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.conversion-state {
  text-align: center;
}

.conversion-state.hidden {
  display: none;
}

.conversion-icon {
  font-size: 56px;
  margin-bottom: 16px;
  display: block;
}

/* Rotating animation for progress icon */
.conversion-progress .conversion-icon {
  animation: spin 2s linear infinite;
}

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

.conversion-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.conversion-filename {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px 0;
  word-break: break-all;
}

.conversion-progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.conversion-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, hsl(352 72% 52%) 0%, hsl(352 72% 60%) 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.conversion-stage {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 24px 0;
}

.conversion-result {
  font-size: 16px;
  color: #374151;
  margin: 0 0 8px 0;
}

.conversion-stats {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 24px 0;
}

.conversion-error-message {
  font-size: 14px;
  color: #dc2626;
  margin: 0 0 24px 0;
  padding: 12px;
  background: #fef2f2;
  border-radius: 8px;
}

.conversion-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.conversion-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.conversion-btn-primary {
  background: hsl(352 72% 52%);
  color: white;
}

.conversion-btn-primary:hover {
  background: hsl(352 72% 47%);
}

.conversion-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.conversion-btn-secondary:hover {
  background: #e5e7eb;
}


/* ========================================
   Responsive adjustments
   ======================================== */

@media (max-width: 480px) {
  .conversion-modal-content {
    padding: 24px;
    margin: 16px;
  }

  .conversion-icon {
    font-size: 48px;
  }

  .conversion-title {
    font-size: 18px;
  }

  .conversion-actions {
    flex-direction: column;
  }

  .conversion-btn {
    width: 100%;
  }
}
