body {
  background-color: #6495ED;
}

.container {
  display: flex;
}

.column {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 30%;
  border: 1px solid gray;
  border-radius: 5px;
  padding: 20px;
  margin-left: 1%;
  margin-right: 1%;
  background: #C0C0C0;
  font-family: Arial, Helvetica, sans-serif;
  color: #3c3b3b;
}

.addLink {
  text-decoration: none;
  color: #696969;
}

.addLink:hover {
  text-decoration: underline #696969;
}
.inputContainer {
  width: 100%;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-title {
  color: gray;
  width: 100%;
  height: 45px;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid #ccc;
  padding: 8px 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-title:focus {
  border-color: #4caf50;
  box-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
}

.addBtn {
  height: 34px;
  font-weight: bold;
  background-color: #4caf50;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.addBtn:hover {
  background-color: #43a047;
}

.deleteBtn {
  color: gray;
  cursor: pointer;
  user-select: none;
}

/* --- Карточка --- */
.newCard {
  color: rgb(70, 70, 70);
  width: 100%;
  min-height: 50px;
  background-color: rgb(200, 198, 198);
  padding: 10px;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid rgb(130, 130, 130);
  margin: 10px 0;
  cursor: grab;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.newCard:hover {
  background-color: rgb(176, 172, 172);
  color: white;
}

/* --- Удаление --- */
.newCard .deleteBtn {
  opacity: 0;
  pointer-events: none;
  flex: 0 0 auto;
  margin-left: auto;
  transition: opacity 0.2s ease;
}

.newCard:hover .deleteBtn {
  opacity: 1;
  pointer-events: auto;
}

/* --- Активное перетаскивание --- */
.newCard.dragged {
  position: absolute;
  pointer-events: none;
  opacity: 0.9;
  z-index: 1000;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  transform: scale(1.03);
  transition: none;
  /* отключаем переходы во время drag */
}

/* --- Placeholder --- */
.placeholder {
  width: 100%;
  height: 50px;
  border: 2px dashed #888;
  border-radius: 5px;
  margin: 10px 0;
  background-color: rgba(0, 0, 0, 0.05);
}
