body {
    background-color: #40213e;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    box-sizing: border-box;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

h1 {
    margin: 0;
    font-size: clamp(40px, 9vw, 100px);
    font-weight: bold;
    text-align: center;
    color: white;
}

.task-form {
    display: flex;
    gap: 12px;
    width: 100%;
}

input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 10px;
    border: 2px solid #c81361;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.add-btn {
    flex-shrink: 0;
    padding: 10px;
    width: 100px;
    height: 40px;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    background-color: #c81361;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.add-btn:hover {
    background-color: #a0104a;
}

table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

table:has(tbody:empty) {
    display: none;
}

thead {
    background-color: #8b556d;
    color: white;
}

th {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #a0104a;
}

th:first-child {
    width: 60px;
}

th:nth-child(2) {
    width: 35%;
}

th:nth-child(3) {
    width: 15%;
}

th:nth-child(4) {
    width: 20%;
}

th:nth-child(5) {
    width: 20%;
}

tbody {
    background-color: rgb(230, 222, 222);
}

tbody tr:hover {
    background-color: #f5f5f5;
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 12px 15px;
    text-align: center;
    color: #333;
    font-size: 16px;
    overflow-wrap: break-word;
}

.id-cell {
    text-align: left;
}

.id-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

tbody tr:nth-child(even) {
    background-color: #fafafa;
}

tbody tr:nth-child(even):hover {
    background-color: #f0f0f0;
}

.delete-btn {
    visibility: hidden;
    color: white;
    font-size: 14px;
    font-weight: bold;
    background-color: #ff0000;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
}

tbody tr:hover .delete-btn {
    visibility: visible;
    transition: visibility 0.2s;
}

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

.timer-time {
    font-variant-numeric: tabular-nums;
}

.timer-btn {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #c81361;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.timer-btn:hover {
    background-color: #a0104a;
}

.pomodoro-btn {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 2px solid #c81361;
    border-radius: 50%;
    background-color: white;
    color: #c81361;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pomodoro-btn:hover {
    background-color: #fff5f8;
}

.pomodoro-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    margin-top: 6px;
    font-size: 12px;
}

.pomodoro-time {
    font-weight: bold;
    font-variant-numeric: tabular-nums;
}

.pomodoro-time.focus {
    color: #c81361;
}

.pomodoro-time.break {
    color: #2e7d5b;
}

.pomodoro-count {
    color: #666;
}

.notice {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: #fff5f8;
    border-left: 4px solid #c81361;
    border-radius: 10px;
    color: #333;
}

.notice[hidden] {
    display: none;
}

.notice span {
    flex: 1;
}

.notice-close {
    flex-shrink: 0;
    border: none;
    background: none;
    color: #c81361;
    font-size: 16px;
    cursor: pointer;
}

.status-cell {
    padding: 12px 15px;
    transition: background-color 0.2s ease;
    border-radius: 5px;
}

.status-cell:hover {
    background-color: #fff5f8 !important;
    cursor: pointer;
    font-weight: bold;
}

.status-dropdown {
    padding: 8px 12px;
    border: 2px solid #c81361;
    border-radius: 5px;
    background-color: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
}
@media (max-width: 600px) {
    th,
    td,
    .status-cell {
        padding: 10px 4px;
        font-size: 12px;
    }

    th:first-child {
        width: 30px;
    }

    th:nth-child(3) {
        width: 17%;
    }

    th:nth-child(4) {
        width: 22%;
    }

    th:nth-child(5) {
        width: 24%;
    }

    .timer-content {
        flex-wrap: wrap;
        gap: 4px;
    }

    .timer-time {
        width: 100%;
    }

    .pomodoro-info {
        flex-direction: column;
        font-size: 11px;
    }

    .status-dropdown {
        padding: 4px;
    }
}
