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

body {
    font-family: Arial, sans-serif;
    background: #eaf3ff;
    color: #222;
    padding: 20px;
    min-height: 100vh;
    
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

.app {
    display: flex;
    flex-direction: column;
    gap: 20px;
   
    width: 1200px;
    margin: 0 auto;
}


.header-container {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px; 
}

.form-container {
    align-self: flex-start;
    margin-bottom: 30px; 
}

.task-board {
    width: 100%;
    margin-top: 10px; 
}

header {
    background: #1976d2;
    color: white;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    text-align: left;
    width: 100%;
}

header h1 {
    font-size: 16px;
    margin: 0;
}

.new-task-container {
    background: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 400px;
}

.new-task-container h3 {
    margin-bottom: 12px;
    font-size: 15px;
    color: #333;
}

.input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

.input-group button {
    padding: 10px 16px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.columns-container {
    width: 100%;
    overflow-x: auto;
}

.columns {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.column {
    width: 280px;
    flex-shrink: 0;
}

.column-header {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

.backlog .column-header {
    background: #e6e9ee;
    color: #222;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task {
    background: white;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    word-break: break-word;
    width: 100%;
}

.task--backlog { border-left: 4px solid #e6e9ee; }
.task--processing { border-left: 4px solid #1976d2; }
.task--done { border-left: 4px solid #4caf50; }
.task--basket { border-left: 4px solid #f44336; }


.clear-basket-btn {
    margin-top: 15px;
    padding: 10px 16px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.clear-basket-btn:hover {
    background: #d32f2f;
}

.processing .column-header {
    background: #1976d2;
    color: white;
}

.done .column-header {
    background: #4caf50;
    color: white;
}

.basket .column-header {
    background: #f44336;
    color: white;
}

.task[draggable="true"] {
    cursor: grab;
    user-select: none;
    transition: all 0.2s ease;
}

.task.dragging {
    opacity: 0.6;
    cursor: grabbing;
    transform: rotate(5deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.task-list.drag-over {
    background-color: #f0f8ff;
    border: 2px dashed #1976d2;
    border-radius: 6px;
    min-height: 100px;
    transition: all 0.2s ease;
}

.backlog .task-list.drag-over {
    background-color: #f8f9fa;
    border-color: #6c757d;
}

.processing .task-list.drag-over {
    background-color: #e3f2fd;
    border-color: #1976d2;
}

.done .task-list.drag-over {
    background-color: #e8f5e8;
    border-color: #4caf50;
}

.basket .task-list.drag-over {
    background-color: #ffebee;
    border-color: #f44336;
}

.task-list:empty.drag-over::after {
    content: "Drop here";
    display: block;
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

.task:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.task[draggable="true"] {
    -webkit-user-drag: element;
}

.task, .task-list, .column {
    transition: all 0.3s ease;
}