/* Base Styles */
body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
}

header {
  background: #0077cc;
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  margin: 0;
}

header button {
  background: #fff;
  color: #0077cc;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

header button:hover {
  background: #e6e6e6;
}

.dashboard {
  display: flex;
  justify-content: space-around;
  margin: 20px;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
}

.column {
  width: 23%;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px #ccc;
  margin-bottom: 20px; /* spacing for wrapping */
}

.column h2 {
  text-align: center;
}

.task-list {
  min-height: 50px;
}

.task {
  background: #d4edda;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.task select {
  margin-left: 10px;
}

.green { background: #d4edda; }
.yellow { background: #fff3cd; }     
.red { background: #f8d7da; }       

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.modal-box {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  min-width: 300px;
  width: 100%;
  max-width: 400px;
}

.modal-box input, 
.modal-box select, 
.modal-box button {
  width: 100%;
  margin: 5px 0;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.modal-box button.save,
.modal-box button.update {
  background: #0077cc;
  color: #fff;
  border: none;
}

.modal-box button.delete {
  background: #dc3545;
  color: #fff;
  border: none;
}

.modal-box button.cancel {
  background: #6c757d;
  color: #fff;
  border: none;
}

.modal-box button:hover {
  opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .column {
    width: 48%;
  }
}

@media (max-width: 768px) {
  .column {
    width: 100%;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header button {
    width: 100%;
    margin-top: 10px;
  }

  .task {
    flex-direction: column;
    align-items: flex-start;
  }

  .task select {
    margin-left: 0;
    margin-top: 5px;
    width: 100%;
  }
}
