* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    padding: 20px;
    background-image:
        radial-gradient(
            circle at 10% 20%,
            rgba(187, 134, 252, 0.1) 0%,
            transparent 20%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(207, 102, 121, 0.1) 0%,
            transparent 20%
        );
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #86e4fc;
    font-size: 2.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(30, 30, 30, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat {
    text-align: center;
    min-width: 100px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    background: linear-gradient(to right, #86e4fc, #03da5d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-btn:hover {
    background-color: #3d3d3d;
}

.filter-btn.active {
    background-color: #86e4fc;
    color: #121212;
}

.task-list {
    margin-top: 20px;
}

.task-item {
    background-color: rgba(45, 45, 45, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.task-item:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(187, 134, 252, 0.2);
}

.task-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #86e4fc, #03dac6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.task-item:hover::before {
    opacity: 1;
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 12px;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 8px;
}

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

.status-dropdown {
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.status-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.status-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.3);
    background-color: rgba(255, 255, 255, 0.2);
}

.option-todo {
    background-color: #cf6679;
    color: white;
}

.option-inprogress {
    background-color: #03dac6;
    color: #121212;
}

.option-completed {
    background-color: #86e4fc;
    color: #121212;
}

.option-cancelled {
    background-color: #666;
    color: white;
}

.delete-btn {
    background: none;
    border: none;
    color: #e0e0e0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.delete-btn:hover .delete-icon {
    color: #cf6679;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    border: 2px dashed rgba(102, 102, 102, 0.3);
    border-radius: 12px;
    background-color: rgba(45, 45, 45, 0.3);
}

@media (max-width: 768px) {
    .task-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .task-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .stats {
        flex-direction: column;
    }
    
    .stat {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .stats .stat:last-child {
        margin-bottom: 0;
    }
}