/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(to right, #eef2f3, #ffffff);
    min-height: 100vh;
    padding: 2rem;
}

header nav {
    text-align: center;
    margin-bottom: 2rem;
}

header nav h1 {
    font-size: 2.5rem;
    color: #333;
}

main {
    max-width: 600px;
    margin: auto;
    background-color: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Input Section */
.action {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

#inputBox {
    flex: 1;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    outline: none;
    transition: border 0.3s;
}

#inputBox:focus {
    border: 1px solid #333;
}

.action button {
    background-color: #333;
    color: white;
    border: none;
    padding: 0 20px;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.action button:hover {
    background-color: #555;
}

/* Task Sheet */
.taskSheet .task {
    background-color: #f8f9fa;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    transition: background 0.3s;
}

.task:hover {
    background-color: #e9ecef;
}

.task p {
    flex: 1;
    font-size: 1rem;
    color: #333;
    margin-right: 10px;
    word-break: break-word;
}

.task p.checked {
    text-decoration: line-through;
    color: #999;
}

/* Task Icons */
.task i {
    margin-left: 10px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.task i:hover {
    color: #007bff;
}

/* Edit Modal */
.editModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.editModal.active {
    display: flex;
}

.modalContent {
    background-color: white;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
}

.modalContent textarea {
    width: 100%;
    height: 100px;
    resize: none;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.modalContent i {
    font-size: 1.5rem;
    margin: 0 10px;
    cursor: pointer;
    transition: color 0.3s;
}

.modalContent i:hover {
    color: #28a745;
}

.modalContent i.fa-xmark:hover {
    color: red;
}
