.daily-task-list {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.dtl-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.dtl-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.dtl-date {
    color: #666;
    font-size: 16px;
}

.dtl-weekday {
    color: #2c3e50;
    font-weight: bold;
}

.dtl-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.dtl-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    position: relative;
    transition: all 0.3s ease;
}

.dtl-tab.active {
    color: #3498db;
    font-weight: bold;
}

.dtl-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3498db;
}

.dtl-tab:hover {
    color: #3498db;
}

.dtl-tab-content {
    animation: fadeIn 0.3s ease;
}

.hidden {
    display: none;
}

.dtl-add-task {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#new-task {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

#task-priority {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

#add-task-btn {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#add-task-btn:hover {
    background-color: #2980b9;
}

.dtl-tasks {
    margin-bottom: 20px;
}

.dtl-task {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    border-left: 4px solid #ddd;
}

.dtl-task.low {
    border-left-color: #2ecc71;
}

.dtl-task.medium {
    border-left-color: #f39c12;
}

.dtl-task.high {
    border-left-color: #e74c3c;
}

.dtl-task.completed .task-text {
    text-decoration: line-through;
    color: #999;
}

.dtl-task input[type="checkbox"] {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.task-text {
    flex: 1;
    font-size: 16px;
    transition: all 0.3s ease;
}

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

.task-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.edit-btn {
    color: #3498db;
}

.edit-btn:hover {
    color: #2980b9;
}

.delete-btn {
    color: #e74c3c;
}

.delete-btn:hover {
    color: #c0392b;
}

.dtl-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.dtl-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#complete-all {
    background-color: #2ecc71;
    color: white;
}

#complete-all:hover {
    background-color: #27ae60;
}

#clear-completed {
    background-color: #95a5a6;
    color: white;
}

#clear-completed:hover {
    background-color: #7f8c8d;
}

.dtl-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.dtl-history-filters {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

#history-month {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#show-history {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.history-date-group {
    margin-bottom: 30px;
}

.history-date-header {
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.dtl-guide {
    line-height: 1.6;
    color: #333;
}

.dtl-guide-section {
    margin-bottom: 20px;
}

.dtl-guide h4 {
    color: #3498db;
    margin-bottom: 10px;
}

.dtl-guide ul {
    margin-left: 20px;
}

.task-edit-input {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
}

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

/* 响应式设计 */
@media (max-width: 600px) {
    .dtl-add-task {
        flex-direction: column;
    }
    
    .dtl-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .dtl-actions button {
        width: 100%;
    }
    
    .dtl-tabs {
        flex-wrap: wrap;
    }
    
    .dtl-tab {
        flex: 1;
        text-align: center;
    }
}
