/* General layout */
body {
    font-family: Arial, sans-serif;
    background: #6a82a7;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.app {
    margin-top: 50px;
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 400px;
}

.container {
    width: 100%;
}

/* Input wrapper */
#wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#wrapper input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

#add-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

#add-btn:hover {
    background: #43a047;
}

/* Tasks section */
.tasks {
    margin-top: 10px;
}

#pending-tasks {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

/* Individual task */
.task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    border: 1px solid #eee;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.task span {
    flex: 1;
    margin-left: 8px;
}

/* Checkbox */
.task-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#count-value{
    color: blue;
}

/* Strike through when checked */
.task-check:checked + span {
    text-decoration: line-through;
    color: #888;
}

/* Delete button */
.delete-btn {
    background: #e53935;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.delete-btn:hover {
    background: #c62828;
}

/* Error message */
.error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    display: none; /* hide by default */
}
