:root {
  /* Backgrounds */
  --body-bg: #0c0c0d;
  --container-bg: #141414;
  --card-bg: #1c1c1e;

  /* Text colors */
  --text-body: #a1a1a6;
  --text-container: #d1d1d3;
  --text-heading: #f5f5f7;
  --text-card-paragraph: #c4c4c6;

  /* delete btn */
  --delete-btn-bg: rgba(239, 68, 68, 0.08);
  --delete-btn-hover: rgba(239, 68, 68, 0.18);
  --delete-btn-icon: #ef4444;

  /* edit btn */
  --edit-btn-bg: rgba(255, 255, 255, 0.05);
  --edit-btn-hover: rgba(255, 255, 255, 0.1);
  --edit-btn-icon: #a1a1a6;

  /* Neutral Body Button */
  --body-btn-bg: #1c1c1e;
  --body-btn-hover: #2a2a2c;
  --body-btn-text: #e5e5e5;

  /* radius */
  --rounded-lg: 10px;
  --rounded-md: 6px;

  /* Modal + Overlay */
  --modal-bg: rgba(25, 25, 28, 0.75);
  --overlay-bg: rgba(0, 0, 0, 0.6);

  /* Inputs */
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.08);
  --input-placeholder: rgba(255, 255, 255, 0.35);

  /* Button */
  --btn-primary: linear-gradient(to right, #4e5fff, #6286ff);

  /* transition */
  --transition: 0.2s ease;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Manrope", sans-serif;
  user-select: none;
}
html,
body {
  height: 100%;
  width: 100%;
}
body {
  background-color: var(--body-bg);
  color: var(--text-body);
  overflow: hidden;
}
.max-width {
  max-width: 1366px;
  margin-inline: auto;
  padding-inline: 1.3rem;
}
.container,
.card {
  padding: 0.5rem 0.6rem;
}
.container {
  background-color: var(--container-bg);
  color: var(--text-container);
  border-radius: var(--rounded-lg);
  flex-grow: 1;
  height: calc(100vh - 80px);
  border: 2px dashed transparent;
  transition: var(--transition);
  width: 33%;
}
.empty-placeholder {
  text-align: center;
  margin-top: 1.3rem;
  font-size: 18px;
  color: var(--text-body);
}
.hide {
  display: none;
}
.container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.card {
  background-color: var(--card-bg);
  color: var(--text-heading);
  border-radius: var(--rounded-md);
  user-select: all;
  cursor: grab;
  touch-action: none;
  position: relative;
}
@keyframes new-task-pop {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  60% {
    opacity: 1;
    transform: scale(1.01);
  }
  100% {
    transform: scale(1);
  }
}
.card.new {
  animation: new-task-pop 0.4s ease forwards;
}

.loading-dots {
  display: flex;
  gap: 6px;
  position: absolute; /* you can position it wherever needed */
  top: 10px; /* example: bottom inside the card */
  right: 10px; /* example: right inside the card */
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background-color: #4e5fff; /* your primary color */
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.card h2 {
  font-size: 18px;
}
.card p {
  color: var(--text-card-paragraph);
  font-size: 14px;
}
#new .card .loading-dots,
#done .card .loading-dots {
  opacity: 0;
}
#inprogress .card {
  background-color: rgba(78, 95, 255, 0.08); /* soft blue tint */
  border: 1px solid rgba(78, 95, 255, 0.3);
  box-shadow: 0 2px 6px rgba(78, 95, 255, 0.2);
}
#done .card {
  background-color: rgba(34, 197, 94, 0.08); /* soft green tint */
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.2);
  color: #a1a1a6; /* muted text */
}
#done .card h2,
#done .card p {
  text-decoration: line-through;
}
.card-btn-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  margin-top: 0.3rem;
}
#done .edit-btn {
  display: none;
}
button {
  border: none;
  outline: none;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.add-task-btn {
  background-color: var(--body-btn-bg);
  color: var(--body-btn-text);
}
.add-task-btn:hover {
  background-color: var(--body-btn-hover);
}
.edit-btn,
.delete-btn {
  height: 34px;
  width: 34px;
}
.edit-btn {
  background-color: var(--edit-btn-bg);
}
.edit-btn:hover {
  background-color: var(--edit-btn-hover);
}
.delete-btn {
  background-color: var(--delete-btn-bg);
}
.delete-btn:hover {
  background-color: var(--delete-btn-hover);
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
header h1 {
  font-size: 24px;
}
main {
  display: flex;
  gap: 1.3rem;
  position: relative;
}
.example-card {
  position: fixed;
  opacity: 0.9;
  display: none;
  z-index: 999;
  pointer-events: none;
  touch-action: pan-y;
}
.example-card.show {
  display: block;
}
.cards-container {
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 500px;
  overflow-y: auto;
  scrollbar-width: none;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding-inline: 6px;
}
.overlay.show {
  display: flex;
}
form {
  background: rgba(25, 25, 28, 0.75);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-radius: 18px;
  padding: 24px 28px;
  width: 380px;
  box-shadow: 0px 8px 28px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.form-btns-wrapper {
  display: flex;
  gap: 0.5rem;
}
input,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 15px;
}
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
textarea {
  resize: none;
}
.submit-btn,
.close-overlay {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #f5f5f7;
  background-image: linear-gradient(to right, #4e5fff, #6286ff);
  cursor: pointer;
}
.submit-btn:hover,
.close-overlay:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  main {
    gap: 0.8rem;
  }
  .max-width {
    padding-inline: 0.7rem;
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
  }
  main {
    flex-wrap: wrap;
    gap: 1.3rem;
    height: calc(100dvh - 80px);
    align-content: flex-start;
    overflow-x: hidden;
  }
  form {
    padding: 20px 16px;
  }
  header h1 {
    font-size: 24px;
  }
  .add-task-btn {
    position: fixed;
    right: 13px;
    box-shadow: 0px 8px 28px rgba(0, 0, 0, 0.55);
  }
  .container {
    height: fit-content;
    width: 100%;
  }
  .cards-container {
    height: fit-content;
    max-height: 610px;
  }
}
