@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* ==== GLOBAL COLORS ==== */
/* ==== BASE ==== */
body {
  background: radial-gradient(circle at top, #0a0f1f, #020617);
  color: #e2e8f0;
  font-family: 'Google Sans', sans-serif;
}

/* ==== SIDEBAR ==== */
.nav-sidebar {
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-img {
  background: #fff;
  transition: all 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

/* ==== BUTTONS ==== */
button {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

button:hover {
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  border-color: #3b82f6;
  background-color: #3b82f6;
  color: black;
  transform: translateY(-2px);
  box-shadow:
    0 0 10px rgba(59, 130, 246, 0.5),
    0 0 20px rgba(59, 130, 246, 0.3);
}

button:active {
  transform: scale(0.95);
}

/* ==== DASHBOARD ==== */
.dashboard {
  background: transparent;
}

.dashboard-title {
  color: #7dd3fc;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* ==== POPUP ==== */
.popUp {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  box-shadow:
    0 0 25px rgba(0, 0, 0, 0.4),
    0 0 15px rgba(59, 130, 246, 0.2);
  animation: fadeIn 0.3s ease;
}

.ok {
  background: rgba(21, 228, 97, 0.808);
}

.ok:hover {
  background: rgba(34, 233, 107, 0.712);
  box-shadow: 0 0 12px rgba(37, 218, 103, 0.6);
}

/* ==== FORM ==== */
#taskForm {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(59, 130, 246, 0.2);
  animation: slideUp 0.3s ease;
}

input,
select {
  background: rgba(2, 6, 23, 0.6);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

input:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow:
    0 0 8px rgba(59, 130, 246, 0.6),
    0 0 15px rgba(59, 130, 246, 0.3);
}
#save {
  background-color: #7dd3fc;
  color: black;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

/* ==== TASK CARDS ==== */
#taskList > li {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

#taskList > li:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 20px rgba(59, 130, 246, 0.3),
    0 10px 30px rgba(0, 0, 0, 0.4);
}

.task-title {
  color: #f8fafc;
}

.progress-text {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* ==== PROGRESS BAR ==== */
.progress-bar {
  background-color: rgba(51, 65, 85, 0.5);
}

.progress-fill {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  transition: width 0.4s ease;
}

/* ==== CARD BODY ==== */
.card-body span {
  color: #94a3b8;
}

/* ==== FOOTER BUTTONS ==== */
.card-footer button {
  background: rgba(2, 6, 23, 0.6);
}

.card-footer .update:hover {
  background-color: #3b82f6;
  color: black;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.card-footer .delete:hover {
  background-color: #3b82f6;
  color: black;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

/* ==== ANIMATIONS ==== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(25px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

ul {
  list-style: none;
}
.container {
  display: flex;
  height: 100vh;
}

/* ==== Sidebar ==== */
.nav-sidebar {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  text-align: center;
}

.logo-img {
  width: 150px;
  padding: 6px 6px 9px 6px;
  background-color: white;
  border-radius: 10px;
}

.nav-sidebar > ul {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

button {
  display: flex;
  align-items: center; /* vertically center */
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
button > img {
  width: 26px;
}

/* ==== dashboard ==== */

.dashboard {
  flex: 1;
  text-align: center;
  position: relative;
}

.dashboard-title {
  margin: 10px;
  font-size: 20px;
  font-weight: 500;
}
.popUp {
  position: absolute;
  top: 40%;
  left: 45%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 200px;
  padding: 20px;
  align-items: center;
  border-radius: 8px;
}

.tasks {
  margin: 30px 0px;
}

#taskForm {
  position: absolute;
  top: 25%;
  left: 30%;
  display: flex;
  flex-direction: column;
  width: 45%;
  gap: 20px;
  border-radius: 8px;
  max-width: 500px;
  padding: 20px;
  z-index: 1;
}

input,
select {
  padding: 5px;
  border-radius: 8px;
  border: none;
}

#taskForm > button {
  display: block;
  width: 300px;
  margin: auto;
}

#taskList {
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
  flex-wrap: wrap;
}

#taskList > li {
  padding: 10px;
  display: flex;
  gap: 15px;
  font-size: 15px;
  width: 300px;
  border-radius: 8px;
  flex-direction: column;
}

.card-header {
  display: flex;
  font-weight: 500;
  justify-content: space-between;
}

.progress-bar {
  height: 8px;
  border-radius: 8px;
}

.progress-fill {
  height: 8px;
  border-radius: 8px;
}

.card-body > p {
  padding: 4px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
}

.hide {
  display: none !important;
}

/* ==== Responsiv ==== */
/* ===== TABLETS (<= 1024px) ===== */
@media (max-width: 1024px) {
  .nav-sidebar {
    gap: 40px;
  }

  #taskForm {
    width: 70%;
    left: 15%;
  }

  #taskList {
    justify-content: center;
    gap: 20px;
  }
}

/* ===== MOBILE (<= 768px) ===== */
@media (max-width: 768px) {
  .nav-sidebar {
    justify-content: space-around;
    gap: 10px;
    padding: 10px 0;
  }

  .nav-sidebar ul {
    flex-direction: column;
    padding: 10px;
    gap: 10px;
  }

  button {
    justify-content: center;
  }

  button > span {
    display: none;
  }

  .logo {
    display: none;
  }

  .dashboard {
    width: 100%;
  }

  #taskForm {
    width: 90%;
    left: 5%;
    top: 20%;
  }

  #taskList {
    flex-direction: column;
    align-items: center;
  }

  #taskList > li {
    width: 90%;
  }

  .popUp {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ===== SMALL MOBILE (<= 480px) ===== */
@media (max-width: 480px) {
  .dashboard-title {
    font-size: 16px;
  }

  #taskForm {
    width: 95%;
    left: 2.5%;
    top: 15%;
    padding: 15px;
  }

  #taskForm > button {
    width: 100%;
  }

  input,
  select {
    font-size: 14px;
  }

  .card-header {
    flex-direction: column;
    gap: 5px;
  }

  .card-footer {
    flex-direction: column;
    gap: 10px;
  }

  .card-footer button {
    width: 100%;
  }
}
