/* AI Text Converter 工具样式 */

.results-title {
  font-size: 18px;
  color: #212529;
  margin: 20px 0 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f3f5;
}

.output-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.output-card {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.output-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.output-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.output-label {
  font-weight: 600;
  font-size: 14px;
  color: #212529;
}

.copy-btn {
  padding: 6px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background-color: #ffffff;
  color: #495057;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background-color: #e9ecef;
  border-color: #ced4da;
}

.copy-btn.copied {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.output-content {
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #495057;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 250px;
  overflow-y: auto;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #6c757d;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e9ecef;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

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

.loading-text {
  font-size: 14px;
}

.error-state {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 16px;
  color: #721c24;
  margin: 16px 0;
}

.error-state p {
  margin: 0;
  font-size: 14px;
}

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 16px;
  background-color: #f8f9fa;
  border-radius: 6px;
  margin-top: 16px;
  font-size: 13px;
  color: #6c757d;
}

.stats-bar span strong {
  color: #212529;
  font-weight: 600;
}

@media (max-width: 768px) {
  .output-panel {
    grid-template-columns: 1fr;
  }

  .stats-bar {
    gap: 12px;
    font-size: 12px;
  }

  .output-content {
    max-height: 200px;
  }
}
