body {
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  background-color: #f8f9fa;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.page-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 2rem; /* was 0.2rem before, now more breathing room */
}

.subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.2rem; /* adds distance between subtitle and input */
}

input {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  padding: 0.6rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #0056b3;
}

.warning-message {
  color: #cc0000;
  font-size: 0.85rem;
  margin-top: -0.5rem;
  height: 1rem; /* reserves space to avoid layout shift */
}

.footer {
  position: fixed;
  bottom: 20px; /* a bit of distance from bottom */
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
}

.footer a {
  color: #004080;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 64, 128, 0.3);
  transition: border-color 0.2s;
}

.footer a:hover {
  border-color: rgba(0, 64, 128, 0.6);
}

.title-wrapper {
  display: flex;
  align-items: center;   /* vertically centers logo with title */
  justify-content: center; /* center horizontally on page */
  gap: 0.4rem;           /* was 0.8, spacing between logo and text */
  margin-bottom: 0.0rem;   /* was 2, space below title and search box */
}

.logo {
  width: 48px; /* was 48px before */
  height: 48px; /* was 48px before */
  margin-bottom: 1rem;
}

/* Responsive: stack logo above title on narrow screens */
@media (max-width: 480px) {
  .title-wrapper {
    flex-direction: column;  /* stack vertically */
    gap: 0.4rem;             /* smaller spacing when stacked */
  }
}

.bookmark-instruction {
  font-size: 0.8rem;
  color: #555;
  margin-top: 0.3rem;
  text-align: center;
}