/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #e0f7fa, #80deea, #4dd0e1);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

/* Glass Card Design */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    padding: 25px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
    transform: translateY(-5px);
}

.title {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Input Section */
.input-container {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.task-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.task-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.add-btn {
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    background: #00796b;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.add-btn:hover {
    background: #00897b;
    transform: scale(1.05);
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: #00796b;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
}

/* Task List */
.task-list {
    list-style: none;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.task-list::-webkit-scrollbar {
    width: 6px;
}

.task-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.task-list::-webkit-scrollbar-thumb {
    background: rgba(0, 121, 107, 0.5);
    border-radius: 10px;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.task-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.task-item.completed {
    background: rgba(200, 230, 201, 0.7);
}

.task-checkbox {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00796b;
}

.task-text {
    flex: 1;
    font-size: 1rem;
    word-break: break-word;
}

.task-text.completed {
    text-decoration: line-through;
    color: #757575;
}

.delete-btn {
    background: none;
    border: none;
    color: #e53935;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.task-item:hover .delete-btn {
    opacity: 1;
}

/* Task Stats */
.task-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #333;
}

.clear-btn {
    background: none;
    border: none;
    color: #e53935;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.clear-btn:hover {
    background: rgba(229, 57, 53, 0.1);
}

/* 3D Effects */
.glass-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.task-item {
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.task-item:hover {
    transform: translateZ(10px);
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .glass-card {
        padding: 20px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .input-container {
        flex-direction: column;
    }
    
    .add-btn {
        padding: 10px;
        width: 100%;
    }
}