.app-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.notification-card {
  margin-bottom: 0.75rem;
}

.game-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inline-form {
  margin: 0;
}

.nav-menu-form {
  width: 100%;
}

.nav-menu-button {
  width: 100%;
  margin: 0;
  padding: var(--pico-nav-link-spacing-vertical)
    var(--pico-nav-link-spacing-horizontal);
  border: 0;
  background: transparent;
  color: var(--pico-color);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nav-menu-button:hover,
.nav-menu-button:focus {
  background-color: var(--pico-dropdown-hover-background-color);
  color: var(--pico-color);
}

.players-table {
  font-size: 0.9rem;
}

.players-table td,
.players-table th {
  padding: 0.35rem 0.5rem;
}

.players-table th:first-child,
.players-table td:first-child {
  width: 42%;
}

.players-table th:nth-child(2),
.players-table td:nth-child(2) {
  width: 40%;
}

.players-table th:nth-child(3),
.players-table td:nth-child(3) {
  width: 18%;
  white-space: nowrap;
}

.invitations-table th:first-child,
.invitations-table td:first-child {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

.invitations-table th:nth-child(2),
.invitations-table td:nth-child(2) {
  width: 59%;
}

.invitations-table th:nth-child(3),
.invitations-table td:nth-child(3) {
  width: 40%;
  white-space: nowrap;
}

.confirmed-details summary {
  cursor: pointer;
}

/* Tabs styling */
.games-tabs {
  margin-top: 1rem;
}

.games-tabs input[type="radio"] {
  display: none;
}

.games-tabs label {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin-right: 0.25rem;
  cursor: pointer;
  background-color: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-bottom: none;
  border-radius: 0.25rem 0.25rem 0 0;
  transition: background-color 0.2s;
}

.games-tabs label:hover {
  background-color: var(--pico-secondary-background);
}

.games-tabs input[type="radio"]:checked + label {
  background-color: var(--pico-primary-background);
  color: var(--pico-primary-inverse);
  font-weight: bold;
}

.games-tabs .tab-content {
  display: none;
  padding: 1.5rem;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 0 0.25rem 0.25rem 0.25rem;
  background-color: var(--pico-card-background-color);
}

#tab-upcoming:checked ~ .tab-content#content-upcoming {
  display: block;
}

#tab-past:checked ~ .tab-content#content-past {
  display: block;
}

@media (max-width: 900px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
}
