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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e4e4e7;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

.back {
  display: inline-block;
  color: #818cf8;
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.back:hover {
  text-decoration: underline;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.subtitle {
  color: #a1a1aa;
  font-size: 1rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-section {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #d4d4d8;
}

input[type="text"] {
  width: 100%;
  padding: 1rem;
  font-size: 1.5rem;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  text-align: center;
  letter-spacing: 0.1em;
}

input[type="text"]:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.field-hints {
  display: flex;
  justify-content: space-around;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #71717a;
  padding: 0 1rem;
}

.primary-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

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

.results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-card h3 {
  font-size: 0.85rem;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.highlight-text {
  font-size: 1.25rem;
  color: #22c55e;
  font-weight: 600;
}

.highlight-text.error {
  color: #ef4444;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.field-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.field-name {
  font-size: 0.7rem;
  color: #71717a;
  margin-bottom: 0.25rem;
}

.field-value {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 1rem;
  color: #818cf8;
  font-weight: 600;
}

.next-runs-list {
  list-style: none;
}

.next-runs-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 0.9rem;
  color: #d4d4d8;
}

.next-runs-list li:last-child {
  border-bottom: none;
}

.examples-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.examples-section h3 {
  font-size: 0.85rem;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.example-btn {
  padding: 0.625rem 1rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.example-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #818cf8;
  color: #fff;
}

footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #71717a;
  font-size: 0.875rem;
}

footer a {
  color: #818cf8;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .field-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .examples-grid {
    grid-template-columns: 1fr;
  }
  
  input[type="text"] {
    font-size: 1.25rem;
  }
}
