/* Moving Gradient Background */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(-45deg, #6a11cb, #2575fc, #ff00cc, #333399);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header { margin-top: 40px; text-align: center; }

.container {
    width: 90%;
    max-width: 900px;
    padding: 20px;
}

/* 3D Glassmorphism */
.glass-3d {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

/* Progress Bar */
.progress-bar-bg {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #00ff88;
    transition: width 0.5s ease;
}

/* Form Elements */
form { display: flex; flex-direction: column; }
.form-row { display: flex; gap: 15px; }
.form-row div { flex: 1; }

label { font-size: 14px; margin-bottom: 5px; display: block; margin-top: 10px; }

input, select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #333;
    box-sizing: border-box;
}

button {
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* Lists Styling */
.lists-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
ul { list-style: none; padding: 0; }

li {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.task-info strong { display: block; }
.task-info small { opacity: 0.8; }

.actions button {
    margin: 0 2px;
    padding: 5px 10px;
    font-size: 12px;
}

.btn-complete { background: #28a745; }
.btn-delete { background: #dc3545; }
.btn-edit { background: #ffc107; color: black; }

/* Priorities */
.high { border-left: 5px solid #ff4d4d; }
.medium { border-left: 5px solid #ffa500; }
.low { border-left: 5px solid #00ff88; }

@media (max-width: 600px) {
    .lists-wrapper { grid-template-columns: 1fr; }
}