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

/* base */
body {
  background-color: #0d1117;
  color: #c9d7f0;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: #5a9aff;
}

button {
  color: #c9d7f0;
  background: #151c2e;
  border: 1px solid #263354;
  padding: 0.5em 1em;
  border-radius: 8px;
  cursor: pointer;
}

input,
textarea {
  color: #c9d7f0;
  background: #0f1524;
  border: 1px solid #263354;
  padding: 0.5em 0.75em;
  border-radius: 8px;
}

input:focus,
textarea:focus {
  border-color: #5a9aff;
  outline: none;
}

/* nav */
nav {
  position: sticky;
  top: 0;
  background: #111827;
  border-bottom: 1px solid #263354;
  padding: 1em 2em;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
}

nav .mainnavelement {
  font-size: 1.5rem;
  padding: 0 0.5em 0.15em;
  border-bottom: 2px solid white;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}

nav .mainnavelement:hover,
nav .mainnavelement.active {
  color: #5a9aff;
  border-bottom-color: #5a9aff;
}

/* sections */
.section {
  flex: 1;
  padding: 2em;
  display: none;
}

.section.active {
  display: flex;
  flex-direction: column;
}

.archive-list {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.archive-item {
  padding: 0.6em 0.75em;
  background: #0d1117;
  border: 1px solid #263354;
  border-radius: 6px;
  font-size: 1vw;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-all;
  text-decoration: line-through;
  opacity: 0.7;
  transition: border-color 200ms ease, opacity 200ms ease;
}

.archive-item:hover {
  border-color: #5a9aff;
  opacity: 1;
}

.archive-item p {
  font-size: 0.8vw;
  color: #8899b3;
  margin-top: 0.3em;
}

.restore {
  float: right;
  width: 1em;
  height: 1em;
  filter: invert(1) brightness(1);
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 200ms ease, filter 200ms ease;
}

.restore:hover {
  opacity: 1;
  filter: invert(48%) sepia(90%) saturate(2000%) hue-rotate(100deg);
}

/* columns */
.columns {
  display: flex;
  gap: 1em;
  padding: 2em;
  flex: 1 1 0;
  min-height: 0;
}

.column {
  flex: 1;
  background: #151c2e;
  border: 1px solid #263354;
  border-radius: 8px;
  padding: 1em;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.column h3 {
  margin-bottom: 0.75em;
  border-bottom: 1px solid #263354;
  padding-bottom: 0.5em;
}

.column ul {
  list-style: none;
  min-height: 50px;
  overflow-y: auto;
  flex: 1;
}

.column li {
  padding: 0.6em 0.75em;
  margin-bottom: 0.4em;
  margin-top: 0.2em;
  background: #0d1117;
  border: 1px solid #263354;
  border-radius: 6px;
  cursor: grab;
  font-size: 1vw;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: break-all;
  transition: border-color 200ms ease, transform 150ms ease, box-shadow 200ms ease;
}

.column li:hover {
  border-color: #5a9aff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 154, 255, 0.15);
 
}

.column li p {
  font-size: 0.8vw;
  color: #8899b3;
  margin-top: 0.3em;
}


.column li p {
  font-size: 0.8vw;
  color: #8899b3;
  margin-top: 0.3em;
}

.column ul::-webkit-scrollbar {
  width: 6px;
}

.column ul::-webkit-scrollbar-track {
  background: transparent;
}

.column ul::-webkit-scrollbar-thumb {
  background: #263354;
  border-radius: 3px;
}

.column ul::-webkit-scrollbar-thumb:hover {
  background: #5a9aff;
}

.add-btn {
  text-align: center;
  cursor: pointer !important;
  padding: 0.6em 0.75em;
  margin-bottom: 0.4em;
  border: 1px solid #263354;
  border-radius: 6px;
  background: #0d1117;
  color: #5a9aff;
  user-select: none;
}

.add-btn:hover {
  background: #151c2e;
  border-color: #5a9aff;
}

/* sortable */
.ghost {
  opacity: 0.3;
}

.chosen {
  border-color: #5a9aff;
}




#todo {
  color: #5a9aff;
}

[id$="-todo"].column {
  border-color: #5a9aff;
}

#inprogress {
  color: #ffab2e;
}

[id$="-inprogress"].column {
  border-color: #ffab2e;
}

#done {
  color: rgb(0, 251, 0);
}

[id$="-done"].column {
  border-color: rgb(0, 251, 0);
}

[id$="-done"].column li {
  text-decoration: line-through;
  opacity: 0.9;
}






.addTask {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40vw;
  height: 50vh;
  background: rgba(21, 28, 46, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(90, 154, 255, 0.2);
  border-radius: 12px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2em;
  gap: 1em;
}

.addTask h1 {
  margin-bottom: 0.5em;
}

.addTask label {
  width: 80%;
}

.addTask input,
.addTask textarea {
  width: 80%;
  padding: 0.75em;
  font-size: 1rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.addTask input:focus,
.addTask textarea:focus {
  border-color: #5a9aff;
  box-shadow: 0 0 8px rgba(90, 154, 255, 0.3);
  outline: none;
}

.addTask .close-btn {
  position: absolute;
  top: 0.75em;
  right: 0.75em;
  background: none;
  border: none;
  color: #c9d7f0;
  font-size: 1.5rem;
  cursor: pointer;
  width: auto;
  padding: 0.25em 0.5em;
  margin: 0;
  transition: color 200ms ease;
}

.addTask .close-btn:hover {
  color: #ff5a5a;
  background: none;
  transform: none;
  box-shadow: none;
}

.addTask button {
  width: 80%;
  padding: 0.75em;
  margin-top: 0.5em;
  font-size: 1rem;
  transition: background 200ms ease, border-color 200ms ease, transform 150ms ease, box-shadow 200ms ease;
}

.addTask button:hover {
  background: #5a9aff;
  border-color: #5a9aff;
  color: #0d1117;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 154, 255, 0.3);
}

.addTask button:active {
  transform: translateY(0);
  box-shadow: none;
}


[class^="icon-"] {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  vertical-align: middle;
}


.icon-todo {
  color: #5a9aff;
}

.icon-inprogress {
  color: #ffab2e;
}

.icon-done {
  color: rgb(0, 251, 0);
}


.archive {
  width: 28px;
  height: 28px;
  filter: invert(1) brightness(1);
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 200ms ease, filter 200ms ease;
}



.archive:hover {
  opacity: 1;
  filter: invert(48%) sepia(90%) saturate(2000%) hue-rotate(190deg);
}

.trash {
  margin-left: 0.5em;
  width: 20px;
  height: 20px;
  filter: invert(1) brightness(1);
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 200ms ease, filter 200ms ease;
}

.trash:hover {
  opacity: 1;
  filter: invert(48%) sepia(90%) saturate(2000%) hue-rotate(335deg);
}