@import url('../../src/styles/_converter.css');
@import url('../../src/styles/_buttons.css');
@import url('../../src/styles/_options.css');
@import url('../../src/styles/_progress.css');

.drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(99,102,241,0.04);
  transform: scale(1.01);
}

.file-list-container {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.file-list-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 300px;
  overflow-y: auto;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(0,184,148,0.05);
  border-radius: var(--radius-sm);
  cursor: grab;
  transition: var(--transition);
}

.file-item:hover {
  background: rgba(0,184,148,0.1);
}

.file-item.dragging {
  opacity: 0.5;
}

.file-drag-handle {
  color: var(--text-secondary);
  cursor: grab;
}

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

.file-name {
  flex: 1;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
}

.file-size {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.file-remove-btn {
  background: var(--error);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.file-remove-btn:hover {
  background: #D63031;
}

.file-list-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.file-list-hint {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.validation-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.validation-message.error {
  background: rgba(239,68,68,0.1);
  color: var(--error);
  border: 1px solid rgba(239,68,68,0.2);
}

.validation-message.success {
  background: rgba(16,185,129,0.1);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.2);
}