html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
/* Prize grid: 3 square tiles per row */
.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.prize-tile {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 0.375rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  color: #666;
  font-size: 1.25rem;
  text-align: center;
  word-break: break-word;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.prize-tile:hover:not(:disabled) {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.prize-tile.active {
  border: 2px solid #0d6efd;
  color: #0d6efd;
}

.prize-tile:disabled {
  background: #e9f7ef;
  border-color: #c3e6cb;
  color: #198754;
  cursor: default;
}

.prize-tile small {
  font-size: 0.7rem;
  margin-top: 0.25rem;
}

/* Group Attendance */
.ga-filters {
  border: 0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ga-stat {
  height: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 0.75rem;
  border-left: 4px solid #6c757d;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ga-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
}

.ga-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.ga-stat-total { border-left-color: #0d6efd; }
.ga-stat-present { border-left-color: #198754; }
.ga-stat-present .ga-stat-value { color: #198754; }
.ga-stat-absent { border-left-color: #dc3545; }
.ga-stat-absent .ga-stat-value { color: #dc3545; }
.ga-stat-rate { border-left-color: #6f42c1; }
.ga-stat-rate .ga-stat-value { color: #6f42c1; }

.ga-group {
  margin-bottom: 0.75rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.ga-group:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ga-group-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 0.875rem 1rem;
  background: none;
  border: 0;
  text-align: left;
}

.ga-avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.ga-group-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ga-group-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #212529;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ga-group-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.75rem;
  font-size: 0.8rem;
  color: #495057;
}

.ga-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.3rem;
  border-radius: 50%;
}

.ga-dot-present { background: #198754; }
.ga-dot-absent { background: #dc3545; }

.ga-rate {
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-weight: 700;
}

.ga-good { color: #198754; }
.ga-mid { color: #e67700; }
.ga-low { color: #dc3545; }

.ga-chevron {
  flex: 0 0 auto;
  width: 0.6rem;
  height: 0.6rem;
  margin: 0 0.25rem 0 0.25rem;
  border-right: 2px solid #6c757d;
  border-bottom: 2px solid #6c757d;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}

.ga-group-head:not(.collapsed) .ga-chevron {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.ga-bar {
  height: 4px;
  background: #f8d7da;
}

.ga-bar-fill {
  height: 100%;
  background: #198754;
  transition: width 0.3s;
}

.ga-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  background: #f8f9fa;
  border-bottom-width: 1px;
}

.ga-table td, .ga-table th {
  padding: 0.55rem 1rem;
  vertical-align: middle;
}

.ga-pill {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.ga-pill-present { background: #d1e7dd; color: #0f5132; }
.ga-pill-absent { background: #f8d7da; color: #842029; }

.ga-name { font-weight: 600; }
