/* css/convertidor.css */
/* Estilos para el convertidor de archivos */

.convertidor-container {
  padding: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.convertidor-header {
  text-align: center;
  margin-bottom: var(--space-xxl);
}

.convertidor-header h2 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.convertidor-header p {
  color: var(--color-text-muted);
}

/* Drop Zone */
.convertidor-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xxl);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: var(--space-xxl);
}

.convertidor-dropzone:hover {
  border-color: var(--color-primary);
  background: rgba(0, 86, 179, 0.05);
}

.convertidor-dropzone.drag-over {
  border-color: var(--color-primary);
  background: rgba(0, 86, 179, 0.1);
  transform: scale(1.02);
}

.dropzone-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.convertidor-dropzone h3 {
  margin-bottom: var(--space-sm);
}

.convertidor-dropzone p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.convertidor-dropzone small {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Lista de archivos */
.convertidor-files-section {
  margin-bottom: var(--space-xxl);
}

.convertidor-files-section h3 {
  margin-bottom: var(--space-lg);
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.file-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
}

.file-icon {
  font-size: 2rem;
}

.file-info {
  flex: 1;
}

.file-info strong {
  display: block;
  margin-bottom: var(--space-xs);
}

.file-info p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.btn-remove {
  background: rgba(220, 53, 69, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.btn-remove:hover {
  background: rgba(220, 53, 69, 0.4);
}

.empty-state {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-muted);
}

/* Operaciones */
.convertidor-operations h3 {
  margin-bottom: var(--space-lg);
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xxl);
}

.operation-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.operation-btn:hover:not(:disabled) {
  background: rgba(0, 86, 179, 0.1);
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.operation-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.operation-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.operation-btn h4 {
  margin-bottom: var(--space-sm);
}

.operation-btn p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Panel de operación */
.convertidor-operation-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-secondary);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-xl);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 100;
}

.convertidor-operation-panel.active {
  transform: translateY(0);
}

.operation-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.operation-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.operation-progress {
  margin-top: var(--space-lg);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.progress-fill {
  height: 100%;
  background: var(--color-primary);
  width: 0%;
  transition: width 0.3s ease;
}

#progressText {
  text-align: center;
  color: var(--color-text-muted);
}

/* Secciones del convertidor */
.convertidor-section {
  margin-bottom: var(--space-xxl);
}

.convertidor-section > h3 {
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  font-size: 1.25rem;
}

/* Texto blanco en botones de operación */
.operation-btn h4 {
  color: #ffffff;
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.operation-btn p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: normal;
}

.operation-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  filter: none;
}