/* 基础样式 */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  display: flex;
  min-height: 100vh;
}

/* 左侧导航栏样式 */
.sidebar {
  width: 250px;
  background-color: #2c3e50;
  color: white;
  padding: 20px 0;
  height: 100vh;
  position: fixed;
  overflow-y: auto;
}

.sidebar-header {
  padding: 0 20px 20px 20px;
  border-bottom: 1px solid #34495e;
}

.sidebar-header input {
  width: 100%;
  padding: 8px;
  border: 1px solid #34495e;
  border-radius: 4px;
  background-color: #34495e;
  color: white;
  margin-top: 10px;
}

.user-info {
  padding: 10px 20px;
  color: #fff;
  border-bottom: 1px solid #34495e;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logout-btn {
  background-color: #e74c3c;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
}

.logout-btn:hover {
  background-color: #c0392b;
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  padding: 15px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-item:hover {
  background-color: #34495e;
}

.nav-item.active {
  background-color: #3498db;
}

.nav-item a {
  color: white;
  text-decoration: none;
  display: block;
}

/* 主内容区域样式 */
.main-content {
  flex: 1;
  margin-left: 250px;
  padding: 20px;
  background-color: #f5f5f5;
}

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

/* 表单样式 */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: bold;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

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

.controls {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.controls .form-group {
  flex: 1;
  min-width: 200px;
}

button {
  background-color: #3498db;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #2980b9;
}

button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

/* 状态提示样式 */
.status {
  margin-top: 20px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

.status.success {
  background-color: #dff0d8;
  color: #3c763d;
  display: block;
}

.status.error {
  background-color: #f2dede;
  color: #a94442;
  display: block;
}

/* 帮助文本样式 */
.help-text {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

/* 任务列表样式 */
.tasks-section {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.tasks {
  list-style: none;
  padding: 0;
}

.task-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}

.task-header {
  display: flex;
  justify-content: space-between;
  background-color: #f5f5f5;
  padding: 8px 10px;
  font-size: 14px;
}

.task-details {
  padding: 10px;
}

.task-status {
  font-weight: bold;
}

.status-0 { color: #ff9800; } /* 等待中 */
.status-1 { color: #2196F3; } /* 处理中 */
.status-2 { color: #4CAF50; } /* 已完成 */
.status-3 { color: #F44336; } /* 失败 */

.download-btn {
  display: inline-block;
  background-color: #4CAF50;
  color: white;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 10px;
}

/* 进度显示样式 */
.progress {
  margin-top: 10px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.progress-item {
  margin-bottom: 5px;
  padding: 5px;
  border-left: 3px solid #3498db;
}

.progress-error {
  color: #F44336;
  border-left-color: #F44336;
}

/* 登录页面样式 */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-title {
  text-align: center;
  margin-bottom: 20px;
}

.error-message {
  color: #dc3545;
  margin-bottom: 15px;
  text-align: center;
} 