body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: linear-gradient(to right, #f0f9ff, #fdfefe);
}

/* ================= HEADER ================= */

.header {
  background: #b3e5fc;             /* light medical blue */
  color: #01579b;
  padding: 20px;
  text-align: center;
  border-bottom: 3px solid #81d4fa;
}

/* ================= MAIN CONTAINER ================= */

.container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  margin: 30px;
}

/* ================= LEFT PANEL ================= */

.controls {
  width: 35%;
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

.menu {
  margin-bottom: 20px;
}

select, input {
  width: 95%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* ================= RIGHT SIDE ================= */

.rightSide {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ================= PLATE ================= */

.plate {
  width: 450px;
  height: 450px;
  border-radius: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  border: 8px solid #37474f;
  margin: 0 auto;
}

/* Each quadrant */
.section {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical center */
  align-items: center;       /* horizontal center */
  text-align: center;
  padding: 20px;
  font-weight: bold;
  font-size: 14px;
}

/* Section title */
.section .label {
  font-size: 18px;
  margin-bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Food info text */
.section .info {
  font-size: 14px;
  width: 100%;
  text-align: center;
}

/* Background Colors */
.carbs {
  background: #ffe0b2;
}

.protein {
  background: #bbdefb;
}

.fiber {
  background: #c8e6c9;
}

.fat {
  background: #f8bbd0;
}

/* ================= TRAFFIC LIGHT ================= */

.traffic {
  width: 90px;
  margin-top: 20px;
  background: #263238;
  padding: 12px;
  border-radius: 15px;
}

.light {
  width: 55px;
  height: 55px;
  margin: 10px auto;
  border-radius: 50%;
  opacity: 0.3;
}

.red { background: red; }
.yellow { background: gold; }
.green { background: limegreen; }

.active {
  opacity: 1;
  box-shadow: 0 0 15px white;
}

/* ================= RESULT ================= */

.resultBox {
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
}

#status {
  margin-top: 10px;
  font-size: 16px;
}