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

body {
    min-height: 100vh;
    background: linear-gradient(45deg, #8A2BE2, #FF69B4);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    filter: blur(30px);
    z-index: -1;
}

.container::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 400px;
    max-width: 90vw;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

h1 {
    color: white;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 1px;
    font-weight: 500;
}

.input-container {
    display: flex;
    margin-bottom: 20px;
}

input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px 0 0 10px;
    color: white;
    font-size: 16px;
    outline: none;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#add-btn {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 0 10px 10px 0;
    color: white;
    padding: 0 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#add-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.task-list {
    list-style: none;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.3);
}

.task-text {
    color: white;
    font-size: 16px;
}

.task-actions button {
    background: none;
    border: none;
    color: white;
    margin-left: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.task-actions button:hover {
    opacity: 1;
}

.completed {
    opacity: 0.6;
}

.completed .task-text {
    text-decoration: line-through;
}

@media (max-width: 480px) {
    .glass-card {
        width: 85vw;
        padding: 20px;
    }
}
