body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
}

.app-container {
  max-width: 420px;
  margin: 20px auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.header-with-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.menu-icon {
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

.menu-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1000;
}

#menu-toggle:checked ~ .menu-drawer {
  display: block;
}

.menu-drawer .overlay {
  position: absolute;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}

.menu-content {
  position: fixed;
  top: 0; right: 0;
  width: 220px;
  height: 100%;
  background: #fff;
  padding: 20px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-links a,
.menu-links .menu-link {
  text-decoration: none;
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  cursor: pointer;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}

.profile-name {
  font-size: 1rem;
  color: #333;
}

.todo-list h4 {
  margin-bottom: 8px;
}

.todo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.todo-item label {
  flex: 1;
  margin-left: 10px;
}

.badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 12px;
  color: #444;
}

.today {
  background-color: #ffe599;
}

.tomorrow {
  background-color: #d9ead3;
}

.category {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.category button {
  flex: 1 0 30%;
  padding: 8px;
  background-color: #d9e2f3;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.btn {
  padding: 10px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}

.btn.grey {
  background-color: #e0e0e0;
}

.btn.blue {
  background-color: #cfe2f3;
}

.stats h4 {
  margin-bottom: 8px;
}

.stats-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.stat-box {
  flex: 1;
  padding: 12px;
  background-color: #f2f2f2;
  border-radius: 6px;
  text-align: center;
}

.stat-box h3 {
  margin: 5px 0;
  font-size: 1.4rem;
}

.up {
  color: green;
  font-weight: bold;
}

.down {
  color: red;
  font-weight: bold;
}

.recent-notes {
  margin-top: 20px;
}

.note-card {
  display: flex;
  gap: 10px;
  align-items: center;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
}

.recent-img {
  width: 30%;
  height: 30px;
  object-fit: cover;
  border-radius: 8px;
  margin: 10px 0;
  display: block;
}

.note-content p {
  font-size: 0.85rem;
  color: #555;
}

.labels {
  margin-top: 20px;
}

.label-tags {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.label {
  background-color: #e0e0e0;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.label.urgent {
  background-color: #f4cccc;
}

footer {
  margin-top: 30px;
  border-top: 1px solid #ddd;
  padding: 10px 0;
  background-color: #fff;
}

.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bottom-nav a {
  text-decoration: none;
  color: #333;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bottom-nav img {
  width: 24px;
  height: 24px;
}

.calendar-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  font-size: 0.8rem;
  color: #333;
}

.calendar-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 999;
}

#toggle-calendar-grid:checked ~ .calendar-popup {
  display: block;
}

.calendar-popup .overlay {
  position: absolute;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  top: 0; left: 0;
}

.calendar-box {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 360px;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  z-index: 1000;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.day-name {
  font-weight: bold;
}

.day-name.sun {
  color: red;
}

.date {
  padding: 10px;
  background-color: #f2f2f2;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}

.date:hover {
  background-color: #dceeff;
}
