* { box-sizing: border-box; font-family: 'Kanit', sans-serif; }

body {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0;
}

.container {
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2); padding: 40px; border-radius: 25px;
    width: 90%; max-width: 450px; box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
}

h2 { color: #00ffcc; text-shadow: 0 0 10px #00ffcc; text-align: center; margin-bottom: 30px; }

.input-group { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; }

input[type="text"] {
    flex: 1; background: rgba(255, 255, 255, 0.15); border: 2px solid #ff00ff;
    padding: 12px; border-radius: 12px; color: white; outline: none;
}

.custom-file-upload {
    padding: 12px; cursor: pointer; color: #00ffcc; border: 2px solid #00ffcc;
    border-radius: 12px; transition: 0.3s;
}

#addBtn {
    background: #00ffcc; color: #1a1a1a; border: none; padding: 12px 20px;
    border-radius: 12px; cursor: pointer; font-weight: bold;
}

li {
    background: rgba(255, 255, 255, 0.05); margin-bottom: 10px; padding: 12px;
    border-radius: 12px; color: white; display: flex; justify-content: space-between;
    align-items: center; border-left: 4px solid #ff00ff;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

li.done {
    opacity: 0.6;
    transform: scale(0.98); 
}

.task-img { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; margin-right: 15px; border: 1px solid #00ffcc; }

.done span { text-decoration: line-through; color: rgba(255,255,255,0.3); }

.volume-control { margin: 20px 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #00ffcc; }

#clearBtn { width: 100%; background: transparent; color: #ff00ff; border: 2px solid #ff00ff; padding: 12px; border-radius: 12px; cursor: pointer; }

.input-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.task-content { display: flex; flex-direction: column; flex: 1; text-align: left; }
.main-task { font-weight: 500; font-size: 1.1rem; color: #00ffcc; }
.sub-task { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-top: 4px; border-left: 2px solid rgba(0, 255, 204, 0.3); padding-left: 8px; }
li { align-items: flex-start !important; }

.delete-btn { margin-top: 5px; }
