* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-image: linear-gradient(purple,pink);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: white;
    width: 100%;
    max-width: 600px;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: blueviolet;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.back-link {
    color: blueviolet;
    text-decoration: none;
    font-size: 14px;
    width: fit-content;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.8;
}

.title {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
}

.form {
    display: flex;
    gap: 12px;
}

.input-item {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.input-item:focus {
    outline: none;
    border-color: blueviolet;
}

.btn-add {
    background-image: linear-gradient(to right, pink, blueviolet);
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-add:hover {
    background-image: linear-gradient(purple, pink);
}

.list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: #f9fafb;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.list-item:hover {
    background-color: #f3f4f6;
}

.list-item.completed {
    opacity: 0.5;
}

.list-item.completed span,
.list-item.completed label {
    text-decoration: line-through;
}

.list-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.list-item label {
    flex: 1;
    cursor: pointer;
    user-select: none;
}

.list-item span {
    flex: 1;
}

.list-item button {
    background: none;
    border: none;
    padding: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.trash-icon {
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
}

.trash-icon:hover {
    color: #dc2626;
}

.alert {
    background-color: #dc2626;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-text {
    flex: 1;
}

.btn-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.btn-close:hover {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    .logo-container {
        display: none;
    }

    .title {
        font-size: 24px;
    }

    .form {
        flex-direction: column;
    }

    .btn-add {
        width: 100%;
    }
}


