:root {
  --bg-color: white;
  --text-color: black;
  --head-color: blue;
  --btn-color: white;
  --btn-bg: blue;
  --today-bg: blue;
  --today-text: white;
}

[data-theme="dark"] {
  --bg-color: rgb(30, 30, 30);
  --text-color: white;
  --head-color: yellow;
  --btn-color: black;
  --btn-bg: yellow;
  --today-bg: yellow;
  --today-text: black;
}

body {
  background: var(--bg-color);
  transition: background 0.5s;
}
* {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.header {
  position: fixed;
  width: 100%;
  padding: 20px 50px;
}
.header header {
  padding: 10px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 2px 2px 3px 3px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}
.header .logo {
  font-size: 24px;
  color: var(--head-color);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.5s;
}
.header .navbar a {
  font-size: 18px;
  color: var(--text-color);
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.5s;
}
.header .navbar a:hover {
  color: var(--head-color);
  transition: color 0.5s;
}

.card-container {
  position: fixed;
  width: 500px;
  height: 150px;
  box-shadow: 2px 2px 3px 3px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}
.card {
  padding: 100px 50px;
}
.image-container img {
  position: fixed;
  height: 100px;
  width: 100px;
  border-radius: 50%;
}
.image-container {
  padding: 25px 20px;
}
.card-content {
  display: flex;
  justify-content: space-between;
}
.contents {
  padding: 20px;
}
.contents h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--head-color);
  transition: color 0.5s;
}
.contents p {
  color: var(--text-color);
  font-size: 16px;
  font-weight: 400;
  transition: color 0.5s;
}
.calendar {
  padding: 100px 50px;
}
.calendar-container {
  padding: 20px;
  border-radius: 15px;
  box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.3);
  width: 500px;
  position: fixed;
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.calendar-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--head-color);
  transition: color 0.5s;
}
.calendar-header button {
  background: var(--head-color);
  color: var(--btn-color);
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.5s, color 0.5s;
}
.calendar-weekdays, .calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}
.calendar-weekdays div {
  font-weight: bold;
  color: var(--text-color);
  padding: 8px 0;
  transition: color 0.5s;
}
.calendar-days div {
  padding: 10px;
  margin: 2px;
  border-radius: 50%;
}
.calendar-days {
  color: var(--text-color);
}
.calendar-days div:hover {
  background: var(--btn-bg);
  color: var(--btn-color);
  cursor: pointer;
  transition: background 0.5s, color 0.5s;
}
.today {
  background: var(--today-bg);
  color: var(--today-text);
  transition: background 0.5s, color 0.5s;
}
.time {
  color:  var(--head-color);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}
#time {
  color: var(--text-color);
}
.fixed {
  position: fixed;
  padding: 50px;
}
.box-container {
  height: 78vh;
  box-shadow: 2px 2px 3px 3px rgba(0, 0, 0, 0.3);
  width: 58.5%;
  position: fixed;
  transform: translateX(65%) translateY(-56.5%);
  border-radius: 10px;
  overflow-y: auto;
}

/* Popup Styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 30px;
  border-radius: 10px;
  width: 400px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: background 0.5s, color 0.5s;
}

.popup-content input,
.popup-content textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid var(--head-color);
  border-radius: 5px;
  background: transparent;
  color: var(--text-color);
}

.popup-content button {
  background-color: var(--btn-bg);
  color: var(--btn-color);
  padding: 10px 20px;
  border: none;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
}

.popup-content button:hover {
  opacity: 0.9;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
}
.box-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 20px;
  margin-left: 20px;
}
.box-task {
  box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.3);
  padding: 20px;
  height: 200px;
  width: 260px;
  margin-bottom: 20px;
  border-radius: 8px;
}
.box-task h2 {
  color: var(--head-color);
  font-size: 20px;
}
.box-task p {
  color: var(--text-color);
  margin-top: 10px;
}
.head-task {
  display: flex;
  justify-content: space-between;
}
.head-task button {
  background: var(--btn-bg);
  box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.3);
  border: none;
  top: 10px;
  cursor: pointer;
  height: 25px;
  width: 25px;
  font-size: 18px;
  border-radius: 5px;
  color: var(--btn-color);
}