/* MPSTATS AI客户端样式 */
:root {
    --primary-color: #4a90d9;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
}

/* 登录页面 */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 卡片样式 */
.card {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: none;
    border-radius: 10px;
}

.card-header {
    background: #f8f9fa;
    font-weight: 600;
    border-radius: 10px 10px 0 0 !important;
}

/* 列表组 */
.list-group-item-action {
    cursor: pointer;
    transition: all 0.2s;
}

.list-group-item-action:hover {
    background: #e3f2fd;
}

.list-group-item-action.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.list-group-item i {
    margin-right: 8px;
}

/* 状态徽章 */
.badge-pending { background: #ffc107; color: #000; }
.badge-running { background: #17a2b8; }
.badge-completed { background: #28a745; }
.badge-failed { background: #dc3545; }

/* 表格 */
.table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* 按钮组 */
.btn-group .btn {
    border-radius: 0;
}
.btn-group .btn:first-child {
    border-radius: 5px 0 0 5px;
}
.btn-group .btn:last-child {
    border-radius: 0 5px 5px 0;
}

/* 导航栏 */
.navbar-brand {
    font-weight: bold;
}

/* 分析面板 */
.analysis-panel {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 旋转动画 */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 进度条容器 */
.progress {
    border-radius: 12px;
    background: #e9ecef;
}

.progress-bar {
    border-radius: 12px;
    font-weight: 600;
}

/* 选择框美化 */
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 217, 0.25);
}

/* 品类信息标签 */
.badge {
    font-weight: 500;
    padding: 5px 10px;
}

/* 功能卡片 */
.function-card {
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    height: 100%;
}

.function-card h5 {
    margin-bottom: 10px;
    font-weight: 600;
}

.function-card h5 i {
    margin-right: 8px;
}

.function-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.bg-primary-light {
    background-color: #e3f2fd;
    border-color: #bbdefb;
}

.bg-success-light {
    background-color: #e8f5e9;
    border-color: #c8e6c9;
}

/* 工作流图示 */
.workflow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.workflow-step {
    background: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 0.85rem;
    font-weight: 500;
}

.workflow-diagram i.bi-arrow-right {
    color: #666;
}

/* 模态框遮罩 */
.modal.show {
    background-color: rgba(0,0,0,0.5);
}

/* 响应式 */
@media (max-width: 768px) {
    .login-box {
        margin: 20px;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        border-radius: 5px !important;
        margin-bottom: 5px;
    }

    .function-card {
        margin-bottom: 15px;
    }

    .workflow-diagram {
        flex-direction: column;
    }
}

