body {
      font-family: Arial, sans-serif;
      background-color: #f8f9fc;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      margin: 0;
    }

    .todo-container {
      width: 300px;
      height: 100%;
      gap:40px;
      background: #f6f8fa;
      border-radius: 10px;
      border: 1px dashed #d3dce6;
      padding: 15px;
      box-shadow: 0 0 8px rgba(0,0,0,0.05);
    }

    .todo-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-weight: bold;
      padding: 10px;
      background: #e0e5ef;
      border-radius: 8px;
      margin-bottom: 10px;
    }

    .todo-header span {
      background: #ffffff;
      padding: 2px 8px;
      border-radius: 50%;
      font-size: 12px;
      border: 1px solid #ccc;
    }

    .add-task-btn {
      width: 100%;
      padding: 10px;
      text-align: center;
      border: 1px dashed #ccc;
      border-radius: 8px;
      background-color: #fefefe;
      cursor: pointer;
      color: #777;
      margin-bottom: 30px;
    }


    .add-task-btn:hover {
      background-color: #f0f0f0;
    }

    .no-tasks {
      text-align: center;
      color: #9ca3af;
    }

    .no-tasks i {
      font-size: 30px;
      margin-bottom: 5px;
      display: block;
    }

    /* qeybta add task */



.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-box {
  background: white;
  border-radius: 8px;
  width: 400px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.close-btn {
  font-size: 28px;
  cursor: pointer;
}
.close-btn:hover{
    color: #777;
    cursor: pointer;
    border-radius: 1px;
}

.modal-body label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.modal-body input,
.modal-body textarea,
.modal-body select {
  width: 100%;
  margin-top: 5px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.priority-options {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.priority-options button {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f0f0f0;
  cursor: pointer;
}

.priority-options .active {
  background-color: #facc15;
}

.modal-footer {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.modal-footer button {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

#createTaskBtn {
  background-color: #2563eb;
  color: white;
  padding: 10px 80px;
  /* display: flex; */
  font-size: medium;

}

#cancelBtn {
  background-color: #e5e7eb;
  font-size: medium;
  padding: 10px 20px;
}

.priority-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
  display: inline-block;
  margin-top: 5px;
}

.priority-badge.low {
  background-color: #d1fae5;  /* green-100 */
  color: #065f46;             /* green-700 */
}

.priority-badge.medium {
  background-color: #fef3c7;  /* yellow-100 */
  color: #92400e;             /* yellow-700 */
}

.priority-badge.high {
  background-color: #fee2e2;  /* red-100 */
  color: #991b1b;             /* red-700 */
}


.task-card {
  background: white;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  margin-top: 10px;
  position: relative;
  display: flex-start;
}



.edit-btn, .delete-btn {
  position: absolute;
  top: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.edit-btn {
  right: 36px;
}

.delete-btn {
  right: 8px;
}

.priority.low {
  color: green;
  font-weight: bold;
}
.priority.medium {
  color: orange;
  font-weight: bold;
}
.priority.high {
  color: red;
  font-weight: bold;
}


.priority.low { color: green; }
.priority.medium { color: orange; }
.priority.high { color: red; }

.task-card[draggable="true"] {
  cursor: grab;
}


/* Layout: make columns side by side */
.board {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

/* Each column style */
.todo-container {
  flex: 1;
  background-color: #f4f4f4;
  padding: 15px;
  border-radius: 10px;
  min-height: 500px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Header: title + count */
.todo-header {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 10px;
}

/* Add task button */
.add-task-btn {
  background-color: #007bff;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  margin-bottom: 10px;
}

/* Tasks container */
.no-tasks {
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
  min-height: 300px;
}

/* Modal styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-box {
  background-color: white;
  padding: 20px;
  width: 400px;
  border-radius: 8px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

/* Priority button styles */
.priority-options button {
  margin-right: 5px;
  padding: 5px 10px;
  cursor: pointer;
}

.priority-options .active {
  background-color: #007bff;
  color: white;
}

