.grade-table td {
  min-width: 160px;
  vertical-align: top;
}

.cell-item {
  padding: 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
  margin-bottom: 6px;
}

.blur-text {
  filter: blur(4px);
  user-select: none;
}

html[data-bs-theme='dark'] .cell-item {
  background: rgba(255, 255, 255, 0.08);
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-header {
  padding: 10px 0;
}

.app-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.app-brand {
  font-size: 1.2rem;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.header-logo {
  width: 32px;
  height: auto;
}

.header-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.header-actions > * {
  white-space: nowrap;
}

.header-welcome {
  color: rgba(255, 255, 255, 0.85);
}

.theme-toggle-button {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  outline: none;
  border-radius: 0.7rem;
  transition: none;
}

.theme-toggle-button:hover,
.theme-toggle-button:focus,
.theme-toggle-button:active {
  background: transparent;
  box-shadow: none;
}

.auth-button {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  color: #fff;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: none;
}

.auth-button:hover,
.auth-button:focus,
.auth-button:active {
  background: transparent;
  color: #fff;
  box-shadow: none;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.theme-toggle-button .bi {
  font-size: 1.1rem;
}

html[data-bs-theme='dark'] .theme-toggle-button {
  border: none;
}

@media (max-width: 768px) {
  .app-header .container {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .header-actions {
    width: auto;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .auth-button {
    padding: 0.3rem 0.6rem;
    font-size: 0.95rem;
  }

  .theme-toggle-button {
    width: 2.2rem;
    height: 2.2rem;
  }

  .app-brand {
    font-size: 1rem;
  }

  .header-welcome {
    display: none;
  }
}
