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

body {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
    background-color: #f4f3f8;
    font-family: 'Segoe UI', sans-serif;
}

.header {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.rightBtns {
 display: flex;
 justify-content: flex-end;
}

#loginBtn {
  /* Layout & Sizing */
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  
  /* Typography */
  font-family: sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  
  /* Colors */
  background-color: #007bff;
  color: #ffffff;
  
  /* Interaction */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hover State: Triggered when mouse enters the button area */
#loginBtn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Active State: Triggered while the button is being clicked */
#loginBtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#logoutBtn {
    color:red;
    border: none;
}



.resetBtn {
  /* Layout & Sizing */
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  margin-left: 10px;
  
  /* Typography */
  font-family: sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  
  /* Colors */
  background-color: #007bff;
  color: #ffffff;
  
  /* Interaction */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hover State: Triggered when mouse enters the button area */
.resetBtn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Active State: Triggered while the button is being clicked */
.resetBtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.kanban-board {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.toDo,
.inProgress,
.done,
.buildedColumn {
    width: 300px;
    min-height: 500px;
    background-color: #ebebf0;
    border-radius: 12px;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
}

/* Remove the old .newColumn styles and replace with: */

.newColumn {
    display: flex;
    align-items: center;
}

.newColumn button {
    padding: 10px 28px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #555;
    background: transparent;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.newColumn button:hover {
    background: #ebebf0;
    border-color: #999;
    color: #222;
}

.newColumn button:active {
    transform: scale(0.97);
}

.columnTitleInput {
    width: 100%;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #7c6ff7;
    background: transparent;
    border: none;
    border-bottom: 2px solid #c0b8fc;
    border-radius: 0;
    padding: 4px 4px 8px;
    outline: none;
}

.columnTitleInput:focus {
    border-bottom-color: #6c63ff;
}
 

.toDo > h1,
.inProgress > h1,
.done > h1,
.buildedColumn > h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #666;
    padding: 4px 4px 10px;
    border-bottom: none;
}

/* tint the column header accent per column */
.toDo > h1   { color: #7c6ff7; }
.inProgress > h1 { color: #e8922a; }
.done > h1   { color: #3baa72; }
.buildedColumn > h1 {color : #8b3baa;}

.card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
    font-size: 14px;
    color: #1a1a1a;
    cursor: grab;
    line-height: 1.5;
}

.card:active {
    cursor: grabbing;
}

.addTaskButton {
    width: 100%;
    height: 36px;
    font-size: 18px;
    font-family: inherit;
    font-weight: 500;
    color: #888;
    background: transparent;
    border: 1.5px solid #1776c4;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.addTaskButton:hover {
    background: #fff;
    color: #333;
    border-color: #aaa;
}

.card textarea {
    width: 100%;
    font-size: 14px;
    font-family: inherit;
    line-height: .8;
    color: #1a1a1a;
    background: #ffffff;
    border: 1.5px solid #c0c0c0;
    border-radius: 8px;
    padding: 8px 10px;
    resize: none;
    outline: none;
    transition: border-color 0.15s;
}

.card textarea:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.card textarea::placeholder {
    color: #aaaaaa;
}

/* drag feedback */
.card.dragging {
    opacity: 0.4;
}

.toDo.drag-over,
.inProgress.drag-over,
.done.drag-over {
    outline: 2px dashed #b0a8f8;
    background-color: #eeedfb;
}

/* Delete Button */

.buildedColumn {
    position: relative;  /* add this */
}

.deleteColumnBtn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    font-size: 18px;
    line-height: 1;
    color: #aaa;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.15s, background 0.15s;
}

.deleteColumnBtn:hover {
    color: #e05555;
    background: #fdecea;
}

.card {
    position: relative;  /* add this to existing .card rule */
}

.deleteCardBtn {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 20px;
    height: 20px;
    font-size: 16px;
    line-height: 1;
    color: #aaa;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.15s, background 0.15s;
}

.deleteCardBtn:hover {
    color: #e05555;
    background: #fdecea;
}