/* Estilos para el modal de subida de archivos */

.upload-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

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

.upload-modal-content {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.upload-modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(147, 112, 219, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8f4ff 0%, #fff 100%);
}

.upload-modal-header h2 {
  margin: 0;
  color: #9370db;
  font-size: 1.5rem;
}

.upload-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9370db;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.upload-modal-close:hover {
  background: rgba(147, 112, 219, 0.1);
  transform: rotate(90deg);
}

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

.upload-dropzone {
  border: 3px dashed #dda0dd;
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: linear-gradient(135deg, #fff0f5 0%, #f8f4ff 100%);
  margin-bottom: 20px;
}

.upload-dropzone:hover {
  border-color: #9370db;
  background: linear-gradient(135deg, #ffe0f0 0%, #f0e8ff 100%);
  transform: translateY(-2px);
}

.upload-dropzone.drag-over {
  border-color: #9370db;
  background: linear-gradient(135deg, #ffe0f0 0%, #f0e8ff 100%);
  transform: scale(1.02);
}

.upload-dropzone-content {
  pointer-events: none;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.upload-text {
  font-size: 1.2rem;
  color: #9370db;
  font-weight: 600;
  margin: 10px 0;
}

.upload-subtext {
  font-size: 0.9rem;
  color: #999;
  margin: 5px 0;
}

.upload-files-list {
  margin: 20px 0;
  max-height: 200px;
  overflow-y: auto;
}

.upload-files-header {
  font-weight: 600;
  color: #9370db;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.upload-file-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #f8f4ff;
  border-radius: 8px;
  margin-bottom: 8px;
  gap: 10px;
}

.upload-file-icon {
  font-size: 1.2rem;
}

.upload-file-name {
  flex: 1;
  font-size: 0.9rem;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-file-size {
  font-size: 0.85rem;
  color: #666;
  margin-left: auto;
}

.upload-file-remove {
  background: #ff6b6b;
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.upload-file-remove:hover {
  background: #ff5252;
  transform: scale(1.1);
}

.upload-progress {
  margin: 20px 0;
}

.upload-progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #dda0dd 0%, #9370db 100%);
  width: 0%;
  transition: width 0.3s;
  border-radius: 4px;
}

.upload-progress-text {
  text-align: center;
  font-size: 0.9rem;
  color: #9370db;
  font-weight: 600;
}

.upload-results {
  margin-top: 20px;
}

.upload-success,
.upload-error {
  padding: 15px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.upload-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.upload-error {
  background: #ffebee;
  color: #c62828;
}

.upload-success-icon,
.upload-error-icon {
  font-size: 1.5rem;
}

.upload-success-text,
.upload-error-text {
  flex: 1;
}

.upload-success-text strong,
.upload-error-text strong {
  display: block;
  margin-bottom: 5px;
}

.upload-details {
  margin-top: 15px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 8px;
  max-height: 150px;
  overflow-y: auto;
}

.upload-detail-item {
  padding: 5px 0;
  font-size: 0.85rem;
}

.upload-detail-item.success {
  color: #2e7d32;
}

.upload-detail-item.error {
  color: #c62828;
}

.upload-modal-footer {
  padding: 20px 25px;
  border-top: 1px solid rgba(147, 112, 219, 0.2);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8f4ff;
}

.upload-btn-cancel,
.upload-btn-upload {
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-btn-cancel {
  background: #e0e0e0;
  color: #666;
}

.upload-btn-cancel:hover {
  background: #d0d0d0;
}

.upload-btn-upload {
  background: linear-gradient(135deg, #dda0dd 0%, #9370db 100%);
  color: white;
}

.upload-btn-upload:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(147, 112, 219, 0.4);
}

.upload-btn-upload:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .upload-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .upload-modal-header h2 {
    font-size: 1.2rem;
  }

  .upload-dropzone {
    padding: 30px 20px;
  }

  .upload-icon {
    font-size: 2.5rem;
  }

  .upload-text {
    font-size: 1rem;
  }
}

