body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

h1 {
    text-align: center;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #444;
    margin-bottom: 20px;
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.nav-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #f0f0f0;
}

.nav-btn.active {
    color: #2196F3;
    background-color: #e3f2fd;
    font-weight: bold;
}

/* 表单样式 */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="password"],
input[type="datetime-local"],
textarea,
select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

button {
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #1976D2;
}

/* 循环选项样式 */
#recurrence-options {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
    background-color: #fafafa;
}

.recurrence-detail {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* 消息样式 */
.error {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

.success {
    color: #388e3c;
    background-color: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

/* 任务列表样式 */
#task-list {
    list-style: none;
    padding: 0;
}

#task-list li {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#task-list li:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

#task-list strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

#task-list small {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 3px;
}

/* 小提示文本样式 */
small {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
    }
}

/* 任务列表头部样式 */
.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* 任务过滤器样式 */
.task-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.filter-btn.active {
    background-color: #2196F3;
    color: white;
    border-color: #2196F3;
}

/* 任务列表样式增强 */
.task-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.task-list li {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.task-list li:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.task-list li.one-time {
    border-left: 4px solid #4CAF50;
}

.task-list li.recurring {
    border-left: 4px solid #2196F3;
}

.task-list li.notified {
    border-left: 4px solid #9E9E9E;
    opacity: 0.8;
}

/* 控制按钮样式 */
.controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

/* 响应式设计补充 */
@media (max-width: 600px) {
    .tasks-header {
        flex-direction: column;
        gap: 10px;
    }

    .task-filters {
        width: 100%;
        justify-content: space-between;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
        padding: 8px;
    }
}

/* 次要按钮样式 */
.secondary-btn {
    background-color: #757575;
}

.secondary-btn:hover {
    background-color: #616161;
}
