/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #333;
  padding: 2rem;
}

.container {
  max-width: 640px;
  margin: 0 auto;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: #666;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: monospace;
}

.form-input:focus {
  outline: none;
  border-color: #4a90d9;
}

.format-hint {
  margin-top: 0.4rem;
}

.format-labels {
  display: flex;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #777;
}

.format-labels span {
  flex: 1;
}

.format-note {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #bbb;
}

.btn {
  padding: 0.75rem 1.5rem;
  background: #4a90d9;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

.btn:hover {
  background: #357abd;
}

.samples {
  margin-top: 1.5rem;
}

.samples-label {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sample-btn {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: #4a90d9;
  border: 1px solid #4a90d9;
  border-radius: 4px;
  text-decoration: none;
}

.sample-btn:hover {
  background: #4a90d9;
  color: white;
}

.result {
  margin-top: 2rem;
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
}

.result.error {
  border-color: #e74c3c;
  color: #e74c3c;
}

.error-message {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.error-hint {
  font-size: 0.9rem;
  color: #c0392b;
  line-height: 1.6;
}

.error-hint code {
  font-family: monospace;
  background: #fdecea;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  white-space: nowrap;
}

.description h2 {
  font-family: monospace;
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.human-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.next-times {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.next-times h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.next-times ul {
  list-style: none;
}

.next-times li {
  padding: 0.4rem 0;
  color: #555;
  font-size: 0.95rem;
  border-bottom: 1px solid #f0f0f0;
}

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