* {
  box-sizing: border-box;
}

:root {
  --lausd-blue: #003b8f;
  --lausd-blue-dark: #002b67;
  --lausd-sky: #1e88e5;
  --lausd-orange: #f36f21;
  --lausd-gold: #f6b81a;

  --text: #17324d;
  --muted: #6b7a90;

  --success: #1f9d55;
  --danger: #d64545;

  --border: #d7e3f0;
  --panel: #f7faff;
}

/* =========================================
     PAGE
  ========================================= */

body {
  margin: 0;
  min-height: 100vh;

  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);

  background: radial-gradient(
      circle at 90% 8%,
      rgba(243, 111, 33, 0.38) 0%,
      rgba(243, 111, 33, 0.18) 18%,
      transparent 38%
    ),
    radial-gradient(
      circle at 5% 35%,
      rgba(30, 136, 229, 0.42) 0%,
      rgba(30, 136, 229, 0.16) 25%,
      transparent 48%
    ),
    radial-gradient(
      circle at 85% 90%,
      rgba(246, 184, 26, 0.3) 0%,
      transparent 35%
    ),
    linear-gradient(
      145deg,
      #003b8f 0%,
      #0759b5 35%,
      #e9f5ff 35%,
      #f5faff 70%,
      #fff3e8 100%
    );

  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;

  width: 280px;
  height: 280px;

  top: -100px;
  left: -80px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;

  width: 220px;
  height: 220px;

  right: -70px;
  bottom: -60px;

  border-radius: 50%;

  background: rgba(243, 111, 33, 0.12);

  pointer-events: none;
}

/* =========================================
     MAIN CONTAINER
  ========================================= */

.container {
  width: 100%;
  max-width: 650px;

  margin: 0 auto;

  padding: 24px 16px 50px;
}

/* =========================================
     HEADER
  ========================================= */

header {
  text-align: center;

  padding: 20px 24px;
  margin-bottom: 18px;

  background: rgba(255, 255, 255, 0.94);

  border-radius: 18px;

  border-bottom: 5px solid var(--lausd-orange);

  box-shadow: 0 7px 20px rgba(0, 43, 103, 0.18);
}

header h1 {
  margin: 0 0 7px;

  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;

  color: var(--lausd-blue-dark);

  text-shadow: none;
}

header p {
  margin: 0;

  font-size: 17px;
  font-weight: 500;

  color: var(--muted);
}
/* =========================================
     MAIN CARD
  ========================================= */

.card {
  background: white;

  border-radius: 20px;

  padding: 28px;

  border-top: 6px solid var(--lausd-orange);

  box-shadow: 0 12px 35px rgba(25, 55, 90, 0.1);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 24px;

  text-align: center;

  font-size: 24px;

  color: var(--lausd-blue-dark);
}

/* =========================================
     FORM ELEMENTS
  ========================================= */

label,
.question {
  display: block;

  margin-top: 25px;
  margin-bottom: 10px;

  font-size: 17px;
  font-weight: 700;

  color: var(--lausd-blue-dark);
}

label span {
  font-weight: 400;
  color: var(--muted);
}

select,
textarea,
input {
  width: 100%;

  padding: 14px 15px;

  border: 2px solid var(--border);

  border-radius: 12px;

  background: white;

  color: var(--text);

  font-size: 16px;

  transition: 0.2s ease;
}

select:focus,
textarea:focus,
input:focus {
  outline: none;

  border-color: var(--lausd-sky);

  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

/* =========================================
     STAR RATING
  ========================================= */

.stars {
  display: flex;
  justify-content: center;

  gap: 9px;

  margin: 14px 0;
}

.stars button {
  width: 54px;
  height: 54px;

  border: 2px solid var(--border);

  border-radius: 13px;

  background: white;

  color: #cfd6df;

  font-size: 30px;

  cursor: pointer;

  transition: 0.15s ease;
}

.stars button:hover {
  transform: translateY(-2px);

  border-color: var(--lausd-gold);
}

.stars button.active {
  color: var(--lausd-gold);

  border-color: var(--lausd-gold);

  background: #fff9e8;

  box-shadow: 0 4px 12px rgba(246, 184, 26, 0.2);
}

/* =========================================
     GOOD / NEEDS IMPROVEMENT
  ========================================= */

.choice {
  display: flex;
  gap: 12px;
}

.choice button {
  flex: 1;

  padding: 15px 12px;

  border: 2px solid var(--border);

  border-radius: 12px;

  background: white;

  color: var(--text);

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.15s ease;
}

.choice button:hover {
  transform: translateY(-1px);

  border-color: var(--lausd-sky);
}

.choice button.selected {
  background: linear-gradient(135deg, #e9f8ef, #f5fff8);

  border-color: var(--success);

  color: #16743e;
}

/* =========================================
     FOLLOW-UP REASONS
  ========================================= */

.reason-box {
  margin-top: 14px;

  padding: 17px;

  border-radius: 14px;

  background: linear-gradient(135deg, #eef6ff, #f7fbff);

  border: 1px solid #cfe2f7;
}

.reason-box p {
  margin: 0 0 12px;

  font-weight: 700;

  color: var(--lausd-blue);
}

.reason-options {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 10px;
}

.reason-options button {
  padding: 12px;

  border: 1px solid #cdd8e6;

  border-radius: 10px;

  background: white;

  color: var(--text);

  font-size: 15px;

  cursor: pointer;

  transition: 0.15s ease;
}

.reason-options button:hover {
  border-color: var(--lausd-orange);

  background: #fff7f1;
}

.reason-options button.selected {
  background: #fff2e9;

  border: 2px solid var(--lausd-orange);

  color: #b34b0c;

  font-weight: 700;
}

/* =========================================
     PRIMARY BUTTON
  ========================================= */

.submit {
  width: 100%;

  margin-top: 28px;

  padding: 17px;

  border: none;

  border-radius: 12px;

  background: linear-gradient(90deg, var(--lausd-orange), #ff8b3d);

  color: white;

  font-size: 18px;
  font-weight: 800;

  cursor: pointer;

  box-shadow: 0 7px 18px rgba(243, 111, 33, 0.28);

  transition: 0.15s ease;
}

.submit:hover {
  transform: translateY(-1px);

  box-shadow: 0 9px 22px rgba(243, 111, 33, 0.35);
}

.submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================================
     THANK YOU
  ========================================= */

.thank-you {
  margin-top: 22px;

  padding: 20px;

  border-radius: 14px;

  background: linear-gradient(135deg, #eaf8ef, #f8fff9);

  border: 1px solid #cce9d5;

  text-align: center;
}

.thank-you h2 {
  margin: 0 0 7px;

  color: var(--success);
}

.thank-you p {
  margin: 0;
}

/* =========================================
     DASHBOARD STATS
  ========================================= */

.dashboard-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 14px;

  margin-bottom: 24px;
}

.stat-card {
  padding: 20px 12px;

  background: #f5f9ff;

  border-radius: 14px;

  border-bottom: 4px solid var(--lausd-orange);

  text-align: center;
}

.stat-icon {
  display: block;

  font-size: 25px;
}

.stat-number {
  display: block;

  margin-top: 7px;

  font-size: 30px;
  font-weight: 800;

  color: var(--lausd-blue);
}

.stat-label {
  display: block;

  margin-top: 4px;

  color: var(--muted);

  font-size: 14px;
}

/* =========================================
     SCHOOL SELECTOR
  ========================================= */

.school-section {
  margin-bottom: 18px;
}

.school-section h3 {
  margin: 0 0 12px;

  color: var(--lausd-blue-dark);

  font-size: 18px;
}

.school-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}

.school-button {
  appearance: none;

  padding: 10px 16px;

  border: 2px solid var(--border);

  border-radius: 12px;

  background: white;

  color: var(--lausd-blue);

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  box-shadow: 0 2px 5px rgba(0, 59, 143, 0.05);

  transition: all 0.15s ease;
}

.school-button:hover {
  transform: translateY(-1px);

  border-color: var(--lausd-orange);

  background: #fffaf6;
}

.school-button.active-school {
  background: var(--lausd-blue);

  color: white;

  border-color: var(--lausd-blue);

  box-shadow: 0 5px 12px rgba(0, 59, 143, 0.18);
}

.selected-school {
  margin-top: 12px;
  margin-bottom: 18px;

  padding: 12px 14px;

  background: #eef6ff;

  border-radius: 10px;

  border-left: 5px solid var(--lausd-orange);
}

.selected-school span {
  margin-right: 4px;

  color: var(--muted);
}

.selected-school strong {
  color: var(--lausd-blue);
}

/* =========================================
     DASHBOARD PANELS
  ========================================= */

.dashboard-panel {
  margin-top: 18px;

  padding: 18px;

  background: var(--panel);

  border-radius: 14px;
}

.dashboard-panel h3 {
  margin-top: 0;

  color: var(--lausd-blue);
}

/* =========================================
     ISSUES
  ========================================= */

.issue-row {
  display: flex;

  justify-content: space-between;

  gap: 15px;

  padding: 10px 0;

  border-bottom: 1px solid #dde7f1;
}

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

.issue-row small {
  display: block;

  margin-top: 3px;

  color: var(--muted);

  font-size: 12px;
}

/* =========================================
     COMMENTS
  ========================================= */

.comment-card {
  padding: 13px;
  margin-bottom: 10px;

  background: white;

  border-radius: 10px;

  border-left: 4px solid var(--lausd-orange);
}

.comment-card span {
  float: right;
}

.comment-card p {
  margin: 9px 0;
}

.comment-card small {
  color: var(--muted);
}

/* =========================================
     TREND CHART
  ========================================= */

.trend-chart {
  width: 100%;

  padding: 8px;

  background: white;

  border-radius: 12px;

  overflow-x: auto;
}

.approval-chart {
  display: block;

  width: 100%;

  min-width: 520px;

  height: auto;
}

.chart-grid-line {
  stroke: #dce5ef;
  stroke-width: 1;
}

.chart-axis-label,
.chart-date-label {
  fill: #68788d;

  font-size: 12px;
}

.food-line {
  fill: none;

  stroke: var(--lausd-orange);

  stroke-width: 4;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-line {
  fill: none;

  stroke: var(--lausd-sky);

  stroke-width: 4;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.food-point {
  fill: var(--lausd-orange);

  stroke: white;

  stroke-width: 3;
}

.service-point {
  fill: var(--lausd-sky);

  stroke: white;

  stroke-width: 3;
}

/* =========================================
     LOGOUT
  ========================================= */

.logout-button {
  width: 100%;

  margin-top: 25px;

  padding: 13px;

  border: 2px solid var(--lausd-blue);

  border-radius: 10px;

  background: white;

  color: var(--lausd-blue);

  font-weight: bold;

  cursor: pointer;
}

.logout-button:hover {
  background: #eef6ff;
}

/* =========================================
     UTILITIES
  ========================================= */

.hidden {
  display: none;
}

/* =========================================
     MOBILE
  ========================================= */

@media (max-width: 520px) {
  .container {
    padding: 12px 10px 30px;
  }

  header {
    padding: 22px 12px;
  }

  header h1 {
    font-size: 31px;
  }

  header p {
    font-size: 15px;
  }

  .card {
    padding: 21px 16px;

    border-radius: 16px;
  }

  .choice {
    flex-direction: column;
  }

  .reason-options {
    grid-template-columns: 1fr;
  }

  .stars {
    gap: 5px;
  }

  .stars button {
    width: 46px;
    height: 46px;

    font-size: 25px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .school-buttons {
    gap: 7px;
  }

  .school-button {
    padding: 9px 11px;

    font-size: 13px;
  }
}
