* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f4f6f9;
  color: #333333;
  padding: 40px 20px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
header {
  margin-bottom: 30px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 20px;
}
header h1 {
  font-size: 28px;
  font-weight: 500;
  color: #1e293b;
}
header p {
  color: #64748b;
  margin-top: 5px;
  font-size: 14px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.card {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 30px;
}
.card-header {
  background-color: #1e293b;
  color: #ffffff;
  padding: 15px 20px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.5px;
}
.card-body {
  padding: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 13px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease-in-out;
  background-color: #f8fafc;
}
.form-control:focus {
  outline: none;
  border-color: #3b82f6;
  background-color: #ffffff;
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.btn {
  display: inline-block;
  width: 100%;
  padding: 12px;
  background-color: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.15s ease-in-out;
}
.btn:hover {
  background-color: #2563eb;
}
.btn:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
}
.label-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.label-wrapper label {
  margin-bottom: 0;
}
.btn-copy {
  background: none;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  color: #475569;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s ease;
}
.btn-copy:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}
.output-control {
  background-color: #f1f5f9;
  color: #334155;
  cursor: not-allowed;
}
.stats-panel {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 14px;
}
.stats-label {
  color: #64748b;
}
.stats-value {
  color: #0f172a;
}
.loader-container {
  display: none;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 15px;
  border-radius: 6px;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.loader-text {
  display: flex;
  flex-direction: column;
}
.loader-title {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}
.loader-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

    .loader-container {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 15px;
      padding: 20px;
      margin-top: 15px;
      background: #f8fafc;
      border: 1px dashed #cbd5e1;
      border-radius: 6px;
    }
    .spinner {
      border: 3px solid #e2e8f0;
      border-top: 3px solid #2563eb;
      border-radius: 50%;
      width: 24px;
      height: 24px;
      animation: spin 0.8s linear infinite;
      flex-shrink: 0;
    }
    .loader-text {
      display: flex;
      flex-direction: column;
      font-size: 13px;
      color: #475569;
      line-height: 1.4;
      text-align: left;
    }
    .loader-title {
      font-weight: 700;
      color: #1e293b;
    }
    .loader-subtitle {
      font-size: 12px;
      color: #64748b;
      white-space: pre-line;
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
@keyframes spin {
  to { transform: rotate(360deg); }
}
.response-section {
  margin-top: 20px;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
  display: none;
}
