/* 周期维护任务管理系统样式 */

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 25px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-weight: 600;
    letter-spacing: 1px;
}

.task-card {
    border-left: 4px solid #0d6efd;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
}

.task-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.task-card .card-body {
    padding: 20px;
}

.task-card .card-title {
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 10px;
}

.task-card .card-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.date-display {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: #495057;
}

.no-tasks {
    text-align: center;
    padding: 50px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.no-tasks h3 {
    color: #6c757d;
    margin-bottom: 15px;
}

.filter-section {
    margin-bottom: 25px;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#search-btn, #today-btn {
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.2s;
}

#search-btn {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#search-btn:hover {
    background-color: #0a58ca;
    border-color: #0a58ca;
    transform: translateY(-2px);
}

#today-btn {
    background-color: #6c757d;
    border-color: #6c757d;
}

#today-btn:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
}

#date-picker {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#date-picker:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .filter-section .row {
        flex-direction: column;
    }
    
    .filter-section .col-md-6 {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .date-display {
        text-align: center;
    }
    
    .task-card .row {
        flex-direction: column;
    }
    
    .task-card .col-md-4,
    .task-card .col-md-8 {
        width: 100%;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}