* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    /* 渐变背景色 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    width: 80%;
    margin: 40px auto;
    /* 磨砂玻璃效果和渐变边框 */
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 32px 24px;
    transition: box-shadow 0.3s cubic-bezier(0.4,0,0.2,1), background 0.3s cubic-bezier(0.4,0,0.2,1);
}

h1 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(102,126,234,0.25);
    border-bottom: none;
    padding-bottom: 10px;
    margin-bottom: 24px;
    letter-spacing: 1px;
    font-weight: 700;
    transition: color 0.3s;
}

.form-group {
    margin-bottom: 22px;
    transition: background 0.3s;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.7);
    box-shadow: 0 2px 8px rgba(102,126,234,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 2px rgba(118,75,162,0.15);
    outline: none;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(102,126,234,0.15);
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}
button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 8px 32px rgba(102,126,234,0.18);
    transform: translateY(-2px) scale(1.03);
}

.success {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #d6e9c6;
    border-radius: 4px;
}

.error {
    background-color: #f2dede;
    color: #a94442;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ebccd1;
    border-radius: 4px;
}

.links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.links a {
    display: inline-block;
    margin-right: 15px;
    color: #337ab7;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

small {
    color: #777;
    display: block;
    margin-top: 5px;
}

.template-download {
    margin-top: 5px;
}

.template-download a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    padding: 3px 8px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.template-download a:hover {
    text-decoration: underline;
    background-color: #e9ecef;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 98%;
        padding: 10px;
    }
    
    button {
        width: 100%;
    }
}

/* 任务列表样式 */
.task-list {
    margin-top: 20px;
    overflow-x: auto;
}

.task-list table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.7);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(102,126,234,0.08);
    transition: box-shadow 0.3s;
}

.task-list th, .task-list td {
    padding: 14px 10px;
    text-align: left;
    border: none;
    transition: background 0.3s;
}

.task-list th {
    background-color: #f5f5f5;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

/* 状态标签样式 */
.status-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.status-pending { background-color: #ffd700; }
.status-running { background-color: #90ee90; }
.status-paused { background-color: #ff8c00; }
.status-completed { background-color: #d3d3d3; }

/* 进度条样式 */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.progress-bar span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    white-space: nowrap;
}

/* 按钮样式 */
.btn {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin: 2px;
    color: white;
}

.btn-info { background-color: #17a2b8; }
.btn-success { background-color: #28a745; }
.btn-warning { background-color: #ffc107; color: #000; }
.btn-primary { background-color: #007bff; }

.btn:hover {
    opacity: 0.8;
} 