* {
    box-sizing: border-box;
}

.heading {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 50px 0;
}

.add-task {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 15px;
    margin-bottom: 50px;
}

input {
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 15px 10px;
    min-width: 500px;
    font-size: 17px;
}

.btn {
    padding: 18px 5px;
    background: #dc3545;
    border: none;
    color: #fff;
    border-radius: 8px;
    min-width: 150px;
    font-size: 17px;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
}

table {
    border-collapse: collapse;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    table-layout: fixed;
}

th,
td {
    font-family: Arial, sans-serif;
    font-size: 18px;
    text-align: center;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    font-family: sans-serif;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.2s ease;
}

.btn-delete {
    background-color: #ff0000;
}
.btn-delete:hover {
    background-color: #cc0000;
}
.btn-delete .icon-box {
    color: #ff0000;
}

.btn-done {
    background-color: #008000;
}
.btn-done:hover {
    background-color: #006600;
}
.btn-done .icon-box {
    color: #008000;
}

.icon-box {
    background-color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.btn-delete .icon-box {
    border-radius: 4px 10px 10px 4px;
}
.btn-done .icon-box {
    border-radius: 50%;
}

.action-cell {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    border-bottom: none !important;
}

.edit-input {
    padding: 6px 10px;
    font-size: 16px;
    width: 90%;
    border: 2px solid #2196f3;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
}
