* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  position: relative;
  height: 100vh;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  display: grid;
  grid-template-columns: 3fr 7fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "sidebar header"
    "sidebar content-cont";
}

.overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 998;
}

/* start header */
header {
  grid-area: header;
  height: 80px;
  padding: 20px;
  display: flex;
  justify-content: end;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

header .add-btn button {
  background-color: #2563eb;
  color: #ffffff;
  font-weight: 900;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
header .add-btn button:hover {
  background-color: #1d4ed8;
}

/* start side bar */
aside {
  grid-area: sidebar;
  overflow: hidden;
}

aside .logo {
  background-color: #ffffff;
  height: 80px;
  padding: 10px;
  padding-left: 20px;
  border-bottom: 1px solid #e2e8f0;
}

aside .logo h1 {
  color: #0f172a;
  font-size: 30px;
}

aside .container {
  height: 100%;
  width: 100%;
  overflow: hidden;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 10px;
}

aside .container > div {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 20px;
  background-color: #f1f5f9;
  background-color: transparent;
  color: #475569;
  border-radius: 6px;
}

aside .container > div:hover {
  background-color: #e2e8f0;
}

aside .container > div span {
  font-weight: bold;
  background-color: #dbeafe;
  padding: 4px 8px;
  border-radius: 6px;
}

aside .container > div.on {
  background-color: #2563eb;
  color: #ffffff;
}

aside .container > div.on span {
  background-color: #ffffff;
  color: #2563eb;
}

aside .container .deleted h3 i {
  font-size: 16px;
}

/* start popup form */
.popup-form {
  position: absolute;
  top: 11%;
  left: 36%;
  width: 30%;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}

.popup-form .container {
  width: 100%;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.popup-form .container .close {
  justify-self: end;
  padding: 20px;
}

.popup-form .container .close i {
  color: #94a3b8;
  font-size: 27px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-form .container .close i:hover {
  color: #0f172a;
}

.popup-form .container form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}

.popup-form .container form label {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
}

.popup-form .container form #taskName,
.popup-form .container form #description {
  height: 30px;
  width: 100%;
  border-radius: 6px;
  outline: none;
  border: none;
  color: #94a3b8;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 5px;
  transition: all 0.3s ease;
}

.popup-form .container form #description {
  height: 70px;
  resize: vertical;
  padding: 10px 12px;
  box-sizing: border-box;
}

.popup-form .container form #taskName:focus,
.popup-form .container form #description:focus {
  border: 1px solid #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.popup-form .container form #date {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: #334155;
  background-color: #f8fafc;
  outline: none;
  box-sizing: border-box;
}

.popup-form .container form #date:focus {
  border-color: #2563eb;
  background-color: #ffffff;
}

.popup-form
  .container
  form
  input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.popup-form
  .container
  form
  input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.popup-form .container form .priority {
  margin: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.popup-form .container form .priority input {
  width: 30px;
}

.popup-form .container form .priority label {
  font-size: 14px;
  font-weight: 550;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.popup-form .container form .priority .low {
  color: #166534;
  background-color: #f0fdf4;
}

.popup-form .container form .priority .mid {
  color: #b45309;
  background-color: #fffbeb;
}

.popup-form .container form .priority .high {
  color: #991b1b;
  background-color: #fef2f2;
}

.popup-form .container form .btns {
  width: 100%;
  align-self: center;
}

.popup-form .container form .btns .submit {
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  color: #ffffff;
  background-color: #2563eb;
  transition: all 0.3s ease;
}

.popup-form .container form .btns .submit:hover {
  background-color: #1d4ed8;
}

/* task container start */
.content-cont {
  grid-area: content-cont;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 10px;
}

.content-cont .progress-cont {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.content-cont .progress-cont h3 {
  color: #334155;
  font-weight: 600;
  font-size: 18px;
}

.content-cont .progress-cont .progress-bar {
  width: 100%;
  height: 15px;
  background-color: #e2e8f0;
  border-radius: 15px;
}

.content-cont .progress-cont .progress-bar .progress {
  height: 15px;
  background-color: #1d4ed8;
  border-radius: 15px;
  transition: width 0.3s ease-in-out;
}

.content-cont .container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: stretch;
  gap: 15px;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

.content-cont .container > div {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "title complete complete chevron"
    "desc desc desc desc"
    "priDate priDate btns btns";
  gap: 10px;
  width: 100%;
  background-color: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  padding-right: 30px;
  transition: all 0.3s ease-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.content-cont .container > div h3 {
  grid-area: title;
  font-size: 20px;
  color: rgb(40, 41, 44);
  margin: 0;
}

.content-cont .container > div input {
  grid-area: complete;
  width: 20px;
  height: 20px;
  justify-self: end;
  align-self: center;
  cursor: pointer;
}

.content-cont .container > div i {
  grid-area: chevron;
  justify-self: start;
  cursor: pointer;
  padding: 5px 0;
  font-size: 18px;
}

.content-cont .container > div p {
  grid-area: desc;
  font-size: 16px;
  color: rgb(40, 41, 44);
  display: none;
  line-height: 1.6;
  word-break: normal;
  margin: 0;
  padding: 20px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content-cont .container > div p.show {
  display: block;
}

.content-cont .container > div .priDate {
  grid-area: priDate;
  display: flex;
  flex-direction: row;
  justify-content: start;
  gap: 10px;
}

.content-cont .container > div span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  width: fit-content;
  background-color: white;
  margin-right: 5px;
  align-self: center;
}

.content-cont .container > div span.high {
  background-color: #ffe5e5;
  color: #d9534f;
}
.content-cont .container > div span.medium {
  background-color: #fff0e6;
  color: #e67e22;
}
.content-cont .container > div span.low {
  background-color: #e6f9e6;
  color: #27ae60;
}

.content-cont .container > div .dateCon {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
}

.content-cont .container > div .dateCon i {
  font-weight: 800;
  color: #475569;
}

.content-cont .container > div .date {
  font-weight: 800;
  color: #475569;
  background-color: #ebf1fa;
}

.content-cont .container > div .btns {
  grid-area: btns;
  display: flex;
  flex-direction: row;
  justify-content: end;
  gap: 10px;
}

.content-cont .container > div .btns button {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: bold;
  width: fit-content;
  border: none;
  cursor: pointer;
}

.content-cont .container > div .btns button:first-child {
  background-color: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.content-cont .container > div .btns button:last-child {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
