:root {
  --bg1: #e6f7ff;
  --bg2: #cfe9ff;
  --card: #ffffffcc;
  --accent: #1e88e5;
  --muted: #6b7280;
  --success: #16a34a;
  --danger: #ef4444;
  --maxw: 940px;
}

/* --- original styles (kept) --- */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: linear-gradient(135deg, #6fb1fc 0%, #4364f7 50%, #1e3c72 100%);
  color: #07203a;
  min-height: 100vh;
  padding: 14px;
  display: flex;
  justify-content: center;
}

/* App card */
.app {
  width: 100%;
  max-width: var(--maxw);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.9)
  );
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(2, 6, 23, 0.18);
  overflow: hidden;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.06)
  );
  position: relative;
}
.hamburger {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff, #f1f7ff);
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(3, 10, 50, 0.12);
}
.title {
  font-weight: 700;
  font-size: 18px;
  color: #012a4a;
}
.top-right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* side menu */
.side-menu {
  position: absolute;
  left: 12px;
  top: 62px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.12);
  display: none;
  z-index: 60;
  min-width: 140px;
}
.side-menu a {
  display: block;
  padding: 8px 10px;
  color: #033e6b;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
}
.side-menu a:hover {
  background: #eef7ff;
}

/* content columns */
.content {
  padding: 18px;
}
section {
  margin-bottom: 20px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}

label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #08406a;
}
input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #e6f0fb;
  background: #fbfdff;
}
textarea {
  min-height: 80px;
  resize: vertical;
}
button {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, var(--accent), #36a2eb);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
small.muted {
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

/* mood selector */
.mood-selector {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.mood {
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef9ff;
  cursor: pointer;
  font-size: 18px;
}
.mood.active {
  background: #cfeeff;
  transform: translateY(-2px);
}

/* keyboard for subjects */
.keyboard {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.key {
  padding: 8px 10px;
  background: #f0f8ff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  color: #0b4a6f;
  box-shadow: 0 2px 6px rgba(3, 10, 50, 0.06);
}

/* table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  background: transparent;
}
th,
td {
  padding: 8px;
  border-bottom: 1px solid rgba(3, 10, 50, 0.06);
  text-align: left;
  font-size: 14px;
}
.small {
  font-size: 12px;
  color: var(--muted);
}

/* chart wrapper */
.chart-wrap {
  margin-top: 12px;
}

/* countdown */
.countdown {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  font-weight: 700;
  color: #0b3a66;
}

/* responsive */
@media (max-width: 700px) {
  .app {
    margin: 0 6px;
    border-radius: 12px;
  }
  .title {
    font-size: 16px;
  }
}

/* --- splash styles (new) --- */
.splash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  background: linear-gradient(135deg, #0f172a, #0369a1);
  color: white;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.splash.splash-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}
.splash-inner {
  text-align: center;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}
.splash-logo {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 1px;
}
.splash-sub {
  margin-top: 6px;
  opacity: 0.9;
  font-weight: 600;
}

/* --- suggestions area (new) --- */
#suggestionsContainer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.suggestion {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  padding: 10px;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.06);
}
.suggestion .title {
  font-weight: 700;
  margin-bottom: 4px;
}
.suggestion.small {
  font-size: 13px;
  color: #0b4a6f;
}

/* success / warning badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
}
.badge.good {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.18);
}
.badge.warn {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.12);
}
