* {
    font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  background: #f5f5f5;
}

header {
  background: #aa32da;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Bouton principal */
.button-create {
  background-color: white;
  color: black;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.button-create:hover {
  background-color: #e9e9e9;
}

.kanban {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.column {
  background: #fff;
  padding: 1rem;
  flex: 1;
  border-radius: 8px;
  min-height: 400px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}

.task {
  background: #ecf0f1;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  cursor: grab;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.task strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.task em {
  display: block;
  font-style: normal;
  font-size: .85rem;
  color: #888;
  margin-bottom: .5rem;
}

.task small {
  display: block;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: .5rem;
  margin-top: .5rem;
}

.task button {
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 1rem;
  margin-right: 0.4rem;
  margin-top: 0.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.1s;
}

.task button:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

.task button:active {
  transform: scale(0.95);
}

.task button:last-child {
  margin-right: 0;
}

.task[data-priority="high"] {
  border-left: 5px solid #e74c3c;
}
.task[data-priority="medium"] {
  border-left: 5px solid #f39c12;
}
.task[data-priority="low"] {
  border-left: 5px solid #2ecc71;
}

.task-list {
  min-height: 200px;
  padding: 0.5rem;
  border: 2px dashed transparent;
}

.task-list.dragover {
  border-color: #3498db;
  background-color: #ecf0f1;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-content label {
  font-weight: bold;
  margin-top: 1rem;
  display: block;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.modal-content textarea {
  resize: vertical;
}

.modal-content button {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.save-btn {
  background-color: #2ecc71;
  color: white;
  margin-right: 0.5rem;
}

.save-btn:hover {
  background-color: #27ae60;
}

.cancel-btn {
  background-color: #e74c3c;
  color: white;
}

.cancel-btn:hover {
  background-color: #c0392b;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hidden {
  display: none;
}

.actions {
  display: flex;
  gap: 1rem;
}

/* Gérer les labels */
#labelList {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

#labelList li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

#labelList input[type="text"] {
  flex: 1;
  padding: 0.3rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.label-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: -10px;
}

.label-actions button {
  background: #e74c3c;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
}

.label-actions button.rename {
  background: #3498db;

  &:hover {
    background: #2980b9;
  }
}

.label-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 1rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #f6f8fa;
  color: #24292f;
  margin-bottom: .5rem;
  margin-top: .5rem;
  gap: 0.4rem;
  width: fit-content;
}

.label-color {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background-color: rgb(186, 42, 230);
}
