:root {
  --hcfg-bg-primary: #fff;
  --hcfg-bg-secondary: #e9ecef;
  --hcfg-bg-tertiary: #ced4da;
  --hcfg-text-primary: #1c1c1c;
  --hcfg-text-secondary: #b3b3b3;
  --hcfg-accent-primary: #f0f7fe;
  --hcfg-accent-secondary: #0078fa;
  --hcfg-btn-primary-hover: #3393fb;
  --hcfg-accent-gradient: linear-gradient(135deg, #f0f7fe, #0078fa);
  --hcfg-border: #e2e8f0;
  --hcfg-shadow: rgba(0, 212, 255, 0.3);
  --hcfg-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--hcfg-text-primary);
  transition: var(--hcfg-transition);
  min-height: 100vh;
}

.hcfg-input-section {
  background: var(--hcfg-bg-primary);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--hcfg-border);
}

.hcfg-input-label {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
  color: #111;
}

.hcfg-textarea {
  width: 100%;
  min-height: 120px;
  padding: 20px;
  border: 2px solid var(--hcfg-border);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  background: #f8fafc;
  color: #334155;
  transition: all 0.2s ease;
}

.hcfg-outputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.hcfg-output-card {
  background: var(--hcfg-bg-secondary);
  border: 2px solid var(--hcfg-border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: var(--hcfg-transition);
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(20px);
  animation: hcfg-fadeInUp 0.5s ease-out forwards;
}

@keyframes hcfg-fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hcfg-output-card {
  background: var(--hcfg-bg-primary);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--hcfg-border);
  transition: all 0.2s ease;
}

.hcfg-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.hcfg-output-label {
  font-weight: 600;
  color: var(--hcfg-text-primary);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hcfg-wrapper button {
  all: unset;
  display: inline-block;
  cursor: pointer;
  background: var(--hcfg-accent-secondary);
  color: var(--hcfg-bg-primary);
  border: none;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hcfg-copy-btn:hover {
  background: var(--hcfg-btn-primary-hover);
  transform: translateY(-1px);
}

.hcfg-copy-btn:active {
  transform: translateY(0);
}

.hcfg-output-text {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 12px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
}

.hcfg-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--hcfg-text-primary);
}

.hcfg-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.hcfg-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--hcfg-border);
  border-top: 3px solid var(--hcfg-accent-primary);
  border-radius: 50%;
  animation: hcfg-spin 1s linear infinite;
}

@keyframes hcfg-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .header {
    margin-bottom: 2rem;
  }

  .hcfg-outputs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --hcfg-border: #fff;
    --hcfg-shadow: rgba(255, 255, 255, 0.5);
  }
}
