/* Global Styles */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f9fafb;
  color: #111827;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

h1 {
  text-align: center;
  margin-bottom: 0.25rem;
}

h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1d4ed8;
}

p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

p.subtitle {
  text-align: center;
  color: #4b5563;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

footer {
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 1rem;
}

/* Navigation Bar & Info Boxes */
.avg-box {
  text-align: center;
  background: #e0f2fe;
  color: #1d4ed8;
  padding: 0.75rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.avg-box a {
  color: #1d4ed8;
  text-decoration: none;
}

.avg-box a:hover {
  text-decoration: underline;
}

.nav-bar {
  text-align: center;
  background: #e0f2fe;
  color: #1d4ed8;
  padding: 0.75rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.nav-bar a {
  color: #1d4ed8;
  text-decoration: none;
  margin: 0 1rem;
}

.nav-bar a:hover {
  text-decoration: underline;
}

/* Form Styles */
form {
  background: #fff;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.inline-group {
  display: flex;
  gap: 0.5rem;
}

.inline-group > div {
  flex: 1;
}

.hint {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

button {
  width: 100%;
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

#status {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600; 
}

.hidden {
  display: none;
}

/* Rating Stars */
.rating {
  display: flex;
  gap: 0.2rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fbbf24;
}

.rating span {
  color: #d1d5db;
  transition: color 0.2s;
}

.rating span.hover,
.rating span.selected {
  color: #fbbf24;
}

/* Tip Card Styles */
.tip-card {
  background: #fff;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.tip-card .field {
  margin-bottom: 0.5rem;
}

.tip-card .field label {
  font-weight: 600;
  display: inline-block;
  width: 200px;
}

.tip-card .field span {
  display: inline-block;
}

@media (max-width: 600px) {
  .tip-card .field label {
    width: 100%;
    margin-bottom: 0.2rem;
  }
  .tip-card .field span {
    display: block;
  }
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  align-items: center;
}

.pagination a,
.pagination span {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #e5e7eb;
  color: #111827;
  text-decoration: none;
  border: 1px solid #d1d5db;
}

.pagination a:hover {
  background: #d1d5db;
}

.pagination .active {
  background: #3b82f6;
  color: white;
  border-color: #2563eb;
}

.pagination .disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  border-color: #e5e7eb;
}

.page-info {
  text-align: center;
  color: #6b7280;
  margin-top: 1rem;
  font-size: 0.875rem;
}

/* Feature List Styles (About Page) */
.feature-list {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.feature-list ul {
  margin: 0;
  padding-left: 1.5rem;
}

.feature-list li {
  margin-bottom: 0.75rem;
}

/* Highlight Box */
.highlight {
  background: #fef3c7;
  padding: 1rem;
  border-radius: 0.75rem;
  border-left: 4px solid #fbbf24;
  margin-bottom: 1rem;
}
