/* 主体样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 任务优先级颜色 */
.priority-high {
    border-left: 4px solid #ef4444;
}

.priority-medium {
    border-left: 4px solid #f59e0b;
}

.priority-low {
    border-left: 4px solid #10b981;
}

.priority-none {
    border-left: 4px solid #94a3b8;
}

/* 已完成任务样式 */
.task-completed {
    opacity: 0.7;
}

.task-completed .task-title {
    text-decoration: line-through;
    color: #64748b;
}

/* 过滤按钮激活状态 */
.filter-btn.active {
    background-color: #3b82f6 !important;
    color: white !important;
}

/* 任务卡片悬停效果 */
.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

/* 回收站任务样式 */
.trash-task {
    background-color: #fef2f2;
}

/* 进度条样式 */
.progress-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 图表容器 */
.chart-container {
    position: relative;
    height: 200px;
    width: 100%;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* 响应式设计优化 */
@media (max-width: 1024px) {
    .container {
        padding: 1rem;
    }
    
    .flex.flex-col.lg\:flex-row {
        flex-direction: column;
    }
    
    .lg\:w-1\/3, .lg\:w-2\/3 {
        width: 100%;
    }
}

/* 加载动画 */
.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 倒计时样式 */
.countdown-warning {
    color: #f59e0b;
    font-weight: 500;
}

.countdown-expired {
    color: #ef4444;
    font-weight: 500;
}

/* 表单验证错误 */
.form-error {
    border-color: #ef4444 !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}