/* Moltbot Control UI - 主样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 240px;
    background: #252525;
    padding: 20px 0;
    border-right: 1px solid #333;
    overflow-y: auto;
}

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

.sidebar-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #60a5fa;
}

/* 菜单项 */
.menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-item:hover {
    background: #333;
}

.menu-item.active {
    background: #333;
    border-left: 3px solid #60a5fa;
    padding-left: 17px;
}

.menu-item i {
    font-size: 16px;
    color: #60a5fa;
}

/* 子菜单 */
.submenu {
    padding-left: 32px;
    margin-top: 4px;
}

.submenu .menu-item {
    padding: 8px 20px 8px 0;
    font-size: 14px;
    color: #aaa;
}

.submenu .menu-item:hover {
    color: #e0e0e0;
}

.submenu .menu-item.active {
    color: #60a5fa;
    border-left: none;
    padding-left: 0;
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.content-header {
    margin-bottom: 30px;
}

.content-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.content-header p {
    color: #aaa;
    font-size: 14px;
}

/* 任务仪表板特定样式 */
.task-table {
    width: 100%;
    border-collapse: collapse;
    background: #252525;
    border-radius: 8px;
    overflow: hidden;
}

.task-table th,
.task-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.task-table th {
    background: #333;
    font-weight: bold;
}

.status-running { color: #4ade80; }
.status-completed { color: #60a5fa; }
.status-failed { color: #f87171; }

.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4ade80;
    transition: width 0.3s ease;
}

.refresh-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    margin: 10px 0;
}

.refresh-btn:hover {
    background: #2563eb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #333;
        max-height: 200px;
    }
    
    .main-content {
        padding: 15px;
    }
}