body {
    background-color: #f8f8f8;
}

.noto-sans-font-style-normal {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

.button {
    display: flex;
    justify-content: center;
    padding: 15px 20px;
    margin: 50px;
    color: black; /*font*/
    background-color: rgb(170, 202, 230);
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: 1.3px solid black;
}
.button:hover {
    background-color: rgb(112, 174, 228);
    font-size: large;
}
.title {
    display: flex;
    justify-content: center;
    margin: 50px;
    color: rgb(0, 0, 0); /*font*/
}

/**TASK MANAGEMENT STYLING**/
.task-btns {
    margin-top: 150px;

}

.task-btns button {
    display: flex;
    justify-content: center;
    background-color: #66CEED;
    margin-top: 15px;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px 20px;
    border: 0px;
    border-radius: 15px;
    font-size: 35px;
    font-family: "Noto Sans", sans-serif;
    width: 80%;
    height: 25%;
}

.task-btns button:hover {
    background-color: #22b8e5;
    font-size: 40px;
}

/* popup overlay (background) */
.task-modal {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

/* popup box */
.task-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 400px;
    max-width: 100%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: "Noto Sans", sans-serif;
}

/* internal layout */
.task-input-area input {
    font-family: "Noto Sans", sans-serif;
    width: 98%;
    margin-bottom: 5px;
}

.task-input-area button {
    font-family: "Noto Sans", sans-serif;
    width: 100%;
}

.subtask-area {
    margin-top: 15px;
}

.subtask-area button {
    background-color: #72d6a7;
    border: 0px;
    border-radius: 15px;
    margin-top: 5px;
    padding: 5px;
}

.subtask-area button:hover {
    background-color: #39c382;
}

.task-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

#saveTask {
    background-color: #66CEED;
    border: 0px;
    border-radius: 15px;
    padding: 5px;
}

#saveTask:hover {
    background-color: #22b8e5;
}

#cancelTask {
    border: 0px;
    border-radius: 15px;
    padding: 5px;
}

#cancelTask:hover {
    background-color: #ccc;
}

.tasklist-popup {
    display: none;
}

/*Task List Modal Styling*/
.tasklist-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: "Noto Sans", sans-serif;
}

.tasklist-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    max-height: 80vh; /* limits popup height */
}

.tasklist-content h3 {
    margin-top: 0;
}

/* scrollable task list area */
.tasklist-container {
    overflow-y: auto;
    flex: 1;
    margin-top: 10px;
    padding-right: 8px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

/* style individual task list items */
#task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#task-list li {
    background: #f8f8f8;
    padding: 10px;
    margin-bottom: 6px;
    border-radius: 5px;
    word-wrap: break-word;
}

/* close button at bottom */
#close-task-list {
    align-self: flex-end;
    margin-top: 10px;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.task-info {
    flex: 1;
    overflow-wrap: break-word;
}

/* Completed task style */
.task-item.completed {
    opacity: 0.6;
}

.task-item.completed strong {
    text-decoration: line-through;
}

/* Button styles */
.task-actions {
    display: flex;
    gap: 8px;
}

.complete-task {
    background: #72d6a7;
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.complete-task:hover {
    background: #39c382;
}

.delete-task {
    background: #ff4d4d;
    border: none;
    color: white;
    font-size: 16px;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.delete-task:hover {
    background: #ff0000;
}

.edit-task {
    background: #66CEED;
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.edit-task:hover {
    background: #22b8e5;
}
