/* ========================= */
/* Document Dropzone Styles  */
/* ========================= */

.doc-dropzone {
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.doc-dropzone-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Empty state dropzone (large hero) */
.doc-dropzone-empty {
  border: 2px dashed #d1d5db;
  border-radius: 16px;
  padding: 60px 40px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  transition: all 0.3s ease;
}

.doc-dropzone-empty:hover {
  border-color: #4f46e5;
  background: #f5f3ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
}

.doc-dropzone-empty.doc-dropzone-dragover {
  border-color: #4f46e5;
  background: #eef2ff;
  border-width: 3px;
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.2);
}

.doc-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.doc-dropzone-icon {
  color: #4f46e5;
  margin-bottom: 8px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.doc-dropzone-title {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.doc-dropzone-subtitle {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
}

.doc-dropzone-hint {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

/* Compact dropzone (bar above table) */
.doc-dropzone-compact {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 20px 24px;
  background: #fafafa;
  margin-bottom: 0;
  transition: all 0.2s ease;
}

.doc-dropzone-compact:hover {
  border-color: #4f46e5;
  background: #f5f3ff;
}

.doc-dropzone-compact.doc-dropzone-dragover {
  border-color: #4f46e5;
  background: #eef2ff;
  border-width: 3px;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.15);
}

.doc-dropzone-compact-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}

.doc-dropzone-compact-content svg {
  color: #4f46e5;
  flex-shrink: 0;
}

.doc-dropzone-compact-text {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

/* ========================= */
/* Upload Progress Modal     */
/* ========================= */

.doc-upload-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.doc-upload-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.doc-upload-modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.doc-upload-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.doc-upload-modal-count {
  font-size: 14px;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  padding: 4px 12px;
  border-radius: 12px;
}

.doc-upload-modal-body {
  padding: 20px 28px;
  overflow-y: auto;
  flex: 1;
}

.doc-upload-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.doc-upload-item-uploading {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.doc-upload-item-complete {
  background: #ecfdf5;
  border: 1px solid #86efac;
}

.doc-upload-item-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.doc-upload-item-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.doc-upload-item-info {
  flex: 1;
  min-width: 0;
}

.doc-upload-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.doc-upload-item-size {
  font-size: 12px;
  color: #6b7280;
}

.doc-upload-item-progress {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 120px;
}

.doc-upload-progress-bar {
  width: 100px;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.doc-upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #6366f1);
  border-radius: 3px;
  transition: width 0.3s ease;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

.doc-upload-status {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}

.doc-upload-status-success {
  color: #059669;
}

.doc-upload-status-error {
  color: #dc2626;
}

.doc-upload-modal-footer {
  padding: 20px 28px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .doc-dropzone-empty {
    padding: 40px 20px;
    min-height: 240px;
  }
  
  .doc-dropzone-icon {
    width: 48px;
    height: 48px;
  }
  
  .doc-dropzone-title {
    font-size: 18px;
  }
  
  .doc-upload-modal {
    width: 95%;
    max-height: 90vh;
  }
  
  .doc-upload-item {
    flex-wrap: wrap;
  }
  
  .doc-upload-item-progress {
    width: 100%;
    margin-top: 8px;
  }
}

