body {
  font-family: 'Helvetica Neue', sans-serif;
  background: radial-gradient(circle, #42a5f5, #0d47a1);
  padding: 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  color: rgb(10,10,100);
}

*, *::before, *::after { box-sizing: border-box; }

table {
  width: 100%;
}
tr:nth-child(even) {
  background-color: rgba(200,200,255,0.05);
}

td.title {
  white-space: nowrap; padding-right: 1rem;
}

td.data {
  width: 100%;
}
 
.hover-highlight:hover
{
  background-color: rgba(200,200,255,0.1);
}

.fillWidth {
  display: flex;
  width: 100%;
}

.fill {
  flex-grow: 1;
}

.text-input {
  width: 100%;
  font-size: 2em;
  border-radius: 20px;
  line-height: 2em;
  border: 0px;
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding-left: 20px;
}

.content {
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
}

.form-container {
  background: rgba(255,255,255,0.7);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  min-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.terms {
  font-size: 0.9rem;
  text-align: center;
  color: #444;
  margin-bottom: 1rem;
}

.terms a {
  color: #0a3180;
  text-decoration: none;
  font-weight: bold;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #0a3180;
  outline: none;
}

.button {
  padding: 1rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: block;
  text-align: center;
  text-decoration: none;
  width:100%;
}

.button-small
{
  padding: 0.3rem;
  border: none;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: block;
  text-align: center;
  text-decoration: none;
  width:100%;
}

.button-clear {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  opacity: 0.5;
  color: inherit;      /* use surrounding text color */
  font: inherit;       /* match text styling */
  cursor: pointer;     /* still looks clickable */
}

.primary-button {
  background-color: #ec5b4f;
  color: white;
}

.secondary-button {
  background-color: #c7dafc;
  color: #0a3180;
}

.tertiary-button {
  background-color: rgba(255,255,255,0.2);
  color: #0a3180;
}

.warning-button
{
  background-color: rgba(255,0,60,0.5);
  color: #0a3180;
}

.primary-button:hover,
.secondary-button:hover,
.tertiary-button:hover,
.warning-button:hover 
{
  opacity: 0.9;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(255,255,255,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 12px;
  margin-bottom: 2rem;
  width: 80vw;
  max-width: 1200px;
  height: 90px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height:100%;
}

.logo {
  height: 90%;
  aspect-ratio: 179 / 134;
  object-fit: contain;
}

.user-email {
  font-weight: bold;
  color: #333;
}

#logout-button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background-color: #f3f3f3;
  color: #333;
  border-radius: 20px;
  border: 1px solid #ddd;
  box-shadow: none;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  height: 40px;
}

.org-name {
  font-size: 2.5rem;         /* or try 2.5rem for even larger */
  font-weight: bold;
  color: #0a0a64;          /* dark blue */
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap; /* Prevents text from wrapping to the next line */
  overflow: hidden;    /* Hides any content that overflows the container */
  text-overflow: ellipsis;
}


/* Header bar */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background-color: #e0ecf8;  /* match your photo’s light blue */
}

.card-header .logo {
  height: 32px;
}

.card-header .user-link {
  font-size: 14px;
  color: #0058d9;
  text-decoration: none;
}

/* Body section */
.card-body {
  padding: 24px;
}

.school-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #333333;
}

.student-count {
  margin: 8px 0 24px;
  font-size: 32px;
  /*color: #888888;*/
}

/* Action buttons */
.actions .button {
  display: block;
  width: 100%;
  border: none;
  border-radius: 9999px;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 12px;
  transition: transform .1s ease-in-out;
}
.actions .button:last-child {
  margin-bottom: 0;
}
.actions .button:active {
  transform: scale(0.98);
}

/* Flex container for the three columns */
.actions {
  display: flex;
  flex-wrap: wrap;      /* allow wrapping to next “row” */
  gap: 24px;            /* space between columns */
  margin: 24px 0;       /* adjust as needed */
}

/* Each column gets equal flex growth and a minimum width */
.action-column {
  flex: 1 1 280px;      /* grow, shrink, base width 280px */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Make the button sit at the top and stretch full-width */
.action-column .button {
  width: 100%;
  margin-bottom: 16px;
}

/* Optional: style the column panels */
.action-column {
  padding: 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
}


/* === School Grid Layout === */

.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 100%;
  padding: 0 1rem; /* optional: add horizontal breathing room */
  box-sizing: border-box;
}

/* === School Card Styling === */
.school-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease-in-out;
}

.school-card:hover {
  transform: scale(1.02);
}

.school-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: bold;
  color: #0a3180;
}

.student-card {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: 
    transform 0.2s ease, 
    box-shadow 0.2s ease, 
    background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: block;            /* ensure <a> behaves like a card-container */
  text-decoration: none;     /* remove link underline */
  color: inherit;            /* keep text color */
}

/* Hover state */
.student-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.25);
}

/* Title */
.student-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0a3180;
}

/* Body text (ID, email, count, etc.) */
.student-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}


/* === School Logo === */
.school-card img.school-logo {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 1rem;
}

/* === Metadata === */
.school-meta {
  font-size: 0.9rem;
  color: #666;
}

.content-background {
  width: 80vw;
  max-width: 1200px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.text-area {
  max-width: 1200px;
}

.game-icon
{
  max-width: 45px;
  max-height: 45px;
  height: 45px;
}

/*** MODALS ***/

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
}

.modal {
  border-radius: 30px; 
  padding: 1rem;
  background: rgba(150, 180, 225, 1.0);
  max-width: 520px; width: 92%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute; top: .25rem; right: .5rem;
  border: 0; background: none; font-size: 3rem; cursor: pointer;
}

.modal-body { 
  max-height: 70vh; overflow: auto; 

}

/** Progress Bars **/

.progress-parent {
  position: relative; /* establish containing block */
}

.progress-indicator {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;          /* ensures full height */
  width: var(--progress, 50%); /* set with inline style or CSS variable */
  background: linear-gradient(to right, #4caf50, #81c784); /* example green gradient */
  z-index: 0;         /* sit behind content */
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
}

.progress-parent > *:not(.progress-indicator) {
  position: relative;
  z-index: 1;         /* make sure text/content stays above the bar */
}

/** SEGMENTED CONTROLS **/

.segmented {
  display: inline-flex;
  /*border: 1px solid #ddd;*/
  border-radius: 9999px;
  overflow: hidden;
}

.segmented .seg {
  appearance: none;
  background: #0a0a6454;
  border: 0;
  padding: .4rem .8rem;
  font: inherit;
  cursor: pointer;
  line-height: 1.2;
}

.segmented .seg.active,
.segmented .seg[aria-pressed="true"] {
  background: #0a0a64;
  color: #a6aeff;
}

.segmented .seg:disabled { opacity: .6; cursor: progress; }




/** Stats tables **/

.games-table td { padding: 8px 12px; }
.games-table .game-cell { display: flex; align-items: center; gap: 12px; min-height: 45px; }
.games-table .game-icon { width: 32px; height: 32px; object-fit: contain; }
.games-table td.num { text-align: center; }


/** **/

.plist-block {
  background: #f4f4f4;
  border: 1px solid #ccc;
  padding: 1em;
  overflow-x: auto;
  font-family: monospace;
  white-space: pre-wrap;
}


/** QR List **/

.qrlist-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 2rem;
}

.qr-card {
  text-align: center;
  width: 70%; /* QR takes up most of the page width */
}

.qr-name {
  font-size: 2rem; /* larger name above QR */
  margin-bottom: 1rem;
}

.qr-box {
  display: flex;
  justify-content: center;
}

.qr-box canvas {
  width: 70%;   /* scale to 70% of card width */
  height: auto; /* keep aspect ratio */
  max-width: 600px; /* optional cap for very large screens */
}

