@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&display=swap');

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

body {
  margin: 0;
  min-height: 100vh;
  background: #e8e8e8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333;
  line-height: 1.5;
}

.phone {
  max-width: 390px;
  min-height: 100vh;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.screen-header {
  padding: 20px 20px 12px;
  border-bottom: 2px dashed #ddd;
}

.screen-header h1 {
  margin: 0;
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 1.75rem;
  font-weight: 400;
  color: #222;
}

.screen-header .subtitle {
  margin: 4px 0 0;
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 0.95rem;
  color: #666;
}

.screen-content {
  flex: 1;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-label {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 1rem;
  color: #555;
  margin: 0 0 -8px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dash-tile {
  display: block;
  height: 100%;
}

.dash-tile-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 108px;
  padding: 14px 10px;
  text-decoration: none;
  color: inherit;
}

.dash-icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash-label {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.25;
}

.card-content {
  padding: 12px;
}

.card-content h2 {
  margin: 0 0 8px;
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 1.15rem;
  font-weight: 400;
}

.card-content p {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.card-content p:last-child {
  margin-bottom: 0;
}

.meta-text {
  font-size: 0.8rem;
  color: #888;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-item {
  font-size: 0.85rem;
}

.stat-item strong {
  font-family: 'Gloria Hallelujah', cursive;
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
}

.nav-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.btn-hachure {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
}

.btn-hachure-primary wired-button {
  display: block;
  background-color: #ececec;
  background-image: repeating-linear-gradient(
    -41deg,
    rgba(160, 160, 160, 0.35) 0,
    rgba(160, 160, 160, 0.35) 1px,
    transparent 1px,
    transparent 6px
  );
}

.btn-hachure-secondary wired-button {
  display: block;
  background-color: #f3f3f3;
  background-image: repeating-linear-gradient(
    -41deg,
    rgba(160, 160, 160, 0.25) 0,
    rgba(160, 160, 160, 0.25) 1px,
    transparent 1px,
    transparent 7px
  );
}

.text-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.text-nav a {
  font-family: 'Gloria Hallelujah', cursive;
  color: #4a6fa5;
  text-decoration: underline;
  font-size: 0.95rem;
}

.back-link {
  font-family: 'Gloria Hallelujah', cursive;
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: auto;
  padding-top: 8px;
}

.back-link:hover {
  color: #333;
}

.attendance-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.attendance-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group wired-input {
  width: 100%;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 0.95rem;
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
  font-size: 0.85rem;
}

.invoice-row:last-child {
  border-bottom: none;
}

.invoice-status {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 0.85rem;
}

.invoice-status.paid {
  color: #2e7d32;
}

.invoice-status.due {
  color: #c62828;
}

.attendance-history {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 8px;
}

.day-col {
  text-align: center;
  font-size: 0.75rem;
}

.day-col .day-label {
  font-family: 'Gloria Hallelujah', cursive;
  display: block;
  margin-bottom: 4px;
  color: #666;
}

.day-col .day-mark {
  font-size: 1rem;
}

wired-card {
  display: block;
}

wired-button {
  cursor: pointer;
}
