/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 50%, #a18cd1 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 154, 158, 0.3) 0%, rgba(161, 140, 209, 0.3) 50%, rgba(122, 231, 199, 0.3) 100%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.3);
}

/* Header Styles */
header {
    text-align: center;
    padding: 30px 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff9a9e, #a18cd1, #7ae7c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#taskInput {
    width: 70%;
    padding: 12px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    outline: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#addTaskBtn {
    padding: 12px 25px;
    border: none;
    border-radius: 0 30px 30px 0;
    background: linear-gradient(90deg, #a18cd1, #7ae7c7);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#addTaskBtn:hover {
    background: linear-gradient(90deg, #7ae7c7, #a18cd1);
    transform: scale(1.05);
}

/* Task Filters */
.task-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: linear-gradient(90deg, #ff9a9e, #a18cd1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.4);
}

/* Task List */
.task-list {
    min-height: 300px;
}

#taskList {
    list-style: none;
}

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

.task-item:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(5px);
}

.task-item.completed {
    background: rgba(161, 140, 209, 0.3);
}

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

.task-text {
    flex-grow: 1;
    margin: 0 15px;
    word-break: break-word;
}

.task-actions {
    display: flex;
    gap: 10px;
}

.task-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: white;
    transition: all 0.2s ease;
}

.task-actions button:hover {
    transform: scale(1.2);
}

.complete-btn:hover {
    color: #7ae7c7;
}

.edit-btn:hover {
    color: #a18cd1;
}

.delete-btn:hover {
    color: #ff9a9e;
}

/* Footer Styles */
footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px;
}

.developer-info {
    flex: 1;
    min-width: 250px;
    margin-bottom: 15px;
}

.developer-info h3 {
    margin-bottom: 10px;
    color: #a18cd1;
}

.developer-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.developer-info i {
    width: 20px;
    text-align: center;
}

.task-stats {
    flex: 1;
    min-width: 250px;
    text-align: right;
}

.task-stats p {
    margin-bottom: 8px;
    font-weight: 500;
}

.task-stats span {
    font-weight: 600;
    color: #7ae7c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .input-container {
        width: 100%;
    }
    
    #taskInput {
        width: 80%;
    }
    
    .task-filters {
        flex-wrap: wrap;
    }
    
    footer {
        flex-direction: column;
    }
    
    .task-stats {
        text-align: left;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    #taskInput {
        width: 70%;
        padding: 10px 15px;
    }
    
    #addTaskBtn {
        padding: 10px 20px;
    }
    
    .task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .task-actions {
        align-self: flex-end;
    }
}