/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

html {
  scrollbar-width: none;
  overflow-y: hidden;
}

body {
  background: linear-gradient(to bottom right, #344e89, #41729f, #e1f1ff);
  padding: 20px;
  color: #333;
}

.container {
  max-width: 1300px;
  margin: auto;
}

/* Header Section */
.logo {
  font-weight: 500;
  color: black;
  font-family: Long Shot;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 28px;
}

.settings {
  font-size: 20px;
  cursor: pointer;
  color: black;
}

/* Layout Grid */
main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

/* Tasks Card */
.tasks-card {
  display: flex;
  flex-direction: column;
  height: 400px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
}

.tasks-scroll-area {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: none;
  flex: 2;
}

.task {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

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

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

.task-time {
  font-size: 14px;
  color: #333;
}

.task-remove-btn {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

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

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

.task.fade-out {
  animation: fadeSlide 0.25s ease forwards;
}


.task label {
  display: flex;
  justify-content: space-between;
  width: 95%;
}

/* New Task Inputs */
.new-task {
  display: flex;
  gap: 8px;
}

#taskInput {
  width: 90%;
}

#taskTimeInput {
  width: 10%;
}

.new-task input {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: rgba(255, 255, 255, 0.5);
}

.new-task button {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
}

.new-task input:focus {
  border: none;
  outline: none;
}

.popup-alert {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 150px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 999;
  text-align: center;
  padding: 20px;
}

.popup-alert p {
  margin-bottom: 15px;
  color: #333;
  font-weight: 500;
}

.popup-alert button {
  padding: 8px 16px;
  background-color: #41729f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Timer + Quote Card */

.timer-card {
  height: 230px;
  text-align: center;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.4);
}

.timerFunction {
  height: 10px;
  display: flex;
  justify-content: space-evenly;
  cursor: pointer;
}

.time {
  padding-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 40px;
}

.time span {
  font-size: 50px;
  font-weight: 600;
  color: black;
}

#timerStartBtn {
  color: green;
  margin-top: 10px;
  cursor: pointer;
  display: none;
}

#timerStopBtn {
  color: red;
  margin-top: 10px;
  cursor: pointer;
  display: none;
}

.labels {
  margin-top: 5px;
  color: #666;
}

#clock.active {
  color: black;
  text-decoration: underline solid black 2px;
}

#timer.active {
  color: black;
  text-decoration: underline solid black 2px;
}

/* Quote */
.quote-card {
  height: 150px;
  width: 430px;
  margin-top: 18px;
  background: white;
  border-radius: 10px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.4);
}

.quote-card h2 {
  margin-top: -10px;
}

.quote-card blockquote {
  font-style: italic;
  margin-top: 10px;
  color: #333;
}

.quote-card p {
  text-align: right;
  font-weight: bold;
  margin-bottom: 10px;
}

/*Task  Timer */
.taskTimer {
  height: 280px;
  width: 430px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.4);
  padding: 20px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circular-timer {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 10px auto;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring .bg {
  fill: none;
  stroke: #e6f0ff;
  stroke-width: 10;
}

.progress-ring .progress {
  fill: none;
  stroke: #2e5d9f;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 440;
  transition: stroke-dashoffset 1s linear;
}

.time-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-family: monospace;
  color: #2e3e5c;
}


/* Dashboard */
.dashboard-card {
  height: 280px;
  grid-column: 1 / 2;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.4);
  position: relative;
  top: -298px;
}

.dashboard-card h2 {
  margin-bottom: 10px;
  margin-top: -10px;
  color: #2f3542;
}

.report-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.weekly,
.completion {
  flex: 1;
  padding: 15px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.weekly h3,
.completion h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.chart-placeholder {
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  height: 150px;
  line-height: 100px;
  margin-bottom: 10px;
  color: #555;
}

.days {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #333;
}

.completion strong {
  font-size: 32px;
  display: block;
  margin-bottom: 5px;
}

.review {
  margin-top: 20px;
}

.review textarea {
  width: 100%;
  height: 80px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #aaa;
  resize: vertical;
}

.review button {
  margin-top: 10px;
  padding: 10px 16px;
  background: #555;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/*Percent*/
.progress-ring {
  transform: rotate(-90deg);
}

.progress-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: auto;
}

.progress-ring circle {
  fill: none;
  stroke-width: 10;
}

.progress-bg {
  stroke: #e0e0e0;
}

.progress-value {
  stroke: #4caf50;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.4s ease;
}

.progress-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 20px;
}

/* Responsive */
/* 📱 Mobile Responsive Styles */
@media (max-width: 768px) {
  html {
    overflow-y: auto;
  }

  main {
    display: flex;
    flex-direction: column;
  }

  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 0;
  }

  header h1 {
    font-size: 20px;
  }

  .settings {
    font-size: 18px;
  }

  .tasks-card,
  .timer-card,
  .taskTimer,
  .quote-card,
  .dashboard-card {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }

  .tasks-scroll-area {
    max-height: 250px;
    padding-top: 10px;
  }

  .quote-card {
    width: 100%;
  }

  .taskTimer {
    width: 100%;
    align-items: center;
    padding: 10px;
  }

  .dashboard-card {
    top: 0;
    width: 100%;
  }

  .report-grid {
    flex-direction: column;
    gap: 15px;
  }

  .progress-container {
    width: 120px;
    height: 120px;
  }

  .time span {
    font-size: 36px;
  }

  .new-task {
    flex-direction: column;
  }

  .new-task {
    display: flex;
    flex-direction: row;
  }

  #taskInput {
    width: 55%;
  }

  #taskTimeInput {
    width: 32%;
  }

  #addTaskButton {
    width: 10%;
  }

  .weekly {
    display: none;
  }

  .progress-container {
    height: 80%;
    width: 80%;
  }

  .timer-quote-card {
    display: flex;
    flex-direction: column;
  }

  /* 👇 Reorder the elements */
  .taskTimer {
    order: 1;
    margin-top: -15px;
  }

  .quote-card {
    order: 2;
    margin-top: -10px;
  }

  .timer-card {
    order: 3;
  }
}