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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  background: radial-gradient(circle at top, #1e293b, #020617 45%, #000000 100%);
  color: #e5e7eb;
  min-height: 100vh;
}

.app-container {
  max-width: 100%;
  margin: 0;
  padding: 24px 16px 32px;
}

.app-header {
  text-align: center;
  margin-bottom: 24px;
}

.app-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f9fafb;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: #9ca3af;
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section,
.result-section {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(129, 140, 248, 0.16), transparent 55%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
}

.field-label {
  display: block;
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 6px;
}

.text-input {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  background-color: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.text-input::placeholder {
  color: #6b7280;
}

.text-input:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.65);
  background-color: rgba(15, 23, 42, 0.9);
}

.field-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.field-group {
  flex: 1 1 200px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #22c55e, #a3e635);
  color: #022c22;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  font-size: 14px;
  box-shadow: 0 16px 35px rgba(21, 128, 61, 0.6);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease,
    background 0.1s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.8);
}

.primary-button:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.65);
}

.primary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.status-message {
  margin-top: 10px;
  font-size: 13px;
  min-height: 18px;
}

.status-message.info {
  color: #38bdf8;
}

.status-message.success {
  color: #4ade80;
}

.status-message.error {
  color: #fb7185;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.result-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #f9fafb;
}

.result-summary {
  font-size: 12px;
  color: #9ca3af;
}

.table-wrapper {
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background-color: rgba(15, 23, 42, 0.9);
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.result-table thead {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.9));
}

.result-table th,
.result-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.result-table th {
  font-weight: 600;
  color: #e5e7eb;
  white-space: nowrap;
}

.result-table tbody tr:nth-child(even) {
  background-color: rgba(15, 23, 42, 0.8);
}

.result-table tbody tr:nth-child(odd) {
  background-color: rgba(15, 23, 42, 0.75);
}

.placeholder-row td {
  text-align: center;
  color: #6b7280;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  word-break: break-all;
}

.secondary-link {
  color: #38bdf8;
  text-decoration: none;
}

.secondary-link:hover {
  text-decoration: underline;
}

.app-footer {
  margin-top: 16px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

@media (max-width: 720px) {
  .app-container {
    padding-top: 18px;
  }

  .app-header h1 {
    font-size: 22px;
  }

  .form-section,
  .result-section {
    padding: 14px 12px 16px;
  }

  .result-table th,
  .result-table td {
    padding: 7px 8px;
  }
}


