body { font-family: system-ui, Arial, sans-serif; margin: 0; }
nav a, nav span { color: #fff; text-decoration: none; }
nav {
  display: flex;
  justify-content: space-between; /* left links stay left, login goes right */
  align-items: center;
  padding: 0.5rem 1rem;
  background: #222;
  gap: 1rem;
}

.nav-left a {
  margin-right: 1rem;
}

.nav-right {
  display: flex;
  flex-direction: column; /* login form above, signup link below */
  align-items: flex-end;
}

.nav-login-form {
  display: flex;
  gap: 0.5rem;
}

.nav-login-form input {
  padding: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.nav-login-form button {
  padding: 0.3rem 0.8rem;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.nav-login-form button:hover {
  background: #0056b3;
}

.nav-signup-link {
  margin-top: 0.3rem;
}
main { padding: 1.5rem; max-width: 900px; margin: 0 auto; }
.flash { list-style: none; padding: 0; }
.flash li { background: #ffefc1; border: 1px solid #f0d98c; margin: 0.5rem 0; padding: 0.5rem; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  display: block;             /* make the anchor behave like a block card */
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;      /* remove underline */
  color: inherit;             /* inherit text color */
  cursor: pointer;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

#bonus-bar {
  position: relative;
  width: 100%;
  height: 10px;
  border: 1px solid black;
}
#progress-completed {
  background-color: green;
  height: 8px;
  width: 25%; /* example: 1/4 of screen */
}
#progress-potential {
  background-color: blue;
  height: 8px;
  width: 75%; /* remaining potential */
  position: absolute;
  left: 25%;
  top: 1px;
}

/* Visually hidden but accessible label utility */
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}