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

body {
  background: linear-gradient(to right, #5266ba 40%, #585caa, #5f4c8f);
}

h1 {
  color: white;
  text-align: center;
  padding: 30px;
}

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

.popup {
  position: relative;
  background: white;
  padding: 35px 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.popup p {
  color: #666;
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.5;
}

.popup input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: all 0.3s;
  direction: ltr;
  text-align: left;
}

.popup input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.popup input.error {
  border-color: #f56565;
  background-color: #fff5f5;
}

.popup .add {
  background: linear-gradient(to right, #5266ba 40%, #585caa, #5f4c8f);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.popup .add:hover {
  transform: translate(0, 1px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.error-message {
  color: #f56565;
  margin-top: -15px;
  margin-bottom: 20px;
  text-align: center;
}
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.close-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.task-board {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin: 10px;
  min-height: 400px;
}
.card{
  width: 30%;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin: 10px;
  min-height: 400px;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.numTasks,
.memberTask {
  background: linear-gradient(to right, gold, orange);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  min-width: 30px;
  text-align: center;
}

.content {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.content input {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.addTask {
  background: linear-gradient(135deg, gold, orange);
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  color: white;
}

.task-board .noTasks {
  margin-top: 40px;
  text-align: center;
  color: #868585;
}

.task {
  background: white;
  padding: 10px 15px;
  border-radius: 6px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}
.task:hover {
  transform: translate(0, -2px);
}
.delete {
  background: #ff7c6d;
  color: #fff;
  border: none;
  padding: 2px 5px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
}
section {
  display: flex;
  justify-content: start;
  align-items: flex-start;
  padding: 20px;
}

.members {
 width: 70%;
display: flex;
align-items: center;
flex-wrap:wrap;
  border-radius: 20px;
  min-height: 300px;
}



.member-tasks {
  min-height: 100px;
  margin-top: 15px;
  border-radius: 10px;
  transition: 0.2s;
}

.task2 {
  padding: 15px;
  margin-top: 6px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 3px solid red;
}

.task2.not {
  background: #ffcccc;
  border-left: 3px solid red;
}

.task2.ongoing {
  background: #cce5ff;
  border-left: 3px solid blue;
}

.task2.done {
  background: #ccffcc;
  border-left: 3px solid green;
}

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

.task-title {
  margin: 0;
  padding: 6px 5px;
}

.delete-btn {
  cursor: pointer;
  font-weight: bold;
  background: #ffaeae;
  color: #ee5656;
  border-radius: 50%;
  padding: 0px 5px;
  margin: 0px 4px;
}

.task-select {
  width: 95%;
  padding: 5px;
}

.drag-active {
  background: #e6f2ff;
  border: 2px dashed #4da6ff;
  min-height: 200px;
}