/* ======================================
   GLOBAL STYLES (Notebook Theme)
====================================== */

body {

  font-family: "Courier New", monospace;

  background-color: #f4f4f4;

  background-image:
    radial-gradient(circle at 25% 25%, rgba(0,0,0,0.03) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(0,0,0,0.03) 2px, transparent 2px);

  background-size: 60px 60px;

  padding: 40px;

}



/* ======================================
   APP LAYOUT
====================================== */

.app-layout {

  display: flex;
  gap: 30px;

  align-items: flex-start;
  justify-content: center;

}



/* ======================================
   MAIN TASK CONTAINER
====================================== */

.container {

  width: 100%;
  max-width: 520px;

  background: white;

  padding: 30px;

  border: 2px solid black;

  box-shadow: 6px 6px 0px black;

}



/* ======================================
   DASHBOARD PANEL
====================================== */

.dashboard {

  width: 280px;

  background: white;

  padding: 20px;

  border: 2px solid black;

  box-shadow: 4px 4px 0px black;

  height: fit-content;

}

.dashboard h2 {

  margin-bottom: 15px;
  border-bottom: 1px dashed black;
  padding-bottom: 8px;

}



/* ======================================
   TASK INPUT
====================================== */

.task-input {

  display: flex;
  gap: 10px;
  margin-bottom: 20px;

}

.task-input input {

  flex: 1;
  padding: 10px;
  border: 1px solid black;

}

.task-input select,
.task-input button {

  padding: 10px;
  border: 1px solid black;

}



/* ======================================
   BUTTONS
====================================== */

button {

  cursor: pointer;
  background: white;
  transition: 0.2s;

}

button:hover {

  background: black;
  color: white;

}



/* ======================================
   FILTERS
====================================== */

.filters {

  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

}



/* ======================================
   TASK LIST
====================================== */

ul {

  list-style: none;
  padding: 0;

}

li {

  display: flex;
  justify-content: space-between;

  padding: 12px;

  margin-top: 10px;

  border-bottom: 1px dashed black;

  transition: all 0.2s ease;

}

li:hover {

  transform: translateY(-2px);
  background: #fafafa;
  box-shadow: 2px 2px 0px black;

}

.completed span {

  text-decoration: line-through;
  color: gray;

}



/* ======================================
   PROGRESS BAR
====================================== */

.progress-section {

  margin: 18px 0;

}

.progress-bar {

  width: 100%;
  height: 16px;

  border: 2px solid black;

  background: repeating-linear-gradient(
    45deg,
    #f4f4f4,
    #f4f4f4 6px,
    #eaeaea 6px,
    #eaeaea 12px
  );

  overflow: hidden;

}

#progress {

  height: 100%;
  width: 0%;

  background: repeating-linear-gradient(
    -45deg,
    black,
    black 4px,
    transparent 4px,
    transparent 8px
  );

  transition: width 0.3s ease;

}

#progressText {

  font-size: 12px;
  margin-top: 8px;

  text-align: right;
  font-style: italic;

}



/* ======================================
   EMPTY STATE
====================================== */

.empty-state {

  text-align: center;
  padding: 30px 10px;

  opacity: 0.6;
  font-style: italic;

}



/* ======================================
   DASHBOARD CONTENT
====================================== */

.stats p {

  margin: 6px 0;

}

.insights {

  margin-top: 15px;

  font-style: italic;
  border-top: 1px dashed black;
  padding-top: 10px;

}



/* ======================================
   ANIMATION
====================================== */

.burn {

  animation: burnTask 0.5s forwards;

}

@keyframes burnTask {

  0% { opacity: 1; }

  50% { opacity: 0.5; transform: scale(1.05); }

  100% { opacity: 0; transform: translateX(40px); }

}



/* ======================================
   INCOGNITO MODE
====================================== */

.incognito span {

  filter: blur(6px);

}

.incognito li:hover span {

  filter: blur(0);

}


/* Toast Notification */

.toast {

  position: fixed;
  bottom: 20px;
  right: 20px;

  background: black;
  color: white;

  padding: 10px 16px;

  border: 2px solid black;

  opacity: 0;
  transform: translateY(20px);

  transition: all 0.3s ease;

  font-size: 14px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}


/* ======================================
   RESPONSIVE DESIGN
====================================== */

@media (max-width: 768px) {

  .app-layout {

    flex-direction: column;
    align-items: center;

  }

  .dashboard {

    width: 100%;
    max-width: 520px;

  }

  .task-input {

    flex-direction: column;

  }

  .task-input input,
  .task-input select,
  .task-input button {

    width: 100%;

  }

  li {

    flex-direction: column;
    gap: 8px;

  }

}