/* ERP商品聚合器样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f8f9fa;
}

/* 顶部导航 */
.navbar {
    background-color: #2c3e50 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: bold;
    color: #ecf0f1 !important;
}

.nav-link {
    color: #bdc3c7 !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ecf0f1 !important;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #34495e;
    color: white;
    border-radius: 10px 10px 0 0 !important;
    font-weight: bold;
}

/* 按钮样式 */
.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-success {
    background-color: #27ae60;
    border-color: #27ae60;
}

.btn-success:hover {
    background-color: #229954;
    border-color: #229954;
}

/* 表格样式 */
.table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #34495e;
    color: white;
    border: none;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* 表单样式 */
.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, .25);
}

/* 侧边栏 */
.sidebar {
    background-color: #34495e;
    min-height: calc(100vh - 56px);
    padding: 20px 0;
}

.sidebar .nav-link {
    color: #ecf0f1 !important;
    padding: 10px 20px;
    border-radius: 0;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: #2c3e50;
    color: #3498db !important;
}

/* 统计卡片 */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.stats-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.stats-card p {
    margin: 0;
    opacity: 0.9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }

    .stats-card {
        margin-bottom: 15px;
    }
}

/* 加载动画 */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 提示消息 */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* 分页 */
.pagination {
    justify-content: center;
}

.page-link {
    color: #3498db;
}

.page-link:hover {
    color: #2980b9;
}

.page-item.active .page-link {
    background-color: #3498db;
    border-color: #3498db;
}