/* Format 页面特定样式 */
.format-list-container {
  width: 100%;
  margin-bottom: 20px;
  max-height: 50vh;
  min-height: 200px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  background-color: #f9fafb;
}

.format-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.format-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s;
}

.format-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.format-thumb {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
  background-color: #f3f4f6;
  flex-shrink: 0;
}

.format-info {
  flex: 1;
  min-width: 0;
}

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

.file-meta {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background-color: #f3f4f6;
  color: #6b7280;
}

.status-badge.success {
  background-color: #dcfce7;
  color: #166534;
}

.action-btn-sm {
  padding: 4px 12px;
  font-size: 12px;
  background-color: #2563eb;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.action-btn-sm:hover {
  background-color: #1d4ed8;
}

/* 按钮样式复用 */
.secondary-button {
  background-color: #9ca3af;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  height: 48px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.secondary-button:hover {
  background-color: #6b7280;
}

.save-button.secondary {
  background-color: #52c41a;
  margin-left: 10px;
}

.save-button.secondary:hover {
  background-color: #389e0d;
}

/* 滑块样式 */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  margin-top: -6px;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: #e5e7eb;
  border-radius: 2px;
}

/* 响应式 */
@media (max-width: 640px) {
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .control-group {
    justify-content: space-between;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .action-buttons button {
    width: 100%;
    margin: 0 !important;
  }
}
