@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;600;700&family=Noto+Sans+Math&display=swap");
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: "Noto Sans JP", "Noto Sans Math", sans-serif;
  margin: 0;
  padding: 0;
  background-color: hsl(215, 30%, 98%);
  color: hsl(215, 15%, 25%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.75em;
  font-weight: 600;
  color: #21252c;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}

a {
  color: hsl(210, 70%, 55%);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover {
  color: hsl(210, 70%, 40%);
  text-decoration: underline;
}

input[type=text],
input[type=password],
input[type=email],
input[type=number],
textarea {
  padding: 10px 12px;
  border: 1px solid hsl(215, 25%, 88%);
  border-radius: 4px;
  font-family: "Noto Sans JP", "Noto Sans Math", sans-serif;
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=number]:focus,
textarea:focus {
  outline: none;
  border-color: hsl(210, 70%, 55%);
  box-shadow: 0 0 0 3px hsla(210, 70%, 55%, 0.2);
}

.app-container {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.sidebar {
  width: 280px;
  background-color: white;
  border-right: 1px solid hsl(215, 25%, 88%);
  padding: 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.sidebar .auth-section-sidebar {
  min-height: 0;
}

.title-section {
  text-align: center;
  width: 100%;
  padding-bottom: 10px;
}
.title-section h1 {
  font-size: 2.5rem;
  color: hsl(210, 70%, 40%);
  margin-top: 0;
  margin-bottom: 0;
}
.title-section h2 {
  font-size: 1.5rem;
  color: hsl(215, 15%, 55%);
  font-weight: 400;
  margin-top: 0.5em;
  margin-bottom: 0;
}

.main-content {
  flex: 1;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;
}

.dynamic-content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.leaderboard-panel {
  width: 320px;
  background-color: white;
  border-left: 1px solid hsl(215, 25%, 88%);
  padding: 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.leaderboard-content-wrapper {
  flex-grow: 1;
  min-height: 0;
  overflow-y: auto;
}

.quiz-select-container {
  flex-grow: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 10px;
  margin-right: -10px;
}
.quiz-select-container h3 {
  margin-bottom: 1.2em;
  color: hsl(210, 70%, 40%);
  border-bottom: 2px solid hsl(210, 70%, 85%);
  padding-bottom: 0.5em;
}

.subject-section {
  margin-bottom: 12px;
  border: 1px solid hsl(215, 25%, 94%);
  border-radius: 8px;
  background-color: hsl(0, 0%, 100%);
  box-shadow: 0 1px 3px hsla(215, 15%, 50%, 0.05);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.subject-section:hover {
  box-shadow: 0 3px 8px hsla(215, 15%, 50%, 0.08);
}
.subject-section.subject-addition {
  border-left: 4px solid #8bc34a;
}
.subject-section.subject-subtraction {
  border-left: 4px solid #4caf50;
}
.subject-section.subject-multiplication {
  border-left: 4px solid #03a9f4;
}
.subject-section.subject-division {
  border-left: 4px solid #2196f3;
}
.subject-section.subject-root {
  border-left: 4px solid rgba(221, 3, 3, 0.7803921569);
}
.subject-section.subject-number {
  border-left: 4px solid #ff9800;
}
.subject-section.subject-geometry {
  border-left: 4px solid #ff5722;
}
.subject-section.subject-statistics {
  border-left: 4px solid #f44336;
}
.subject-section.subject-algebra {
  border-left: 4px solid #9c27b0;
}
.subject-section.subject-time {
  border-left: 4px solid #795548;
}
.subject-section.subject-random {
  border-left: 4px solid #06011f;
}

.collapsible-header {
  background-color: transparent;
  padding: 12px 15px;
  margin: 0;
  cursor: pointer;
  user-select: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background-color 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.collapsible-header:hover {
  background-color: hsl(215, 20%, 96%);
}

.quiz-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), padding 0.4s ease;
}
.subject-section.expanded .quiz-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px 0;
  border-top: 1px solid hsl(215, 25%, 94%);
}
.quiz-list li {
  padding: 10px 20px 18px 30px;
  cursor: pointer;
  border-bottom: 1px solid hsl(215, 25%, 94%);
  transition: background-color 0.25s ease, color 0.25s ease;
  position: relative;
}
.quiz-list li:last-child {
  border-bottom: none;
}
.quiz-list li:hover {
  background-color: hsl(210, 70%, 85%);
  color: hsl(210, 70%, 40%);
}
.quiz-list li:hover .quiz-difficulty {
  color: hsl(210, 70%, 40%);
  background-color: #d4e6f7;
}
.quiz-list li .quiz-difficulty {
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: hsl(215, 15%, 55%);
  opacity: 0.9;
  background-color: hsl(215, 20%, 96%);
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.quiz-list li.selected {
  background-color: hsl(210, 70%, 55%);
  color: white;
  font-weight: 600;
}
.quiz-list li.selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: hsl(210, 70%, 40%);
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}
.quiz-list li.selected::after {
  content: "✓";
  font-weight: bold;
  margin-left: 8px;
  color: #e9f2fb;
  float: right;
}
.quiz-list li.selected .quiz-difficulty {
  color: hsl(210, 70%, 40%);
  background-color: hsl(210, 70%, 85%);
}

.current-selection-display {
  margin-top: 20px;
  padding: 10px 15px;
  background-color: hsl(215, 20%, 95%);
  border-radius: 4px;
  border: 1px solid hsl(215, 25%, 88%);
  font-style: italic;
  color: hsl(215, 15%, 55%);
  font-size: 0.9rem;
  text-align: center;
}

.start-section {
  text-align: center;
  background-color: hsl(0, 0%, 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px hsla(215, 20%, 50%, 0.1);
  padding: 20px;
  max-width: 500px;
}
.start-section h2 {
  color: hsl(210, 70%, 40%);
  margin-bottom: 0.5em;
}
.start-section p {
  color: hsl(215, 15%, 55%);
  font-size: 1.1rem;
  margin-bottom: 1.5em;
}
.start-section button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #614a05;
  background-color: hsl(45, 90%, 60%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  font-size: 1.1rem;
  padding: 12px 25px;
}
.start-section button:hover:not(:disabled) {
  background-color: #f7d264;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.start-section button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.start-section button:disabled {
  background-color: #e8e0c9;
  color: #d1c294;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.quiz-section {
  width: 100%;
  max-width: 650px;
  background-color: hsl(0, 0%, 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px hsla(215, 20%, 50%, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid hsl(215, 25%, 94%);
  font-size: 1rem;
  font-weight: 600;
}
.quiz-header .timer {
  color: hsl(210, 70%, 55%);
  background-color: hsl(210, 70%, 85%);
  padding: 5px 12px;
  border-radius: 4px;
}
.quiz-header .progress {
  color: hsl(215, 15%, 55%);
}

.question {
  text-align: center;
}
.question h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5em;
  line-height: 1.4;
  color: hsl(215, 15%, 25%);
  font-family: "Noto Sans Math", "Noto Sans JP", "Noto Sans Math", sans-serif;
}
.question form {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
}
.question form input[type=text] {
  min-width: 150px;
  width: auto;
  padding: 12px 15px;
  font-size: 1.1rem;
  text-align: center;
}
.question form button[type=submit] {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(145, 60%, 50%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  padding: 12px 25px;
}
.question form button[type=submit]:hover:not(:disabled) {
  background-color: #54d489;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.question form button[type=submit]:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.question form button[type=submit]:disabled {
  background-color: #b9c6be;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.choice-button-quiz-container {
  width: 100%;
  text-align: center;
}
.choice-button-quiz-container h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5em;
  line-height: 1.4;
  color: hsl(215, 15%, 25%);
  font-family: "Noto Sans Math", "Noto Sans JP", "Noto Sans Math", sans-serif;
}

.choice-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  gap: 15px;
}

.choice-option-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: hsl(215, 15%, 25%);
  background-color: hsl(215, 20%, 90%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  font-size: 1.2rem;
  padding: 15px 25px;
  font-weight: 600;
  font-family: "Noto Sans Math", "Noto Sans JP", "Noto Sans Math", sans-serif;
  border: 2px solid hsl(215, 25%, 88%);
  border-radius: 8px;
  box-shadow: 0 4px 12px hsla(215, 20%, 50%, 0.1);
  flex: 0 1 auto;
  min-width: 300px;
  max-width: 100%;
}
.choice-option-button:hover:not(:disabled) {
  background-color: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.choice-option-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.choice-option-button:disabled {
  background-color: white;
  color: #bfbfbf;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.choice-option-button:hover:not(:disabled) {
  background-color: hsl(215, 20%, 85%);
  border-color: hsl(215, 20%, 75%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}

.comparison-separator {
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(215, 15%, 55%);
  display: flex;
  align-items: center;
}

.result-section {
  text-align: center;
  background-color: hsl(0, 0%, 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px hsla(215, 20%, 50%, 0.1);
  padding: 20px;
  max-width: 500px;
}
.result-section h2 {
  font-size: 2rem;
  margin-bottom: 1em;
  font-weight: 700;
}
.result-section h2.Alla.rätt {
  color: hsl(145, 65%, 45%);
}
.result-section h2.Fel.svar {
  color: hsl(0, 70%, 55%);
}
.result-section .failure-details {
  text-align: left;
  background-color: hsl(215, 25%, 94%);
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border: 1px solid hsl(215, 25%, 88%);
}
.result-section .failure-details p {
  margin-bottom: 0.75rem;
}
.result-section .failure-details p:last-child {
  margin-bottom: 0;
}
.result-section .result-actions {
  margin-top: 25px;
}
.result-section .result-actions button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #614a05;
  background-color: hsl(45, 90%, 60%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  font-size: 1.1rem;
  padding: 12px 25px;
}
.result-section .result-actions button:hover:not(:disabled) {
  background-color: #f7d264;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.result-section .result-actions button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.result-section .result-actions button:disabled {
  background-color: #e8e0c9;
  color: #d1c294;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.leaderboard-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.leaderboard-container h2 {
  text-align: center;
  color: hsl(210, 70%, 40%);
  margin-bottom: 0;
}

.submit-score {
  background-color: hsl(0, 0%, 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px hsla(215, 20%, 50%, 0.1);
  padding: 20px;
  background-color: hsl(210, 70%, 85%);
  border: 1px solid #93bfec;
}
.submit-score h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: hsl(210, 70%, 40%);
  text-align: center;
  margin-bottom: 1em;
}
.submit-score p {
  text-align: center;
  font-weight: 600;
  color: hsl(215, 15%, 25%);
  margin-bottom: 1em;
}
.submit-score form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.submit-score form input[type=text] {
  text-align: center;
}
.submit-score form button[type=submit] {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(210, 70%, 55%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
}
.submit-score form button[type=submit]:hover:not(:disabled) {
  background-color: #5fa1e3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.submit-score form button[type=submit]:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.submit-score form button[type=submit]:disabled {
  background-color: #c2ccd6;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.status-message {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  font-size: 0.95rem;
}
.status-message.success {
  background-color: #d5f6e3;
  color: #1f9350;
}
.status-message.error {
  background-color: #f7d4d4;
  color: #c32222;
}

.leaderboard-container > p {
  text-align: center;
  font-style: italic;
  color: hsl(215, 15%, 55%);
}
.leaderboard-container > p.error {
  color: hsl(0, 70%, 55%);
  font-weight: 600;
  background-color: #f7d4d4;
  padding: 10px;
  border-radius: 4px;
}

.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  background-color: hsl(0, 0%, 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px hsla(215, 20%, 50%, 0.1);
  padding: 20px;
  padding: 0;
  overflow: hidden;
}
.leaderboard-table th,
.leaderboard-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid hsl(215, 25%, 94%);
}
.leaderboard-table th {
  background-color: hsl(215, 20%, 96%);
  color: hsl(215, 15%, 25%);
  font-weight: 600;
  text-align: center;
}
.leaderboard-table td:nth-child(1) {
  width: 50px;
  text-align: center;
  font-weight: 600;
  color: hsl(210, 70%, 55%);
}
.leaderboard-table td:nth-child(2) {
  font-weight: 500;
}
.leaderboard-table td:nth-child(3) {
  text-align: right;
  font-weight: 600;
}
.leaderboard-table tbody tr {
  transition: background-color 0.25s ease;
}
.leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}
.leaderboard-table tbody tr:hover {
  background-color: hsl(210, 70%, 85%);
}
.leaderboard-table tbody tr td:nth-child(1) {
  background-color: hsl(215, 20%, 96%);
}
.leaderboard-table tbody tr:nth-child(1) td:nth-child(1) {
  background-color: hsl(42, 85%, 60%);
}
.leaderboard-table tbody tr:nth-child(2) td:nth-child(1) {
  background-color: hsl(210, 20%, 75%);
}
.leaderboard-table tbody tr:nth-child(3) td:nth-child(1) {
  background-color: hsl(30, 60%, 65%);
}

.top-users-podium-container {
  width: 100%;
  max-width: 330px;
  margin: 5px auto 10px auto;
}
.top-users-podium-container .podium-title {
  font-size: 0.85rem;
  color: hsl(215, 15%, 55%);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-align: center;
}
.top-users-podium-container .podium-status {
  font-size: 0.8rem;
  color: hsl(215, 15%, 55%);
  text-align: center;
  padding: 15px 0;
  font-style: italic;
}
.top-users-podium-container .podium-status.error {
  color: hsl(0, 70%, 55%);
  font-weight: 600;
}

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  min-height: 80px;
  position: relative;
}

.podium-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 6px;
  border-radius: 4px 4px 0 0;
  text-align: center;
  color: white;
  width: 90px;
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.15);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  position: relative;
}
.podium-step.empty {
  background-color: hsl(215, 25%, 94%);
}
.podium-step.empty:first-child {
  min-height: 55px;
}
.podium-step.empty:nth-child(2) {
  min-height: 70px;
}
.podium-step.empty:last-child {
  min-height: 50px;
}
.podium-step .podium-rank {
  font-size: 1.8em;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
}
.podium-step .podium-name {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  padding: 0 2px;
}
.podium-step .podium-count {
  font-size: 0.65rem;
  opacity: 0.85;
  margin-top: 2px;
}
.podium-step.first-place {
  background-color: hsl(42, 85%, 60%);
  min-height: 70px;
  order: 2;
  transform: translateY(-8px);
  z-index: 1;
}
.podium-step.second-place {
  background-color: hsl(210, 20%, 75%);
  min-height: 55px;
  order: 1;
}
.podium-step.third-place {
  background-color: hsl(30, 60%, 65%);
  min-height: 50px;
  order: 3;
}
.podium-step:hover {
  transform: translateY(-4px) scale(1.5);
  box-shadow: 0 3px 8px hsla(0, 0%, 0%, 0.2);
}
.podium-step:hover.first-place {
  transform: translateY(-11px) scale(1.5);
}

.podium-medals {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 0.85rem;
  flex-wrap: nowrap;
  line-height: 1;
  padding: 3px 0;
}
.podium-medals .medal {
  display: inline-flex;
  align-items: center;
  text-shadow: 0px 1px 2px hsla(0, 0%, 0%, 0.2);
  transition: transform 0.15s ease-out;
}
.podium-medals .medal:hover {
  transform: scale(1.5);
}

.analog-clock-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0px 0;
  gap: 10px;
}
.analog-clock-container .period-indicator {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding: 8px 16px;
  border-radius: 4px;
  background-color: hsl(0, 0%, 100%);
  border: 2px solid;
  box-shadow: 0 2px 4px hsla(215, 20%, 50%, 0.1);
  text-align: center;
}
.analog-clock-container .period-indicator.morning {
  color: hsl(210, 70%, 40%);
  border-color: hsl(210, 70%, 85%);
  background-color: #e1edfa;
}
.analog-clock-container .period-indicator.afternoon {
  color: #c2940a;
  border-color: #fae39e;
  background-color: #fefcf5;
}

.analog-clock-svg .clock-face {
  fill: white;
  stroke: #899db8;
  stroke-width: calc(var(--clock-viewbox-size, 200) * 0.01);
}
.analog-clock-svg .hour-marker {
  stroke: hsl(215, 15%, 55%);
  stroke-width: calc(var(--clock-viewbox-size, 200) * 0.0125);
  stroke-linecap: round;
}
.analog-clock-svg .minute-marker {
  stroke: hsl(215, 25%, 88%);
  stroke-width: calc(var(--clock-viewbox-size, 200) * 0.0075);
  stroke-linecap: round;
}
.analog-clock-svg .hour-number {
  font-family: "Noto Sans JP", "Noto Sans Math", sans-serif;
  font-size: calc(var(--clock-viewbox-size, 200) * 0.08);
  font-weight: 600;
  fill: hsl(215, 15%, 25%);
  text-anchor: middle;
  dominant-baseline: central;
}
.analog-clock-svg .hour-hand {
  stroke: black;
  stroke-width: calc(var(--clock-viewbox-size, 200) * 0.025);
  stroke-linecap: round;
  filter: drop-shadow(0 1px 2px hsla(0, 0%, 0%, 0.25));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.analog-clock-svg .minute-hand {
  stroke: hsl(215, 15%, 25%);
  stroke-width: calc(var(--clock-viewbox-size, 200) * 0.0175);
  stroke-linecap: round;
  filter: drop-shadow(0 1px 2px hsla(0, 0%, 0%, 0.2));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.analog-clock-svg .center-dot {
  fill: hsl(210, 70%, 55%);
  stroke: #1b5998;
  stroke-width: calc(var(--clock-viewbox-size, 200) * 0.005);
  r: calc(var(--clock-viewbox-size, 200) * 0.02);
  filter: drop-shadow(0 1px 2px hsla(0, 0%, 0%, 0.3));
}

.clock-question {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.clock-question h2 {
  font-size: 1.6rem;
  margin-bottom: 0;
  color: hsl(215, 15%, 25%);
  text-align: center;
  line-height: 1.4;
  font-family: "Noto Sans Math", "Noto Sans JP", "Noto Sans Math", sans-serif;
}
.clock-question .clock-display {
  margin-bottom: 10px;
}
.clock-question .clock-input-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.clock-question .clock-input-section .clock-instruction {
  font-size: 0.95rem;
  color: hsl(215, 15%, 55%);
  text-align: center;
  margin-bottom: 0;
}
.clock-question .clock-input-section form {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.clock-question .clock-input-section form .clock-time-input {
  min-width: 100px;
  max-width: 140px;
  width: auto;
  padding: 10px 12px;
  font-size: 1.2rem;
  text-align: center;
  font-family: "Noto Sans Math", "Noto Sans JP", "Noto Sans Math", sans-serif;
  border-radius: 4px;
  border: 1px solid hsl(215, 25%, 88%);
}
.clock-question .clock-input-section form .clock-time-input:focus {
  outline: none;
  border-color: hsl(210, 70%, 55%);
  box-shadow: 0 0 0 3px hsla(210, 70%, 55%, 0.2);
}
.clock-question .clock-input-section form .clock-submit-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(145, 60%, 50%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  padding: 12px 25px;
}
.clock-question .clock-input-section form .clock-submit-btn:hover:not(:disabled) {
  background-color: #54d489;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.clock-question .clock-input-section form .clock-submit-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.clock-question .clock-input-section form .clock-submit-btn:disabled {
  background-color: #b9c6be;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.login-section {
  background-color: hsl(0, 0%, 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px hsla(215, 20%, 50%, 0.1);
  padding: 20px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.login-section h2 {
  color: hsl(210, 70%, 40%);
}
.login-section p {
  color: hsl(215, 15%, 55%);
  margin-bottom: 1.5em;
}
.login-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.login-section form input {
  text-align: center;
}
.login-section form button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(210, 70%, 55%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  margin-top: 10px;
}
.login-section form button:hover:not(:disabled) {
  background-color: #5fa1e3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.login-section form button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.login-section form button:disabled {
  background-color: #c2ccd6;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.login-section .error-message {
  color: hsl(0, 70%, 55%);
  background-color: #f7d4d4;
  padding: 10px;
  border-radius: 4px;
  margin-top: 20px;
  font-weight: 600;
}

.user-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  background-color: hsl(215, 20%, 95%);
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid hsl(215, 25%, 88%);
  font-size: 0.9rem;
}
.user-info-bar span {
  font-weight: 600;
  color: hsl(215, 15%, 55%);
}

.logout-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(215, 10%, 60%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
}
.logout-button:hover:not(:disabled) {
  background-color: #a5acb6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.logout-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.logout-button:disabled {
  background-color: #d9d9d9;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.logout-button:hover:not(:disabled) {
  background-color: hsl(0, 60%, 55%);
}

.sidebar-placeholder,
.leaderboard-placeholder {
  padding: 20px;
  text-align: center;
  color: hsl(215, 15%, 55%);
  font-style: italic;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-prompt {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid #4CAF50;
  background-color: #f1fff1;
  border-radius: 8px;
  text-align: center;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
  background-color: #f7f9fc;
  border-right: 1px solid #e0e0e0;
}

.login-card {
  text-align: center;
}

.login-title {
  color: hsl(210, 70%, 40%);
  font-size: 1.15rem;
  margin-bottom: 0.2em;
  font-weight: 700;
}

.login-subtitle {
  color: hsl(215, 15%, 55%);
  font-size: 0.85rem;
  margin-bottom: 1.2em;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-input {
  background-color: hsl(0, 0%, 100%);
  text-align: center;
  font-size: 0.9rem;
  padding: 8px 12px;
}
.login-input:focus {
  border-color: hsl(210, 70%, 55%);
  box-shadow: 0 0 0 3px hsla(210, 70%, 55%, 0.25);
}

.login-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(210, 70%, 55%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  padding-top: 8px;
  padding-bottom: 8px;
  margin-top: 2px;
  font-size: 0.95rem;
}
.login-button:hover:not(:disabled) {
  background-color: #5fa1e3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.login-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.login-button:disabled {
  background-color: #c2ccd6;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.login-error {
  color: hsl(0, 70%, 55%);
  background-color: #f7d4d4;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 6px;
  margin-bottom: 0;
  text-align: left;
  border-left: 4px solid hsl(0, 70%, 55%);
}

.leaderboard-info h4 {
  color: hsl(215, 15%, 55%);
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  margin: 10px 0;
}

.topusers-info h4 {
  color: hsl(215, 15%, 55%);
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  margin: 10px 0;
}

.admin-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2rem;
}

.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid hsl(215, 25%, 88%);
}

.admin-nav-button-container {
  padding-top: 10px;
  border-top: 1px solid hsl(215, 25%, 88%);
}

.admin-nav-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(215, 15%, 45%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  width: 100%;
  padding: 12px;
  font-size: 1em;
}
.admin-nav-button:hover:not(:disabled) {
  background-color: #758499;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.admin-nav-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.admin-nav-button:disabled {
  background-color: #b3b3b3;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.admin-nav-button-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  width: 100%;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
  border: 2px solid hsl(210, 70%, 55%);
  background-color: transparent;
}
.admin-nav-button-promo:hover {
  background-color: hsl(210, 70%, 55%);
  color: white;
}

.admin-button-title {
  font-weight: 700;
  font-size: 1.05em;
  color: hsl(210, 70%, 40%);
  transition: color 0.25s;
}

.admin-button-subtitle {
  font-size: 0.85em;
  font-weight: normal;
  color: hsl(215, 15%, 55%);
  margin-top: 2px;
  transition: color 0.25s;
}

.student-login-promo-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  width: 100%;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
  border: 2px solid hsl(145, 60%, 50%);
  background-color: transparent;
}
.student-login-promo-button:hover {
  background-color: hsl(145, 60%, 50%);
  color: white;
}

.student-button-title {
  font-weight: 700;
  font-size: 1.05em;
  color: #29a35c;
  transition: color 0.25s;
}

.student-button-subtitle {
  font-size: 0.85em;
  font-weight: normal;
  color: hsl(215, 15%, 55%);
  margin-top: 2px;
  transition: color 0.25s;
}

.login-form-active-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-cancel-button {
  background: none;
  border: none;
  color: hsl(215, 15%, 55%);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
  text-decoration: underline;
}
.login-cancel-button:hover {
  color: hsl(210, 70%, 40%);
}

.how-to-button-container {
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(215, 25%, 88%);
}

.how-to-button {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.9em;
  font-weight: 600;
  color: hsl(215, 15%, 55%);
  background-color: transparent;
  border: 1px solid hsl(215, 25%, 88%);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.how-to-button:hover {
  background-color: hsl(215, 20%, 96%);
  color: hsl(215, 15%, 25%);
  border-color: #b9c5d5;
}

.how-to-container {
  background-color: hsl(0, 0%, 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px hsla(215, 20%, 50%, 0.1);
  padding: 20px;
  max-width: 800px;
  width: 100%;
  text-align: left;
  border-top: 4px solid hsl(45, 90%, 60%);
}
.how-to-container h2 {
  text-align: center;
  color: hsl(210, 70%, 40%);
  font-size: 1.8rem;
  margin-bottom: 2rem;
}
.how-to-container .how-to-section {
  margin-bottom: 2.5rem;
}
.how-to-container .how-to-section:last-of-type {
  margin-bottom: 0;
}
.how-to-container .how-to-section h3 {
  font-size: 1.4rem;
  color: hsl(215, 15%, 25%);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid hsl(215, 25%, 94%);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.step .step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background-color: hsl(210, 70%, 55%);
  color: white;
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.step .step-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25em;
  color: hsl(215, 15%, 25%);
}
.step .step-content p {
  margin-bottom: 0;
  color: hsl(215, 15%, 55%);
  line-height: 1.6;
}

.admin-auth-card {
  background-color: hsl(0, 0%, 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px hsla(215, 20%, 50%, 0.1);
  padding: 20px;
  max-width: 420px;
  width: 100%;
}
.admin-auth-card h3 {
  text-align: center;
  color: hsl(210, 70%, 40%);
  margin-bottom: 1.5em;
}
.admin-auth-card .admin-auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.admin-auth-card .form-group {
  display: flex;
  flex-direction: column;
}
.admin-auth-card .login-button {
  margin-top: 10px;
}

.auth-toggle-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}
.auth-toggle-link a {
  font-weight: 600;
}

.admin-dashboard-panel {
  background-color: hsl(0, 0%, 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px hsla(215, 20%, 50%, 0.1);
  padding: 20px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.admin-dashboard-panel .dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(215, 25%, 88%);
}
.admin-dashboard-panel .dashboard-header h2 {
  margin: 0;
  font-size: 1.5rem;
}
.admin-dashboard-panel .dashboard-header button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(0, 70%, 55%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  padding: 8px 15px;
  font-size: 0.9rem;
}
.admin-dashboard-panel .dashboard-header button:hover:not(:disabled) {
  background-color: #e35f5f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.admin-dashboard-panel .dashboard-header button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.admin-dashboard-panel .dashboard-header button:disabled {
  background-color: #d6c2c2;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.admin-dashboard-panel .error-message {
  color: hsl(0, 70%, 55%);
  background-color: #f7d4d4;
  padding: 10px 15px;
  border-radius: 4px;
  font-weight: 600;
  margin: 0.5rem 0;
}

.code-management h3 {
  color: hsl(215, 15%, 25%);
}
.code-management p {
  color: hsl(215, 15%, 55%);
  font-size: 0.9rem;
}

.code-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid hsl(215, 25%, 88%);
  border-radius: 4px;
  overflow: hidden;
}

.code-list-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid hsl(215, 25%, 94%);
  transition: background-color 0.25s ease;
  gap: 1rem;
  flex-wrap: wrap;
}
.code-list-item:last-child {
  border-bottom: none;
}
.code-list-item:hover {
  background-color: hsl(215, 20%, 97%);
}
.code-list-item .code-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-grow: 1;
  min-width: 150px;
}
.code-list-item code {
  font-family: monospace;
  font-size: 1.1rem;
  background-color: hsl(215, 25%, 94%);
  padding: 4px 8px;
  border-radius: 4px;
  color: hsl(215, 15%, 25%);
  word-break: break-all;
}
.code-list-item .code-status {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid;
}
.code-list-item .code-status.status-active {
  color: #1b7e44;
  background-color: #d5f6e3;
  border-color: #96e9b8;
}
.code-list-item .code-status.status-canceled {
  color: hsl(215, 15%, 55%);
  background-color: hsl(215, 25%, 94%);
  border-color: hsl(215, 25%, 88%);
}
.code-list-item .code-status.status-past-due, .code-list-item .code-status.status-unpaid {
  color: #c32222;
  background-color: #f7d4d4;
  border-color: #f0a8a8;
}
.code-list-item .code-status.status-incomplete {
  color: #cb9c10;
  background-color: #faedc6;
  border-color: #f7df97;
}
.code-list-item .code-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.code-list-item .button-edit {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: hsl(210, 70%, 40%);
  background-color: hsl(210, 60%, 80%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  padding: 6px 14px;
  font-size: 0.9rem;
}
.code-list-item .button-edit:hover:not(:disabled) {
  background-color: #cee0f3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.code-list-item .button-edit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.code-list-item .button-edit:disabled {
  background-color: white;
  color: #e0e6eb;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.code-list-item .button-delete {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: hsl(0, 70%, 55%);
  background-color: hsl(0, 70%, 90%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  padding: 6px 14px;
  font-size: 0.9rem;
}
.code-list-item .button-delete:hover:not(:disabled) {
  background-color: #fdf6f6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.code-list-item .button-delete:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.code-list-item .button-delete:disabled {
  background-color: white;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.code-list-item .button-cancel-sub {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(0, 70%, 55%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  padding: 6px 14px;
  font-size: 0.9rem;
}
.code-list-item .button-cancel-sub:hover:not(:disabled) {
  background-color: #e35f5f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.code-list-item .button-cancel-sub:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.code-list-item .button-cancel-sub:disabled {
  background-color: #d6c2c2;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.code-list-item.is-editing {
  background-color: hsl(210, 70%, 85%);
}
.code-list-item.is-editing .edit-code-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}
.code-list-item.is-editing .edit-code-input {
  flex-grow: 1;
}
.code-list-item.is-editing .button-save {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(210, 70%, 55%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  padding: 8px 16px;
  font-size: 0.9rem;
}
.code-list-item.is-editing .button-save:hover:not(:disabled) {
  background-color: #5fa1e3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.code-list-item.is-editing .button-save:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.code-list-item.is-editing .button-save:disabled {
  background-color: #c2ccd6;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.code-list-item.is-editing .button-cancel {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(215, 10%, 60%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  padding: 8px 16px;
  font-size: 0.9rem;
}
.code-list-item.is-editing .button-cancel:hover:not(:disabled) {
  background-color: #a5acb6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.code-list-item.is-editing .button-cancel:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.code-list-item.is-editing .button-cancel:disabled {
  background-color: #d9d9d9;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.purchase-section {
  border-top: 2px solid hsl(215, 25%, 88%);
  padding-top: 1.5rem;
}
.purchase-section h4 {
  margin-bottom: 0.5rem;
}
.purchase-section p {
  color: hsl(215, 15%, 55%);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.purchase-section .purchase-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}
.purchase-section .quantity-input {
  width: 80px;
  text-align: center;
  font-size: 1.1rem;
}
.purchase-section .purchase-form-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1rem;
  background-color: hsl(215, 20%, 97%);
  border: 1px solid hsl(215, 25%, 94%);
  border-radius: 8px;
}
@media (max-width: 700px) {
  .purchase-section .purchase-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.purchase-section .purchase-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.purchase-section .purchase-controls label {
  font-weight: 600;
  color: hsl(215, 15%, 25%);
}
.purchase-section .quantity-input {
  width: 70px;
}
.purchase-section .order-summary-inline {
  text-align: right;
  padding-right: 1rem;
}
@media (max-width: 700px) {
  .purchase-section .order-summary-inline {
    text-align: left;
    padding-right: 0;
    padding: 0.75rem;
    border-top: 1px solid hsl(215, 25%, 94%);
    border-bottom: 1px solid hsl(215, 25%, 94%);
  }
}
.purchase-section .price-line.total span {
  font-size: 0.95rem;
  color: hsl(215, 15%, 55%);
  margin-right: 0.5rem;
}
.purchase-section .price-line.total strong {
  font-size: 1.2rem;
  color: hsl(210, 70%, 40%);
  font-weight: 700;
}
.purchase-section .loading-price {
  font-style: italic;
  color: hsl(215, 15%, 55%);
  padding: 1rem;
  background-color: hsl(215, 20%, 97%);
  border-radius: 8px;
  text-align: center;
}

.success-panel {
  background-color: #e2f9eb;
  padding: 15px;
  margin-top: 1.5rem;
  border-left: 4px solid hsl(145, 65%, 45%);
  border-radius: 0 4px 4px 0;
}
.success-panel p {
  margin: 0;
  font-weight: 600;
  color: #1f9350;
}

.main-content > h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(0, 0%, 0%, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 15px;
}

.modal-content {
  background-color: hsl(0, 0%, 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px hsla(215, 20%, 50%, 0.1);
  padding: 20px;
  max-width: 550px;
  width: 100%;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: scale(0.95);
  opacity: 0;
  animation: modal-fade-in 0.2s ease-out forwards;
}
.modal-content h4 {
  color: hsl(210, 70%, 40%);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}
.modal-content p {
  color: hsl(215, 15%, 55%);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.modal-content p code {
  font-family: monospace;
  background-color: hsl(215, 25%, 94%);
  padding: 2px 5px;
  border-radius: 4px;
  color: hsl(215, 15%, 25%);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1rem;
  border-top: 1px solid hsl(215, 25%, 94%);
  padding-top: 1.5rem;
}
.modal-actions .button-primary {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(210, 70%, 55%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  font-size: 1rem;
  padding: 12px 20px;
}
.modal-actions .button-primary:hover:not(:disabled) {
  background-color: #5fa1e3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.modal-actions .button-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.modal-actions .button-primary:disabled {
  background-color: #c2ccd6;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.modal-actions .button-delete {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(0, 70%, 55%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  font-size: 1rem;
  padding: 12px 20px;
}
.modal-actions .button-delete:hover:not(:disabled) {
  background-color: #e35f5f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.modal-actions .button-delete:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.modal-actions .button-delete:disabled {
  background-color: #d6c2c2;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.modal-actions .button-cancel {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(215, 10%, 60%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  font-size: 1rem;
  padding: 12px 20px;
  background-color: transparent;
  color: hsl(215, 15%, 55%);
  box-shadow: none;
}
.modal-actions .button-cancel:hover:not(:disabled) {
  background-color: #a5acb6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.modal-actions .button-cancel:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.modal-actions .button-cancel:disabled {
  background-color: #d9d9d9;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.modal-actions .button-cancel:hover:not(:disabled) {
  background-color: hsl(215, 25%, 94%);
  color: hsl(215, 15%, 25%);
}

@keyframes modal-fade-in {
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.moderation-section {
  border-top: 2px solid hsl(215, 25%, 88%);
  padding-top: 1.5rem;
}
.moderation-section h4 {
  margin-bottom: 0.5rem;
}
.moderation-section p {
  color: hsl(215, 15%, 55%);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 90%;
}
.moderation-section .moderation-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 15px;
  align-items: flex-end;
}
.moderation-section .moderation-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: hsl(215, 15%, 25%);
}
.moderation-section .moderation-form .button-primary {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(210, 70%, 55%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  padding: 10px 20px;
}
.moderation-section .moderation-form .button-primary:hover:not(:disabled) {
  background-color: #5fa1e3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.moderation-section .moderation-form .button-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.moderation-section .moderation-form .button-primary:disabled {
  background-color: #c2ccd6;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.moderation-section .moderation-form .button-delete {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(0, 70%, 50%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  padding: 10px 20px;
}
.moderation-section .moderation-form .button-delete:hover:not(:disabled) {
  background-color: #df4949;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.moderation-section .moderation-form .button-delete:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.moderation-section .moderation-form .button-delete:disabled {
  background-color: #ccb3b3;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.settings-form {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 18px;
  align-items: center;
  max-width: 550px;
  margin-top: 1rem;
}
.settings-form .form-group {
  display: contents;
}
.settings-form label {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(215, 15%, 55%);
}
.settings-form .button-primary,
.settings-form .success-panel,
.settings-form .error-message {
  grid-column: 1/-1;
}
.settings-form .button-primary {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(210, 70%, 55%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  padding: 10px 20px;
  margin-top: 8px;
  justify-self: start;
}
.settings-form .button-primary:hover:not(:disabled) {
  background-color: #5fa1e3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.settings-form .button-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.settings-form .button-primary:disabled {
  background-color: #c2ccd6;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.settings-form .success-panel,
.settings-form .error-message {
  margin-top: 1rem;
}

.verification-card {
  background-color: hsl(0, 0%, 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px hsla(215, 20%, 50%, 0.1);
  padding: 20px;
  max-width: 480px;
  width: 100%;
  margin: 2rem auto;
  text-align: center;
}
.verification-card h2 {
  color: hsl(210, 70%, 40%);
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}
.verification-card .status-message {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.verification-card .status-message.success {
  background-color: #d5f6e3;
  color: #1f9350;
  border-left: 4px solid hsl(145, 65%, 45%);
  text-align: left;
}
.verification-card .status-message.error {
  background-color: #f7d4d4;
  color: #c32222;
  border-left: 4px solid hsl(0, 70%, 55%);
  text-align: left;
}
.verification-card .admin-auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.verification-card .button-primary {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background-color: hsl(210, 70%, 55%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  margin-top: 1rem;
  font-size: 1rem;
  padding: 10px 20px;
}
.verification-card .button-primary:hover:not(:disabled) {
  background-color: #5fa1e3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.verification-card .button-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.verification-card .button-primary:disabled {
  background-color: #c2ccd6;
  color: white;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

@media (max-width: 1024px) {
  .app-container {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }
  .sidebar,
  .leaderboard-panel {
    width: 100%;
    border: none;
    border-bottom: 1px solid hsl(215, 25%, 88%);
  }
  .main-content {
    min-height: 50vh;
    padding: 20px;
  }
  .quiz-section {
    max-width: 95%;
  }
  .comparison-options {
    gap: 15px;
  }
  .comparison-option {
    padding: 15px 25px;
    font-size: 2rem;
  }
}
@media (max-width: 700px) {
  .moderation-form {
    grid-template-columns: 1fr;
  }
  .moderation-form .button-delete {
    margin-top: 10px;
  }
}
@media (max-width: 600px) {
  html {
    font-size: 15px;
  }
  .sidebar,
  .leaderboard-panel {
    padding: 15px;
  }
  .main-content {
    padding: 15px;
  }
  .question h2,
  .question form,
  .comparison-options {
    flex-direction: column;
    align-items: stretch;
  }
  .comparison-separator {
    margin: 10px 0;
  }
  .leaderboard-table {
    font-size: 0.9rem;
  }
  .leaderboard-table th,
  .leaderboard-table td {
    padding: 8px;
  }
  .modal-actions {
    flex-direction: row-reverse;
    justify-content: flex-start;
  }
}
.welcome-container {
  background-color: hsl(0, 0%, 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px hsla(215, 20%, 50%, 0.1);
  padding: 20px;
  max-width: 960px;
  width: 100%;
  text-align: center;
  border-top: 5px solid hsl(210, 70%, 55%);
  padding: 2rem 2.5rem;
}

.welcome-header {
  margin-bottom: 3rem;
}
.welcome-header h2 {
  font-size: 2.5rem;
  color: hsl(210, 70%, 40%);
  margin-bottom: 0.5em;
}
.welcome-header .welcome-intro {
  font-size: 1.25rem;
  color: hsl(215, 15%, 55%);
  max-width: 650px;
  margin: 0 auto;
}

.welcome-features {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  margin-bottom: 3.5rem;
  text-align: left;
}
@media (max-width: 800px) {
  .welcome-features {
    flex-direction: column;
  }
}

.feature-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.feature-item .feature-icon {
  font-size: 2.5rem;
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  background-color: hsl(210, 70%, 85%);
  color: hsl(210, 70%, 40%);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item h4 {
  font-size: 1.2rem;
  color: hsl(215, 15%, 25%);
  margin-bottom: 0.5rem;
}
.feature-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: hsl(215, 15%, 55%);
}

.welcome-cta-section {
  padding-top: 2.5rem;
  border-top: 1px solid hsl(215, 25%, 88%);
}
.welcome-cta-section h3 {
  font-size: 1.6rem;
  color: hsl(215, 15%, 25%);
  margin-bottom: 2rem;
}

.cta-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-card {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  padding: 1.5rem;
  border: 1px solid hsl(215, 25%, 88%);
  border-left-width: 5px;
  border-radius: 8px;
  background-color: white;
  text-align: left;
}
.cta-card h5 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.cta-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(215, 15%, 55%);
  margin-bottom: 0;
}
.cta-card p strong {
  color: hsl(215, 15%, 25%);
  font-weight: 600;
}
.cta-card.teacher {
  border-left-color: hsl(45, 80%, 50%);
}
.cta-card.teacher h5 {
  color: #daa60b;
}
.cta-card.student {
  border-left-color: hsl(145, 60%, 50%);
}
.cta-card.student h5 {
  color: #29a35c;
}

.welcome-footer {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid hsl(215, 25%, 88%);
  text-align: center;
}
.welcome-footer h3 {
  font-size: 1.5rem;
  color: hsl(215, 15%, 25%);
  margin-bottom: 1rem;
}
.welcome-footer p {
  font-size: 1.1rem;
  color: hsl(215, 15%, 55%);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.purchase-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-group-legal {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-group-legal input[type=checkbox] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.form-group-legal label {
  font-size: 0.95rem;
  color: hsl(215, 15%, 55%);
}
.form-group-legal label a {
  font-weight: 600;
  color: hsl(210, 70%, 55%);
  text-decoration: underline;
}
.form-group-legal label a:hover {
  color: hsl(210, 70%, 40%);
}

.disabled-message {
  text-align: center;
  font-size: 0.9rem;
  color: hsl(0, 70%, 55%);
  font-weight: 600;
  margin: 0;
}

.purchase-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #493704;
  background-color: hsl(45, 90%, 60%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.1);
  padding: 10px 20px;
  width: auto;
  min-width: 200px;
}
.purchase-button:hover:not(:disabled) {
  background-color: #f7d264;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px hsla(215, 20%, 50%, 0.15);
}
.purchase-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.1);
}
.purchase-button:disabled {
  background-color: #e8e0c9;
  color: #c9b882;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.info-container {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

.info-tabs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.info-tabs .info-tab-heading {
  cursor: pointer;
}

.info-tab-heading {
  font-size: 1.1rem;
  margin: 0;
  user-select: none;
  transition: color 0.25s ease;
  color: hsl(215, 15%, 55%);
  font-weight: 600;
}
.info-tab-heading.tab-motivation:hover, .info-tab-heading.tab-motivation.active {
  color: #2273c3;
}
.info-tab-heading.tab-explanation:hover, .info-tab-heading.tab-explanation.active {
  color: #29a35c;
}

.info-content {
  padding: 1.5rem 0;
  border-top: 1px solid hsl(215, 25%, 88%);
  border-radius: 4px;
  padding-left: 1.25rem;
  border-left: 4px solid transparent;
  transition: border-left-color 0.25s ease;
}
.info-content p {
  white-space: pre-wrap;
  margin: 0;
  line-height: 1.6;
  color: hsl(215, 15%, 25%);
  text-align: left;
}
.info-content h4 {
  margin-top: 0;
  margin-bottom: 1em;
}

.info-container.viewing-motivation .info-content {
  border-left-color: #2273c3;
}

.info-container.viewing-explanation .info-content {
  border-left-color: #29a35c;
}

.price-info-subtle {
  background-color: #e5f0fa;
  border: 1px solid hsl(210, 70%, 85%);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  text-align: center;
}
.price-info-subtle p {
  margin: 0;
  font-size: 0.95em;
  color: hsl(215, 15%, 25%);
}
.price-info-subtle p strong {
  color: hsl(210, 70%, 40%);
  font-weight: 700;
}
.price-info-subtle .loading-text {
  font-style: italic;
  color: hsl(215, 15%, 55%);
}

.login-card {
  background-color: hsl(0, 0%, 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px hsla(215, 20%, 50%, 0.1);
  padding: 20px;
  max-width: 340px;
  width: 100%;
  text-align: center;
}

.main-content-login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.settings-form textarea {
  resize: vertical;
  min-height: 120px;
}

.modal-actions.right-aligned {
  flex-direction: row-reverse;
  align-items: center;
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.modal-actions.right-aligned .button-cancel {
  margin-right: auto;
}
