* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    list-style: none;
}


body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    padding: 20px;
    min-height: 100vh;
    line-height: 1.6;
}


h1 {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
}

h2 {
    font-size: 2rem;
    font-weight: normal;
}


form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}


.board {
    display: flex;
    flex-direction: row;
    gap: 20px;
}


.column {
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    width: 33%;
}

.list {
    min-height: 200px;
}


.todo {
    background: #f1f1f1;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.row-todo {
    display: flex;
    flex-direction: column;
    align-items: baseline;
}

.todo .top {
    display: flex;
    gap: 5px;
}

.priority-1 {
    border-left: 5px solid limegreen;
}

.priority-2 {
    border-left: 5px solid orange;
}

.priority-3 {
    border-left: 5px solid red;
}


.deadline {
    font-size: 12px;
    color: #555;
}


button {
    cursor: pointer;
}


.subtasks {
    position: relative;
    margin-top: 8px;
    padding-left: 10px;
    align-items: center;
}

.subtasks li {
    font-size: .8rem;
}

.sub-done {
    text-decoration: line-through;
    opacity: 0.6;
}


.todo-list {
    height: 100%;
}



.dragging {
    opacity: 0.5;
}

.drag-handle {
    cursor: grab;
    user-select: none;
    font-size: 1.2rem;
    color: #aaa;
    display: flex;
    margin: auto;
    height: 100%;
    align-items: center;
}


.todo.done {
    opacity: 0.6;
}

.todo.done .todo-title {
    text-decoration: line-through;
}

.todo.done button {
    opacity: 0.5;
}

.todo.done:hover {
    opacity: 0.8;
}

.board button {
    background-color: #ddd;
    height: min-content;
    padding: 3px 7px;
    border-radius: 12px;
}


.start {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.start select {
    font-size: 1rem;
    font-weight: bold;
    margin-top: -10px;
}

select,
input{
    background-color: #f1f1f1;
    border-radius: 15px;
    padding: 15px;
    font-size: 1rem;
}

#createForm button {
    background-color: #ddd;
    padding: 15px;
    font-size: 1rem;
    border-radius: 12px;
}

/* =========================
   📱 MOBIL (max-width: 700px)
   ========================= */
@media (max-width: 700px) {

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.4rem;
        text-align: center;
    }

    /* ----- Board layout ----- */
    .board {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .column {
        width: 100%;
        padding: 10px;
    }

    /* ----- Todo card ----- */
    .todo {
        flex-direction: column;
        gap: 6px;
        padding: 8px;
    }

    .drag-handle {
        align-self: flex-end;
        font-size: 1.4rem;
    }

    /* ----- Title + buttons ----- */
    .todo .row {
        display: flex;
        align-items: center;
    }

    .todo-title {
        font-size: 1rem;
        flex: 1 1 100%;
    }

    /* ----- Buttons (touch friendly) ----- */
    button {
        padding: 6px 10px;
        font-size: 1rem;
    }

    /* ----- Deadline ----- */
    .deadline {
        font-size: 0.75rem;
        margin-top: 2px;
    }

    /* ----- Subtasks ----- */
    .subtasks {
        padding-left: 0;
        margin-top: 6px;
    }

    .subtasks li {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
    }

    .subtasks input[type="checkbox"] {
        transform: scale(1.2);
    }

    /* ----- Form ----- */
    form {
        flex-direction: column;
        gap: 8px;
    }

    form input,
    form select,
    form button {
        width: 100%;
    }
}