body {
  margin: 0;
  padding: 0;
  display: flex;
  min-height: 100vh;
  background-color: #f5f5f5;
  font-family: "DM Sans", sans-serif;
}

h1 {
  font-size: 4.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  margin-top: 30px;
}

.dashboard {
  width: 25rem;
  margin: 15px;
  margin-right: 0;
  padding: 15px;
  border-radius: 15px;
  box-sizing: border-box;
}

.no-margin {
  margin: 0;
}

.no-side-margin {
  margin-left: 0;
  margin-right: 0;
}

.blue-gradient-bg {
  background: #ffffff;
  background: linear-gradient(10deg, #ffffff 2%, #e6eeff 74%, #cce0ff 100%);
}

.gray-bg {
  background-color: #ffffff;
}

.emblem {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.5rem;
  font-weight: 600;
  color: #3687ff;
  margin-left: 20px;
}

.display {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 0 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 0 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: inline-block;
  box-sizing: border-box;
}

.button.full-width {
  width: 100%;
  display: block;
}

.button:hover {
  background: linear-gradient(0deg, #ffffff 2%, #e6eeff 60%, #cce0ff 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button:active {
  background: linear-gradient(0deg, #e6eeff 2%, #e6eeff 60%, #cce0ff 100%);
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.container {
  flex: 1;
  margin: 15px;
  padding: 15px;
  border-radius: 15px;
  box-sizing: border-box;
  align-items: center;
  gap: 10px;
}

.container p {
  margin: 0;
  font-size: 1.2rem;
  color: #2c3e50;
}

.button-content {
  display: flex;
  align-items: center;
}

.button-text {
  color: #2c3e50;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  width: 100%;
  text-align: center;
}

.fit-width {
  width: 100%;
}

#action_sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

#player_stats {
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.task-item {
  padding: 10px;
  border-radius: 15px;
  background: #f6f6f6;
  background: linear-gradient(10deg, #fcfcfc 2%, #eff4ff 74%, #e6eeff 100%);
  color: #2c3e50;
  font-weight: 400;
  font-size: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
  transition: background 0.3s ease;
}

.task-item.running {
  background: #f6f6f6;
  background: linear-gradient(10deg, #fcfcfc 2%, #e8ffef 74%, #d4ffe6 100%);
}

.task-item.completed {
  background: #f6f6f6;
  background: linear-gradient(10deg, #fcfcfc 2%, #e8ffef 74%, #d4ffe6 100%);
  border: 2px solid #4caf50;
}

.task-item.completed .time-text {
  color: #4caf50;
  font-weight: 500;
}

.task-content {
  flex: 1;
}

.task-widgets {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.task-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.time-text {
  font-size: 1.2rem;
  font-weight: 300;
  color: #2c3e50;
  margin: 0;
}

.task-item > img {
  margin-left: auto;
}

.task-item > img:active {
  filter: brightness(0.3);
}

.task-item > button {
  background-color: #ffffff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2c3e50;
  display: flex;
}

.emblem-container-no-fullwidth {
  width: auto;
  display: flex;
}

.emblem-container {
  width: 100%;
  display: flex;
}

.justify-right {
  justify-content: right;
  align-items: right;
}

.svg-emblem {
  width: 1.5rem;
  height: 1.5rem;
  filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(190deg)
    brightness(100%) contrast(119%);
  transition: filter 0.2s ease;
  margin-left: 10px;
  cursor: pointer;
}

.emblem-container .svg-emblem:hover {
  filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(190deg)
    brightness(70%) contrast(119%);
}

.emblem-container .svg-emblem:active {
  filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(190deg)
    brightness(40%) contrast(119%);
}

@keyframes slideOutRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.task-item.closing {
  animation: slideOutRight 0.3s ease-out forwards;
  pointer-events: none;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background-color: #ffffff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 900;
  display: none;
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 800;
}

.input-container > input {
  width: 100%;
  padding: 10px;
  border-radius: 15px;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  font-size: 1.2rem;
  font-weight: 400;
  color: #2c3e50;
  background-color: #ebf3ff;
}

.top-margin-space {
  margin-top: 10px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 700;
  display: none;
}

.flex-display {
  display: flex;
}

.flex-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flex-container p {
  margin: 0;
  font-size: 1.2rem;
  color: #2c3e50;
}

#add_task_popup_button {
  background-color: #ffffff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2c3e50;
  width: auto;
  box-sizing: border-box;
  margin-left: auto;
  display: inline-block;
  padding: 10px 20px;
}

.task-buttons .svg-emblem {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.task-buttons .svg-emblem:hover {
  transform: scale(1.1);
  filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(190deg)
    brightness(70%) contrast(119%);
}

.task-buttons .svg-emblem:active {
  transform: scale(0.95);
  filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(190deg)
    brightness(40%) contrast(119%);
}
