body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

.container {
  max-width: 400px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  text-align: center;
}

.header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.content {
  padding: 20px;
}

.config-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #667eea;
}

.config-section h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

/* 复选框组样式 */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  min-width: 60px;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  cursor: pointer;
  accent-color: #4285f4;
}

.checkbox-item:hover {
  color: #4285f4;
}

/* 响应式设计 */
@media (max-width: 400px) {
  .checkbox-group {
    flex-direction: column;
    gap: 10px;
  }

  .checkbox-item {
    min-width: auto;
  }
}

.form-group {
  margin-bottom: 15px;
}

.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #555;
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.translate-section {
  margin-bottom: 20px;
}

.translate-section textarea {
  min-height: 80px;
  resize: vertical;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

button {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
}

.btn-secondary:hover {
  background: #cbd5e0;
}

.btn-success {
  background: #38a169;
  color: white;
}

.btn-success:hover {
  background: #2f855a;
  transform: translateY(-1px);
}

.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff40;
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
}

.status.success {
  background: #f0fff4;
  color: #38a169;
  border: 1px solid #9ae6b4;
}

.status.error {
  background: #fed7d7;
  color: #e53e3e;
  border: 1px solid #feb2b2;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 弹窗主体 */
.status-modal {
  background: white;
  border-radius: 12px;
  padding: 24px 32px;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.show .status-modal {
  transform: scale(1);
}

/* 状态消息样式 */
.status-message {
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
}

/* 不同类型的状态样式 */
.status-modal.success {
  border-left: 4px solid #4caf50;
}

.status-modal.success .status-message {
  color: #2e7d32;
}

.status-modal.error {
  border-left: 4px solid #f44336;
}

.status-modal.error .status-message {
  color: #c62828;
}

.status-modal.info {
  border-left: 4px solid #2196f3;
}

.status-modal.info .status-message {
  color: #1565c0;
}

.status-modal.warning {
  border-left: 4px solid #ff9800;
}

.status-modal.warning .status-message {
  color: #e65100;
}

/* 关闭按钮 */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.close-btn:hover {
  background-color: #f5f5f5;
  color: #666;
}

/* 状态图标 */
.status-icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
}

.success .status-icon::before {
  content: "✅";
}

.error .status-icon::before {
  content: "❌";
}

.info .status-icon::before {
  content: "ℹ️";
}

.warning .status-icon::before {
  content: "⚠️";
}

.collapsible {
  cursor: pointer;
  user-select: none;
}

.collapsible:hover {
  background: #f0f2f5;
}

.config-content {
  display: none;
}

.config-content.active {
  display: block;
}

.toggle-icon {
  float: right;
  transition: transform 0.2s ease;
}

.toggle-icon.active {
  transform: rotate(180deg);
}

.progress-container {
  margin: 15px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
}

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

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 12px;
  color: #4a5568;
  text-align: center;
}

.error-item {
  padding: 8px 12px;
  margin: 5px 0;
  background: #fed7d7;
  border: 1px solid #feb2b2;
  border-radius: 4px;
  font-size: 12px;
  color: #e53e3e;
}

.success-item {
  padding: 8px 12px;
  margin: 5px 0;
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  border-radius: 4px;
  font-size: 12px;
  color: #38a169;
}

.validation-error {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.1) !important;
}

.validation-message {
  font-size: 11px;
  color: #e53e3e;
  margin-top: 4px;
}
