body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f6f8fa;
  margin: 0;
  padding: 0;
}
#app {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0 40px 0;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.header-date-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.date {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 0.2em;
}
.time {
  font-size: 1.2em;
  color: #1976d2;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 0.2em;
}
.streak {
  font-size: 1.2em;
  color: #4caf50;
  margin-left: 20px;
}
.dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}
.task-btn {
  border: 3px solid #e0e0e0;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  font-size: 1.25em;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 160px;
  min-width: 0;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
} 
.task-btn.completed {
  border-color: #4caf50;
  box-shadow: 0 4px 16px rgba(76,175,80,0.12);
  opacity: 1;
}
.task-btn img {
  display: none;
}
.task-btn .label {
  width: 100%;
  padding: 12px 0 8px 0;
  background: rgba(0,0,0,0.50);
  color: #fff;
  font-weight: 700;
  font-size: 1.25em;
  text-align: center;
  text-shadow: 0 2px 8px #000, 0 0px 2px #222;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  letter-spacing: 0.5px;
  position: absolute;
  bottom: 0;
  left: 0;
}
.task-btn .timer {
  font-size: 1.05em;
  color: #fff;
  background: rgba(0,0,0,0.35);
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 8px;
  margin-top: 8px;
  font-weight: 500;
  text-shadow: 0 1px 4px #000;
  position: absolute;
  top: 8px;
  right: 8px;
}
.reset-btn {
  background: #fff3cd;
  border: 2px solid #ffe082;
  color: #c49000;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 1.1em;
  margin-bottom: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.reset-btn.active {
  background: #ffe082;
}
.sportsbag-hint {
  display: flex;
  align-items: center;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 1.15em;
  margin-bottom: 18px;
  gap: 10px;
}
.sportsbag-hint img {
  width: 36px;
  height: 36px;
}
.switch-view-btn {
  background: #e0e0e0;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1em;
  cursor: pointer;
  margin-left: 10px;
  transition: background 0.2s;
}
.switch-view-btn.active {
  background: #90caf9;
  color: #1976d2;
}
.leaderboard {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.09);
  padding: 24px;
  margin-top: 18px;
  overflow-x: auto;
}
.leaderboard table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.08em;
}
.leaderboard th, .leaderboard td {
  padding: 8px 6px;
  text-align: center;
}
.leaderboard th {
  background: #f0f4c3;
}
.leaderboard td.best-task {
  background: #c8e6c9;
  font-weight: bold;
}
.leaderboard tr.best-day {
  background: #ffe082;
}
@media (max-width: 1100px) {
  .dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .header {
    flex-direction: column;
    gap: 8px;
  }
}
