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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    min-height: 100vh;
}

.container {
    display: flex;
    gap: 20px;
    min-height: 80vh;
}

.column {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 400px;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.column-title {
    margin: 0;
    color: #333;
}

.add-card-btn {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 16px;
}

.add-card-btn:hover {
    background: #45a049;
}

.cards-container {
    min-height: 300px;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: grab;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.card.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card-placeholder {
    border: 2px dashed #ccc;
    border-radius: 6px;
    height: 60px;
    margin-bottom: 10px;
    background: #f9f9f9;
}

.card-content {
    flex: 1;
    word-break: break-word;
}

.edit-card-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.edit-card-btn:hover {
    opacity: 1;
}

.column.drag-over {
    background: #f0f8ff !important;
    border: 2px dashed #4CAF50;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.modal-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#cancelBtn {
    background: #ccc;
}

#saveBtn {
    background: #4CAF50;
    color: white;
}

#cardText {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.delete-card-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.2s;
    color: #ff4757;
    font-family: 'Material Icons';
    font-size: 18px;
}

.card:hover .delete-card-btn {
    opacity: 0.7;
}

.delete-card-btn:hover {
    opacity: 1 !important;
    color: #ff0000;
}

/* Иконка крестика через  псевдоэлемент */
.delete-card-btn::before {
    content: '×';
    font-size: 20px;
    font-weight: bold;
}

/* Альтернативный вариант с Unicode */
.delete-card-btn.unicode::before {
    content: '\E951';
    font-family: 'Arial', sans-serif;
}
