@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

:root {
    --primary: #ff007a;
    --secondary: #00d4ff;
    --bg-color: #050510;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
    --text-muted: #a0a0b0;
    --shadow-neon: 0 0 15px rgba(255, 0, 122, 0.5);
    --shadow-blue: 0 0 15px rgba(0, 212, 255, 0.5);
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255, 0, 122, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 40%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    position: relative;
}

/* Glassmorphism Card */
.todo-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

/* Input Section */
.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
}

input[type="text"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

#add-btn {
    background: linear-gradient(135deg, var(--primary), #b000ff);
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-neon);
}

#add-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

#add-btn:active {
    transform: translateY(0);
}

/* List Items */
.todo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.todo-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 0.4s ease forwards;
    transition: all 0.3s ease;
}

.todo-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: var(--glass-border);
}

.todo-text {
    flex: 1;
    margin-right: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.completed .todo-text {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.6;
}

.todo-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s;
    color: var(--text-muted);
}

.btn-complete:hover {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.btn-delete:hover {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    .todo-card {
        padding: 1.5rem;
    }
}
