* {
  padding: 0%;
  margin: 0%;
  box-sizing: border-box;
}

body {
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background-color: rgb(247, 249, 250);
}

html {
  scroll-behavior: smooth;
}

/*----------HEADER-----------*/

header {
  padding: 20px;
  width: 100%;
  box-shadow: 0px 2px 10px rgb(0, 0, 0, 0.15);
  background-color: white;
  position: sticky;
  top: 0%;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-container {
  margin-left: 70px;
}

header .logo {
  background-color: rgb(93, 95, 239);
  color: white;
  border-radius: 8px;
  padding: 3px 0px;
}

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

/*----------NAV-BAR-----------*/

.nav-container {
  display: flex;
  margin-right: 60px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  padding: 10px;
  margin: 0px 10px;
  color: rgba(0, 0, 0, 0.6);
  outline: none;
}

.nav-links a.active-nav {
  background-color: rgb(242, 243, 245);
  color: rgb(93, 95, 239);
  border-radius: 11px;
  transition: background-color 0.3s;
}

/*  Hamburger Icon  */

.hamburger {
  display: none;
  position: relative;
  float: right;
  padding: 3px 10px 3px 10px;
  background-color: rgb(242, 243, 245);
  border-radius: 8px;
  right: -2%;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: black;
}

/* Toast Notification */

.toast {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  max-width: 90vw;
  background-color: rgb(93, 95, 239);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  opacity: 0;
}

.toast-icon {
  width: 20px;
  height: 20px;
  background: #22c55e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: bold;
}

.toast i {
  cursor: pointer;
  position: relative;
  top: 2px;
  left: 5px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.toast i:hover {
  transform: scale(1.2);
}

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

/*---------MAIN-SECTION----------*/

.main-section {
  background-color: rgb(247, 249, 250);
  display: grid;
  grid-template-columns: 1fr 2fr;
  margin-top: 30px;
}

.main-section.active {
  grid-template-columns: 1fr;
}

main .line {
  border: 3px solid rgb(93, 95, 239);
  margin-right: 0.8rem;
  border-radius: 5px;
}

.main-header {
  display: flex;
  justify-content: space-between;
  margin: 65px 100px 25px 100px;
  margin-bottom: 25px;
}

/* Tasks search box */

.search-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-width: 220px;
  display: none;
}

.search-container.active {
  display: block;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 45px;
  border-radius: 12px;
  border: 1.5px solid #e0e0e0;
  background: #ffffff;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  outline: none;
  transition: all 0.3s ease;
}

.search-input::placeholder {
  color: #9aa0a6;
  font-weight: 400;
}

.search-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #9aa0a6;
}

/* TASK PANEL SECTION */

.task-panel-section {
  position: relative;
  margin: 10px 5px 10px 90px;
  background-color: white;
  padding: 20px;
  width: 75%;
  border-radius: 13px;
  box-shadow: 0px 0px 10px rgb(0, 0, 0, 0.15);
  margin-bottom: 20px;
  left: 15px;
}

.task-panel-section.active {
  display: none;
}

.task-panel-title {
  font-size: 19px;
  margin: 10px 10px 13px 2px;
}

.task-panel-section input,
select {
  font-size: 14px;
  margin: 10px 10px 13px 8px;
  padding: 10px;
  width: 95%;
  max-width: 100%;
  border-radius: 6.5px;
  border: 2px solid rgba(0, 0, 0, 0.168);
  outline-color: rgb(93, 95, 239);
}

.task-panel-section label {
  font-size: 15px;
}

.task-panel-section .date,
.time {
  cursor: pointer;
}

/* Floating-label */

.task-panel-section .float-label {
  color: rgb(87, 104, 235);
  background-color: white;
  padding: 0% 1%;
  font-size: 10.5px;
  position: absolute;
  top: 4px;
  left: 20px;
}

.input-date,
.input-time,
.select-priority,
.input-hours {
  position: relative;
}

/* Form Validation */

.error {
  position: relative;
  left: 3px;
  bottom: 8px;
  color: rgb(242, 18, 18);
  font-size: 10.5px;
  margin-left: 10px;
}

.error.border-red {
  border-color: red;
}

/* Selection */

.task-panel-section select {
  padding: 10px 100px 10px 10px;
  border-radius: 6.5px;
  cursor: pointer;
}

/* Textarea */

.task-panel-section textarea {
  margin: 10px 10px;
  border: 2px solid rgba(0, 0, 0, 0.168);
  border-radius: 6.5px;
  font-family: Arial, Helvetica, sans-serif;
  padding: 10px;
  height: 100px;
  width: 94%;
  outline-color: rgb(93, 95, 239);
  font-size: 14px;
}

.task-panel-section textarea::placeholder {
  padding: 1.5rem 0rem;
  font-size: 14px;
}

.task-progress-label {
  text-align: center;
  /* color: #5768eb; */
  /* font-weight: 600; */
  font-size: 14px;
  position: relative;
  bottom: 5px;
}

/* Checkbox */

.task-panel-section .task-type {
  margin-top: 10px;
  margin-bottom: 20px;
}

.task-panel-section .checkbox-label,
.status-label,
.color-label,
.progress-label {
  position: relative;
  left: 2.5%;
}

.task-panel-section .check {
  width: 19px;
  height: 19px;
  position: relative;
  top: 3px;
  left: 1px;
  cursor: pointer;
  accent-color: rgb(93, 95, 239);
}

.task-panel-section .check-label {
  position: relative;
  bottom: 1px;
  right: 5px;
  cursor: pointer;
}

/* Radio-button */

.task-panel-section .radio {
  width: 19px;
  height: 19px;
  position: relative;
  top: 3px;
  left: 1px;
  cursor: pointer;
  accent-color: rgb(93, 95, 239);
}

.task-panel-section .radio-label {
  position: relative;
  bottom: 1px;
  cursor: pointer;
  left: -5px;
}

/* Button */

.task-panel-section .buttons {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  margin: 5px 5px 10px 5px;
}

.task-panel-section button {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  padding: 16px 24px;
}

.create-button {
  background-color: rgb(84, 98, 232);
  color: white;
  /* font-size: 15px; */
  /* padding: 22px 48px; */
}

.create-button:hover {
  background-color: #4252cc;
  box-shadow: 0 4px 12px rgba(84, 104, 255, 0.4);
}

.reset-button {
  background-color: rgb(242, 243, 245);
  color: black;
  /* padding: 15px 37px; */
}

.reset-button:hover {
  background-color: #ffe3e3;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.1);
}

/* ACTIVE TASKS SECTION */

.active-task-section {
  background-color: white;
  margin: 10px 100px 19px 20px;
  padding: 20px;
  border-radius: 13px;
  box-shadow: 0px 0px 10px rgb(0, 0, 0, 0.15);
}

.active-task-section.active {
  margin-left: 100px;
}

.task-card-heading .active-panel-title {
  display: flex;
  white-space: nowrap;
}

.active-panel-title select {
  font-size: 23px;
  font-weight: 700;
  outline: none;
  background: transparent;
  cursor: pointer;
  padding: 0px 0px;
  margin: 0%;
  padding-right: -10px;
  margin-left: 10px;
  width: 100%;
  border: none;
}

.active-panel-title select option {
  font-size: 17px;
}

.active-panel-title h3 {
  font-size: 23px;
  margin-top: 3px;
}

.task-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0.75rem 0.9rem 0.75rem 0.4rem;
}

.filter-buttons {
  display: flex;
  align-items: center;
  gap: clamp(2px, 1.5vw, 8px);
  flex-wrap: wrap;
}

.filter-buttons.active {
  gap: 10px;
}

/* Default button style */

.filter-buttons .filter-button {
  /* margin-left: clamp(0.05rem, 1vw, 0.1rem); */
  padding: 0.6rem 1rem;
  color: black;
  border: 2px solid rgb(232, 234, 237);
  border-radius: 2rem;
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  cursor: pointer;
  background-color: white;
  transition: background-color 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.filter-buttons .filter-button.adjust {
  padding: 0.6rem 0.7rem;
}

.filter-buttons .filter-button span {
  display: inline-block;
  font-size: 11px;
}

.filter-buttons span.active {
  display: none;
}

/* Active button style */

.filter-buttons .filter-button.active {
  background-color: rgb(93, 95, 239);
  color: white;
  border: 1px solid rgb(93, 95, 239);
}

.active-task-section img {
  height: 17px;
  width: 17px;
  position: relative;
  top: 3px;
  margin-right: 8px;
}

/* EMPTY TASK CONTAINER */

.empty-task {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  margin-top: 5vh;
  margin-bottom: 9.5vh;
}

.empty-task span {
  font-size: 24px;
  vertical-align: middle;
}

.task-image {
  width: min(180px, 50%);
  margin-bottom: 10px;
}

.task-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.empty-task h3 {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-task p {
  font-size: clamp(13px, 3.5vw, 14px);
  color: #777;
  margin-bottom: 20px;
  max-width: 320px;
}

.add-task-button {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: #6366f1;
  color: #fff;
  font-size: clamp(14px, 4vw, 16px);
  cursor: pointer;
  transition: background 0.2s ease;
}

.add-task-button:hover {
  background: #4f46e5;
}

.priority-empty {
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none;
}

/* TASK-CARD */

.task-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1.3rem 0.9rem;
  padding-top: 1.4%;
}

.task-list.active {
  grid-template-columns: 1fr 1fr 1fr;
}

.task-card-container.scroll {
  height: 930px;
  overflow-y: scroll;
}

.task-card {
  border: 2px solid rgb(232, 234, 237);
  border-radius: 0.6rem;
  padding: 1.5rem;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.task-card-title {
  display: flex;
  justify-content: space-between;
}

.task-card-title h4 {
  margin: 0;
  padding-right: 44px;
}

.task-actions {
  position: absolute;
  top: 32px;
  right: 20px;
  display: flex;
  gap: 8px;
  opacity: 1;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

.task-actions i {
  font-size: 13px;
}

.action-icon-outline {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  border: 1px solid rgb(232, 234, 237);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-icon-outline:hover {
  background-color: rgb(232, 234, 237);
  transform: scale(1.1);
}

.task-card h4 {
  display: -webkit-box;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}

.task-card p {
  display: -webkit-box;
  color: rgba(0, 0, 0, 0.544);
  margin: 0.55rem 0.2rem 1.2rem 0.2rem;
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 33px;
}

.task-list .task-card-date {
  margin: 25px 0px 0px 3px;
}

.task-list .task-card-person {
  margin: 0px 0px 5px 3px;
}

.priority-container {
  border-top: 1px solid rgb(232, 234, 237);
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
}

.priority-container span {
  font-size: 23px;
  position: relative;
  bottom: 1.3px;
  right: 1px;
}

.priority-container .high,
.priority-container .low,
.priority-container .medium {
  text-transform: uppercase;
  border-radius: 1rem;
  padding: 0rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  height: 2rem;
  display: flex;
  align-items: center;
}

.priority-container .high {
  color: rgb(245, 66, 69);
  background-color: rgb(255, 237, 237);
}

.priority-container .medium {
  color: rgb(250, 158, 45);
  background-color: rgb(255, 245, 235);
}

.priority-container .low {
  color: rgb(0, 185, 133);
  background-color: rgb(228, 247, 242);
}

.priority-container small {
  font-size: 25px;
  vertical-align: middle;
  position: relative;
  right: 2px;
  bottom: 1.3px;
}

.priority-container .progress,
.pending,
.completed {
  font-size: 15px;
}

.priority-container .pending small {
  color: rgb(250, 158, 45);
}

.priority-container .progress small {
  color: rgb(17, 133, 242);
}

.priority-container .completed small {
  color: rgb(0, 186, 133);
}

/* FULL TASK-CARD POPUP */

.fulltask-popup {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.full-task-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.full-task-card {
  position: relative;
  width: 95%;
  max-width: 550px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 20px;
}

.fulltask-popup-body {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 12px;
  overflow-x: hidden;
}

.full-task-card-border {
  border: 2px solid rgb(232, 234, 237);
  border-radius: 16px;
  padding: 25px 20px 20px 30px;
}

.task-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.task-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
  margin: 13px 0px 18px 0px;
  text-align: justify;
}

.full-taskcard-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  margin-left: 55px;
}

.full-taskcard-datas h3,
.full-taskcard-datas p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.grid-item {
  display: grid;
  grid-template-columns: 130px 10px 1fr;
  align-items: center;
  column-gap: 8px;
}

.grid-item .label {
  font-size: 13.5px;
  color: #888;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.grid-item .value {
  font-size: 13.5px;
  font-weight: 500;
  padding-left: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.link {
  color: #6c5ce7;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.progress-section {
  margin-top: 25px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
}

.progress-label .value {
  font-size: 13.5px;
  color: black;
  margin-right: 8px;
}

.progress-bar {
  height: 8px;
  background: #eee;
  border-radius: 10px;
  margin-left: 9px;
}

.progress-fill {
  height: 100%;
  background: #6c5ce7;
  border-radius: 10px;
}

.priority-container .type {
  background: #f1f3f5;
  color: #444;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 20px;
  font-weight: 600;
}

.priority-container #popupStatus {
  background-color: #f1f3f5;
  padding: 0px 12px;
  font-size: 14px;
  border-radius: 20px;
  font-weight: 600;
}

.full-task-card-border .pending {
  color: rgb(250, 158, 45);
}

.full-task-card-border .progress {
  color: rgb(17, 133, 242);
}

.full-task-card-border .completed {
  color: rgb(0, 186, 133);
}

.popup-close {
  position: absolute;
  top: 45px;
  right: 45px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.popup-close:hover {
  color: #333;
  transform: scale(1.1);
}

/* EDIT TASK POPUP */

.edit-popup {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.edit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.edit-popop-box {
  position: relative;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.edit-popup-body {
  max-height: 64vh;
  overflow-y: auto;
  padding-right: 6px;
  overflow-x: hidden;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.edit-task-border {
  border: 2px solid rgb(232, 234, 237);
  border-radius: 16px;
  padding: 20px;
}

.edit-task-border h3 {
  position: relative;
  bottom: 10px;
  margin: 0px 0px 0px -5px;
}

.edit-popop-box .task-panel-title {
  margin: 10px 0px 5px 2px;
}

.edit-popup input,
.edit-popup select {
  font-size: 14px;
  margin: 10px 0px 13px 0px;
  padding: 10px;
  width: 95%;
  border-radius: 6.5px;
  border: 2px solid rgba(0, 0, 0, 0.168);
  outline-color: rgb(93, 95, 239);
}

.edit-row {
  display: flex;
  gap: 14px;
}

.edit-row .input-date {
  flex-basis: 47%;
}

.edit-row .input-time {
  flex-basis: 47%;
}

.edit-row .select-priority {
  flex-basis: 47%;
}

.edit-row .input-hours {
  flex-basis: 47%;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.edit-form .float-label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgb(93, 95, 239);
}

.edit-popup textarea {
  width: 95%;
  height: 100px;
  margin: 10px 0px 10px 5px;
  border: 2px solid rgba(0, 0, 0, 0.168);
  border-radius: 6.5px;
  font-family: Arial, Helvetica, sans-serif;
  padding: 10px;
  outline-color: rgb(93, 95, 239);
  font-size: 14px;
}

.edit-popup textarea::placeholder {
  padding: 1.5rem 0rem;
  font-size: 14px;
}

.edit-popup .progress-label {
  font-size: 14px;
  left: 12px;
  color: rgba(0, 0, 0, 0.564);
}

.edit-popup .input-range {
  cursor: pointer;
  accent-color: rgb(93, 95, 239);
  padding: 0%;
}

.edit-popup .status-label {
  position: relative;
  left: 0%;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.options-grid label {
  font-size: 14px;
  color: black;
}

.option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.option input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: rgb(93, 95, 239);
}

.edit-popop-box .error {
  left: -6px;
}

.edit-popup-buttons {
  padding: 18px 26px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.button {
  padding: 15px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.button.primary {
  background-color: rgb(93, 95, 239);
  color: #fff;
  transition: background-color 0.2s, box-shadow 0.2s
}

.button.primary:hover {
  background-color: #4252cc;
  box-shadow: 0 4px 12px rgba(84, 104, 255, 0.4);
}

.button.cancel {
  background-color: rgb(242, 243, 245);
  color: black;
  transition: background-color 0.2s, box-shadow 0.2s
}

.button.cancel:hover {
  background-color: #ffe3e3;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.1);
}

/* DELETE CONFIRMATION POPUP */

.delete-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 340px);
  background: #ffffff;
  border-radius: 22px;
  padding: 28px 24px 26px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 999;
}

.delete-popup .icon {
  width: 56px;
  height: 56px;
  color: #e53935;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  margin: 0 auto 18px;
}

.delete-popup h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.delete-popup p {
  font-size: 15px;
  color: #777;
  line-height: 1.5;
  margin-bottom: 26px;
}

#delete-task-name {
  font-weight: 550;
}

.actions {
  display: flex;
  gap: 14px;
}

.actions button {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cancel-button {
  background: #f1f1f1;
  color: #111;
}

.cancel-button:hover {
  background: #e5e5e5;
}

.confirm-delete-button {
  background: #e53935;
  color: #fff;
}

.confirm-delete-button:hover {
  background: #d32f2f;
  box-shadow: 0 10px 20px rgba(229, 57, 53, 0.35);
}

.delete-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  display: none;
}

/*----------PROFILE BOX-----------*/

.profile-box {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  margin-bottom: 100px;
}

.profile-card {
  background: white;
  width: 100%;
  max-width: 420px;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0px 0px 10px rgb(0, 0, 0, 0.15);
  position: relative;
}

.profile-image {
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgb(93, 95, 239);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.profile-card .name {
  font-size: 22px;
  font-weight: 600;
  color: #2f3640;
}

.role {
  font-size: 15px;
  color: #8395a7;
  margin-bottom: 25px;
}

.info-box {
  background: #f4f6fb;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 25px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.info-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8395a7;
  font-size: 14px;
}

.info-right {
  font-size: 14px;
  font-weight: 500;
  color: #2f3640;
  word-break: break-word;
}

.info-line {
  height: 1px;
  background: #e0e6ed;
  margin: 15px 0;
}

.profile-edit-button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  background-color: rgb(93, 95, 239);
  transition: 0.3s ease;
}

.profile-edit-button i {
  margin-right: 8px;
}

.profile-edit-button:hover {
  box-shadow: 0 10px 20px rgba(78, 115, 223, 0.3);
  background-color: #4252cc;
}

/*----------FOOTER-----------*/

footer {
  padding: 2rem 0;
  border-top: 2px solid rgb(232, 234, 237);
  margin-top: 2%;
  background-color: white;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 2px solid rgb(232, 234, 237);
  margin: 0% 15%;
  padding-bottom: 2%;
}

.footer-container h4 {
  margin-bottom: 10%;
}

.footer-content p {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.544);
  transition: all 0.2s;
  cursor: pointer;
}

.footer-content p:hover {
  text-decoration: underline;
  color: rgba(0, 0, 0, 0.674);
}

.footer-content ul {
  list-style: none;
}

.footer-content li {
  padding: 6% 0%;
}

.footer-bottom {
  display: flex;
  justify-content: space-around;
}

.footer-copyrights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
  color: rgba(0, 0, 0, 0.544);
  margin-top: 1%;
}

/*----------LAPTOP-VIEW-----------*/

@media (min-width: 1024px) and (max-width: 1280px) {

  .header-container {
    margin-left: 20px;
  }

  .nav-container {
    margin-right: 10px;
  }

  .main-section {
    grid-template-columns: 1fr 2fr;
    gap: 7px;
  }

  .main-header {
    margin: 50px 40px 20px 40px;
  }

  .task-panel-section {
    margin-left: 40px;
    width: 90%;
    left: 0;
  }

  .active-task-section {
    margin: 10px 40px 19px 20px;
  }

  .active-panel-title select {
    font-size: 22px;
  }

  .active-task-section.active {
    margin-left: 40px;
  }

  .filter-buttons .filter-button {
    padding: 0.6rem 0.55rem;
    font-size: clamp(0.5rem, 3.5vw, 0.8rem);
  }

  .task-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .task-list.active {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-container {
    margin: 0 10%;
  }

}

/*----------TABLET-VIEW-----------*/

@media (min-width: 601px) and (max-width: 1023px) {

  /* HEADER */

  header {
    padding: 16px 24px;
  }

  header .header-container {
    margin-left: 26px;
  }

  nav .nav-links {
    gap: 10px;
  }

  .nav-container {
    margin-right: 20px;
  }

  .nav-links .non-active-nav,
  .active-nav {
    margin: 0;
    padding: 8px 12px;
  }

  /* MAIN SECTION */

  .main-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 90%;
    margin: 5% auto;
  }

  main .main-title {
    font-size: 28px;
  }

  .main-header {
    margin: 55px 50px 0px 50px;
    margin-bottom: 25px;
  }

  /* TASK PANEL SECTION */

  .task-panel-section {
    width: 100%;
    margin: 0 auto;
    left: 0;
    padding: 20px 35px 20px 20px;
  }

  .task-panel-section input,
  .task-panel-section select {
    width: 100%;
    padding: 13px 10px;
    font-size: 16px;
    border-radius: 8px;
    margin-top: 15px;
  }

  .task-panel-section .float-label {
    font-size: 14px;
    top: 8px;
  }

  /* Textarea */

  .task-panel-section textarea {
    width: 100%;
    font-size: 16px;
    height: 100px;
    margin-top: 20px;
    border-radius: 8px;
  }

  .task-panel-section textarea::placeholder {
    padding: 1.7rem 0rem;
    font-size: 16px;
  }

  /* Checkbox */

  .task-panel-section .checkbox-label {
    font-size: 16px;
    left: 12px;
  }

  .task-panel-section .check {
    margin-left: 15px;
  }

  .task-panel-section .check-label {
    font-size: 16px;
    margin-left: 65px;
    position: relative;
    left: -65px;
  }

  .check-radio-br {
    display: none;
  }

  /* Radio-button */

  .task-panel-section .status-label {
    font-size: 16px;
    left: 12px;
  }

  .task-panel-section .radio {
    margin-left: 15px;
  }

  .task-panel-section .radio-label {
    font-size: 16px;
    margin-left: 65px;
    left: -65px;
  }

  /* Button */

  .task-panel-section .buttons {
    display: flex;
    border-radius: 10px;
    justify-content: center;
  }

  .task-panel-section .create-button {
    font-size: 16px;
    flex-basis: 30%;
    left: 1%;
    bottom: 5px;
    white-space: nowrap;
  }

  .task-panel-section .reset-button {
    padding: 10px;
    font-size: 16px;
    bottom: 5px;
    flex-basis: 20%;
    left: 1%;
    margin: 0px 0px 0px 15px;
  }

  /* ACTIVE TASKS SECTION */

  .active-task-section {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
  }

  .active-task-section.active {
    margin-left: 0px;
  }

  .task-list {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 18px;
  }

  .task-list.active {
    grid-template-columns: 1fr 1fr;
  }

  .task-card {
    width: 100%;
  }

  .task-card p {
    font-size: 16px;
    height: 39px;
  }

  /*----------PROFILE BOX-----------*/

  .profile-card {
    padding: 30px 20px;
  }

  .profile-image {
    width: 95px;
    height: 95px;
    font-size: 32px;
  }

  /*----------FOOTER-----------*/

  footer {
    margin-top: 5%;
  }

  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
  }

  .footer-container h4 {
    margin-bottom: 5%;
  }

  .footer-content .footer-p {
    font-size: 17px;
    margin-top: 20px;
  }

  .footer-content ul {
    font-size: 16px;
  }

  .footer-content li {
    padding: 3% 0%;
  }

  .footer-content {
    margin-bottom: 15%;
    font-size: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    font-size: 16px;
  }
}

@media (min-width: 601px) and (max-width: 752px) {
  .filter-buttons .filter-button {
    padding: 0.5rem 0.4rem;
    font-size: clamp(0.5rem, 3.5vw, 0.7rem);
    border-radius: 18px;
  }

  .filter-buttons {
    gap: clamp(4px, 1vw, 0px);
  }

  .active-task-section .task-card-heading {
    gap: 0px;
  }

  .active-panel-title select {
    font-size: 19px;
  }

  .check-radio-br {
    display: block;
  }

  .search-container {
    width: 300px;
  }
}

/*----------MOBILE-VIEW-----------*/

@media (min-width: 0px) and (max-width: 600px) {

  /* HEADER */

  header {
    padding: 14px 18px;
  }

  .header-container {
    margin-left: -3px;
  }

  header .title {
    font-size: 25px;
  }

  /* nav-bar */

  .nav-container {
    width: 100%;
    background-color: white;
    position: absolute;
    top: 61px;
    left: 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    left: -100%;
    transition: all 0.4s;
  }

  .nav-container.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 30px 0;
    margin-left: 35%;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links a {
    display: block;
    padding: 10px;
    font-size: 16px;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* MAIN SECTION */

  .main-section {
    grid-template-columns: 1fr;
    width: 95%;
    margin: 0 auto;
  }

  .main-title {
    font-size: 22px;
  }

  .main-header {
    flex-direction: column;
    justify-content: flex-start;
    margin: 50px 15px 5px 15px;
    gap: 20px;
  }

  .toast {
    top: 85px;
    white-space: nowrap;
  }

  .search-container {
    max-width: 100%;
    margin-bottom: 20px;
  }

  /* TASK PANEL SECTION */

  .task-panel-section {
    width: 100%;
    margin: 30px auto;
    left: 0;
    padding: 15px;
    border-radius: 16px;
  }

  .task-panel-title {
    margin: 10px 10px 10px -5px;
  }

  .error {
    left: -7px;
  }

  .task-panel-section input,
  .task-panel-section select,
  .task-panel-section textarea {
    width: 100%;
    font-size: 16px;
    margin: 13px 0;
    border-radius: 8px;
    padding: 12px 10px 12px 19px;
  }

  .task-panel-section .float-label {
    font-size: 13px;
    top: 6px;
  }

  .task-panel-section .progress-label {
    font-size: 17px;
    left: 1%;
  }

  /* Textarea */

  .task-panel-section textarea {
    height: 110px;
    margin-bottom: 25px;
  }

  .task-panel-section textarea::placeholder {
    padding: 1.8rem 0rem;
    font-size: 17px;
  }

  /* Checkbox */

  .task-panel-section .checkbox-label {
    font-size: 17px;
    left: 1%;
  }

  .task-panel-section .check {
    width: 60px;
    left: -14px;
  }

  .task-panel-section .check-label {
    font-size: 17px;
    left: -25px;
  }

  /* Radio-button */

  .task-panel-section .status-label {
    font-size: 17px;
    left: 1%;
  }

  .task-panel-section .radio {
    width: 60px;
    left: -15px;
    height: 19px;
    top: 3px;
  }

  .task-panel-section .radio-label {
    font-size: 17px;
    left: -26px;
  }

  /* Button */

  .task-panel-section .buttons {
    display: flex;
    font-size: 14px;
    font-weight: 600;
  }

  .task-panel-section .create-button {
    padding: 0px 40px;
    border-radius: 10px;
    font-size: 14px;
    /* left: -2.4%; */
    /* margin-left: 11px; */
    flex-basis: 62%;
    white-space: wrap;
  }

  .task-panel-section .reset-button {
    padding: 13px 30px;
    margin-left: 5px;
    font-size: 15px;
    left: 0%;
    flex-basis: 32%;
  }

  /* ACTIVE TASKS SECTION */

  .active-task-section {
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    margin-top: 0px;
    border-radius: 16px;
  }

  .active-task-section.active {
    margin-left: 0px;
  }

  .task-list img {
    top: 2.5px;
    height: 18px;
    width: 18px;
  }

  .task-card-heading {
    flex-direction: column;
    padding: 12px 5px;
    gap: 0px;
  }

  .task-card-heading .active-panel-title {
    font-size: 22px;
    bottom: 2px;
  }

  .filter-buttons {
    flex-wrap: nowrap;
    position: relative;
    right: 7px;
    top: 12px;
    margin-bottom: 15px;
    margin-top: 10px;
    width: 100%;
  }

  .filter-buttons.active {
    gap: 6px;
  }

  .filter-buttons .filter-button {
    padding: 0.5rem 1rem;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    margin-left: clamp(0.5rem, 1vw, 0.7rem);
    border-radius: 18px;
  }

  /* EMPTY TASK CONTAINER */

  .empty-task {
    margin-top: 0vh;
  }

  .empty-task p {
    max-width: 90%;
  }

  /* TASK-CARD */

  .task-list {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0.5rem;
  }

  .task-list.active {
    grid-template-columns: 1fr;
  }

  .task-card {
    width: 100%;
    padding: 1.35rem;
    margin-bottom: 15px;
  }

  .task-card p {
    font-size: 16px;
    height: 39px;
  }

  /* FULL TASK-CARD */

  .full-task-card {
    padding: 15px;
  }

  .fulltask-popup-body {
    max-height: 60vh;
    padding: 0px 8px 0px 0px;
    margin-top: 20px;
  }

  .full-taskcard-datas {
    border-radius: 12px;
  }

  .full-task-card-border {
    padding: 15px 20px 10px 20px;
  }

  .full-taskcard-grid {
    grid-template-columns: 1fr;
    margin-left: 35px;
  }

  .task-title {
    font-size: 16px;
  }

  .task-desc {
    font-size: 13px;
  }

  .grid-item {
    gap: 0px;
  }

  .grid-item .value {
    font-size: 13px;
    padding-left: 2px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .grid-item .label {
    font-size: 13px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .progress-label {
    font-size: 12px;
  }

  .full-taskcard-datas .priority-container {
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
  }

  /* EDIT TASK POPUP */

  .edit-popop-box {
    width: 90%;
    max-height: 90vh;
    height: auto;
    padding: 16px;
  }

  .edit-row {
    display: block;
    gap: 14px;
  }

  .edit-row .input-date {
    width: 100%;
  }

  .edit-row .select-priority {
    width: 100%;
  }

  .edit-row .input-hours {
    width: 100%;
  }

  /* DELETE CONFIRMATION POPUP */

  .delete-popup {
    padding: 22px 18px 20px;
    border-radius: 18px;
  }

  .delete-popup h2 {
    font-size: 20px;
  }

  .delete-popup p {
    font-size: 14px;
  }

  .actions {
    gap: 10px;
  }

  .actions button {
    height: 42px;
    font-size: 15px;
  }

  /*----------PROFILE BOX-----------*/

  .profile-box {
    margin-top: 50px;
    margin-bottom: 70px;
  }

  .profile-card {
    padding: 25px 15px;
    border-radius: 15px;
  }

  .profile-card .name {
    font-size: 18px;
  }

  .profile-card .role {
    font-size: 13px;
  }

  .profile-card .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .profile-card .info-right {
    font-size: 13px;
  }

  .edit-btn {
    font-size: 14px;
    padding: 12px;
  }

  /* FOOTER */

  footer {
    margin-top: 35px;
  }

  .footer-container {
    display: block;
    text-align: center;
  }

  .footer-container p {
    font-size: 16px;
    font-weight: 500;
  }

  .footer-container h4 {
    font-size: 20px;
    margin-bottom: 25px;
  }

  .footer-content {
    margin-bottom: 40px;
  }

  .footer-content ul {
    font-size: 16px;
  }

  .footer-content li {
    padding: 8px 0px;
    font-weight: 500;
  }

  .footer-bottom {
    display: block;
    text-align: center;
    font-size: 16px;
    line-height: 25px;
  }

  .footer-copyrights {
    padding: 16px 44px;
  }
}

@media (min-width: 500px) and (max-width: 600px) {
  .filter-buttons .filter-button {
    padding: 0.6rem 1rem;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    margin-left: clamp(0.5rem, 1vw, 1.5rem);
    border-radius: 20px;
  }

  .filter-buttons {
    right: 0px;
  }

  .active-panel-title select {
    width: 60%;
  }
}

@media (min-width: 400px) and (max-width: 500px) {
  .filter-buttons .filter-button {
    padding: 0.5rem 0.7rem;
    font-size: clamp(0.5rem, 3.5vw, 0.95rem);
    margin-left: clamp(0.2rem, 1vw, 0.5rem);
    border-radius: 18px;
  }

  .grid-item {
    grid-template-columns: 100px 10px 1fr;
    column-gap: 10px;
  }

  .full-taskcard-grid {
    margin-left: 0px;
  }

  .filter-buttons {
    right: 0px;
  }

  .active-panel-title select {
    width: 70%;
  }
}

@media (min-width: 350px) and (max-width: 400px) {

  .filter-buttons .filter-button {
    padding: 0.5rem 0.5rem;
    font-size: clamp(0.5rem, 3.5vw, 1rem);
    margin-left: clamp(0.1rem, 1vw, 0.2rem);
    border-radius: 18px;
  }

  .grid-item {
    grid-template-columns: 90px 10px 1fr;
    column-gap: 0px;
  }

  .full-taskcard-grid {
    margin-left: 0px;
  }

  .filter-buttons {
    right: -2px;
  }

  .active-panel-title select {
    width: 90%;
  }
}

@media (min-width: 0px) and (max-width: 350px) {
  .task-card-links label {
    padding: 0.4rem 0.8rem;
    font-size: clamp(0.77rem, 3.5vw, 1rem);
  }

  .task-panel-section .radio {
    width: 55px;
  }

  .task-panel-section .create-button {
    flex-basis: 65%;
  }

  .task-panel-section .reset-button {
    flex-basis: 10%;
  }

  .filter-buttons .filter-button {
    padding: 0.5rem 0.1rem;
    font-size: clamp(0.5rem, 3.5vw, 0.66rem);
    margin-left: -3px;
    border-radius: 18px;
  }

  .filter-buttons {
    right: -2px;
  }

  .full-taskcard-grid {
    margin-left: 0px;
  }

  .grid-item {
    grid-template-columns: 60px 10px 1fr;
    column-gap: -30px;
  }
}