/* 自定义样式 */
.task-item {
    transition: all 0.3s ease;
}

.task-item.completed {
    opacity: 0.7;
}

.task-item:hover {
    transform: translateX(5px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* 页脚样式 */
footer {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0.01em;
}

footer p {
    line-height: 1.6;
}

/* 语言切换器样式 */
.language-switcher button {
    transition: all 0.2s ease;
    font-size: 0.85rem;
    background-color: #f8f9fa;
}

.language-switcher button.active {
    background-color: #3b82f6;
    color: white;
}

.language-switcher button:hover:not(.active) {
    background-color: #e5e7eb;
}

/* 排序和筛选样式 */
#sort-container, #filter-container {
    position: relative;
}

.sort-option, .date-range-btn {
    transition: background-color 0.2s ease;
}

.sort-option .sort-check {
    display: inline-block;
    width: 18px;
    text-align: center;
}

#sort-dropdown, #filter-panel {
    z-index: 50;
    animation: fadeIn 0.2s ease-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.date-range-btn.bg-blue-100 {
    border-color: #3b82f6;
    color: #3b82f6;
}

#filter-tags {
    transition: all 0.3s ease;
}

#filter-tags > div {
    transition: all 0.2s ease;
}

#filter-tags > div:hover {
    background-color: #dbeafe;
}

@media (max-width: 640px) {
    #sort-dropdown, #filter-panel {
        right: 0;
        width: calc(100vw - 2rem);
        max-width: 20rem;
    }
}