body {
    font-family: Arial, sans-serif;
    background-color: #1e1f24;
    margin-top: 120px;
}

#top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1a3292;
    padding: 10px;
    z-index: 1000;
}

#top h1 {
    color: white;
    margin: 0;
    padding: 10px;
}

#add-task-bar {
    margin-top: 10px;
}

#task-input {
    padding: 8px;
    width: 250px;
    border-radius: 5px;
    border: none;
}

#add-task-btn {
    padding: 8px 12px;
    margin-left: 5px;
    border: none;
    border-radius: 5px;
    background: #0f62fe;
    color: white;
    cursor: pointer;
}

#main {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.column {
    background-color: #2e2f36;
    border-radius: 5px;
    padding: 10px;
    width: 300px;
    min-height: 400px;
}

.column h3 {
    color: #a8a8a8;
    text-align: center;
}

.column-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#WIP_MAX {
    color: #a8a8a8;
    font-size: 14px;
    margin: 0;
}

.task {
    background-color: #3e3f46;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    color: #a8a8a8;
    cursor: pointer;
}

.task:hover {
    background-color: #4e5056;
}

.delete {
    margin-top: 1px;
    float: right;
    border: none;
    background: none;
    cursor: pointer;
}

.delete-img {
    width: 10px;
    height: 10px;
}

.tag {
    display: inline-block;
    background: #1a3292;
    color: white;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 12px;
    margin-right: 5px;
    margin-top: 5px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: #2e2f36;
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);

    padding: 20px;
    width: 300px;
    max-height: 85vh;

    overflow-y: auto;

    border-radius: 8px;
    color: white;
}

.modal textarea {
    width: 100%;
    min-height: 80px;
    margin-bottom: 10px;
    resize: vertical;
}

.modal input {
    width: 100%;
    margin-bottom: 10px;
    padding: 6px;
    box-sizing: border-box;
}

.modal-title-input {
    font-size: 20px;
    font-weight: bold;
    background: transparent;
    color: white;
    border: none;
    margin-bottom: 15px;
}

.subtask {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 8px;
    margin-bottom: 6px;
    background: #3a3b42;
    border-radius: 6px;
}

.subtask-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    cursor: pointer;
}

.collapse-arrow {
    font-size: 12px;
    width: 14px;
    transition: transform 0.15s ease;
    transform: rotate(90deg);
}

.subtask-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.subtask input[type="checkbox"] {
    width: auto;
}

.subtask-add {
    display: flex;
    gap: 5px;
}

.add-child {
    margin-left: auto;
    background: #0f62fe;
    border: none;
    color: white;
    border-radius: 4px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
}

.add-child:hover {
    background: #1f70ff;
}

.subtask-children {
    margin-left: 20px;
    border-left: 2px solid #4e5056;
    padding-left: 10px;
    width: calc(100% - 20px);
}

.subtask.child {
    background: transparent;
    padding: 4px 0;
    margin: 2px 0;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

#save-task-btn {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    border: none;
    background: #0f62fe;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.close {
    float: right;
    cursor: pointer;
}

/* SUBTASK CONTAINER */
.subtask {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 6px 8px;
    margin-bottom: 6px;

    background: #3a3b42;
    border-radius: 6px;
}

/* SUBTASK TEXT */
.subtask span {
    color: #d0d0d0;
    font-size: 14px;
}

/* CUSTOM CHECKBOX */
.subtask input[type="checkbox"] {
    position: relative;
    top: 4px;

    appearance: none;

    width: 18px;
    height: 18px;

    border: 2px solid #0f62fe;
    border-radius: 4px;

    background: transparent;

    cursor: pointer;

    position: relative;

    transition: all 0.15s ease;
}

/* CHECKED STYLE */
.subtask input[type="checkbox"]:checked {
    background: #0f62fe;
}

/* CHECKMARK */
.subtask input[type="checkbox"]:checked::after {
    content: "✔";

    position: absolute;

    left: 2px;
    top: -1px;

    color: white;
    font-size: 12px;
}

/* ADD SUBTASK ROW */
.subtask-add {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* SUBTASK INPUT */
#new-subtask-input {
    flex: 1;

    padding: 8px;

    border: none;
    border-radius: 6px;

    background: #3a3b42;
    color: white;
}

/* ADD BUTTON */
#add-subtask-btn {
    padding: 8px 14px;

    border: none;
    border-radius: 6px;

    background: #0f62fe;
    color: white;

    cursor: pointer;

    transition: background 0.15s ease;
}

/* BUTTON HOVER */
#add-subtask-btn:hover {
    background: #1f70ff;
}

/* BUTTON CLICK */
#add-subtask-btn:active {
    transform: scale(0.97);
}

.context-menu {
    position: absolute;
    display: none;
    background: #2e2f36;
    border: 1px solid #444;
    border-radius: 6px;
    z-index: 9999;
    width: 120px;
    color: white;
    font-size: 14px;
}

.context-menu div {
    padding: 8px;
    cursor: pointer;
}

.context-menu div:hover {
    background: #3e3f46;
}