* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; background: #f7fbff; color: #071a3d; }
.app-header { max-width: 1100px; margin: auto; padding: 22px 18px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 28px; font-weight: 800; color: #1e63ff; text-decoration: none; }
nav { display: flex; gap: 14px; flex-wrap: wrap; }
nav a { color: #071a3d; text-decoration: none; font-weight: 700; }
.container { max-width: 1100px; margin: 20px auto 50px; padding: 0 18px; }
.card, .stat { background: white; border-radius: 18px; padding: 26px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); margin-bottom: 20px; }
input, select, textarea { width: 100%; padding: 13px; border: 1px solid #dce3ef; border-radius: 10px; margin-bottom: 14px; font-size: 15px; }
button, .btn { background: #1e63ff; color: white; padding: 13px 18px; border: none; border-radius: 10px; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-block; margin: 4px 4px 4px 0; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat strong { display: block; font-size: 26px; color: #1e63ff; margin-top: 8px; }
.alert { background: #eafff6; color: #007a53; padding: 12px; border-radius: 10px; margin-bottom: 14px; }
.error { background: #fff1f1; color: #c0392b; padding: 12px; border-radius: 10px; margin-bottom: 14px; }
.bar { height: 10px; background: #eef2f7; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.bar div { height: 100%; background: #1e63ff; }
.footer { text-align: center; color: #5b6b88; padding: 25px; }
@media (max-width: 768px) { .app-header { flex-direction: column; gap: 14px; } nav { justify-content: center; } .grid { grid-template-columns: 1fr; } }
.fun-card {
  background: linear-gradient(135deg, #1e63ff, #00b894);
  color: white;
}

.fun-card p {
  color: #eef5ff;
}

.bar {
  height: 12px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0;
}

.bar div {
  height: 100%;
  background: #00b894;
}
/* DASHBOARD COLOR CARDS */

.grid .stat:nth-child(1) {
  background: linear-gradient(135deg, #1e63ff, #5b8cff) !important;
  color: white !important;
}

.grid .stat:nth-child(2) {
  background: linear-gradient(135deg, #ff6b6b, #ff9f43) !important;
  color: white !important;
}

.grid .stat:nth-child(3) {
  background: linear-gradient(135deg, #00b894, #55efc4) !important;
  color: white !important;
}

.grid .stat:nth-child(4) {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe) !important;
  color: white !important;
}

.grid .stat strong {
  color: white !important;
}

.grid .stat {
  border: none !important;
}

.card {
  border: 1px solid #edf2f7;
}

.card h2 {
  color: #1e63ff;
}

.btn {
  box-shadow: 0 8px 20px rgba(30, 99, 255, 0.22);
}
.dashboard-subtitle {
  color: #5b6b88;
  margin-top: -10px;
  margin-bottom: 25px;
}
.dash-hero {
  background: linear-gradient(135deg, #1e63ff, #00b894);
  color: white;
  padding: 32px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.dash-hero p {
  color: #eaf2ff;
}

.score-card {
  background: rgba(255,255,255,0.18);
  padding: 20px;
  border-radius: 18px;
  text-align: center;
}

.score-card strong {
  display: block;
  font-size: 34px;
}

.stat.blue { border-left: 6px solid #1e63ff; }
.stat.red { border-left: 6px solid #e74c3c; }
.stat.green { border-left: 6px solid #00b894; }
.stat.purple { border-left: 6px solid #9b59b6; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.colorful-card {
  background: linear-gradient(135deg, #eef5ff, #ffffff);
}

.mini-grid,
.habit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.mini-grid div,
.habit-grid div {
  background: #f7fbff;
  padding: 18px;
  border-radius: 16px;
  font-weight: 700;
}

.mini-grid span {
  display: block;
  color: #5b6b88;
  margin-bottom: 8px;
}

.mini-grid strong {
  color: #1e63ff;
  font-size: 22px;
}

.warning {
  background: #fff4e6;
  color: #b35b00;
  padding: 14px;
  border-radius: 12px;
}

.success-text {
  background: #eafff6;
  color: #007a53;
  padding: 14px;
  border-radius: 12px;
}

.tip-list li {
  margin-bottom: 10px;
  color: #5b6b88;
}

.goal-card {
  border: 2px solid #eef5ff;
}

.fun-card {
  background: linear-gradient(135deg, #1e63ff, #00b894);
  color: white;
}

.fun-card p {
  color: #ffffff;
  opacity: 0.96;
}
.fun-card h2 {
  color: #ffffff;
}

.fun-card {
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

.action-card {
  text-align: center;
}

.bar {
  height: 14px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0;
}

.bar div {
  height: 100%;
  background: linear-gradient(90deg, #1e63ff, #00b894);
}

@media (max-width: 768px) {
  .dash-hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    text-align: center;
  }

  .mini-grid,
  .habit-grid {
    grid-template-columns: 1fr;
  }
}