/* 贷后资产管理系统 - 全局样式 */
body { padding-top: 50px; font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; font-size: 14px; background: #f5f5f5; }

/* 侧边栏 */
.sidebar { position: fixed; top: 50px; bottom: 0; left: 0; z-index: 1000; display: block; padding: 20px 0; overflow-x: hidden; overflow-y: auto; background-color: #2c3e50; border-right: 1px solid #233447; }
.sidebar .nav-sidebar { margin: 0 -1px; }
.sidebar .nav-sidebar > li > a { padding: 12px 20px; color: #bdc3c7; font-size: 14px; border-left: 3px solid transparent; transition: all .2s; }
.sidebar .nav-sidebar > li > a:hover { background-color: #34495e; color: #ecf0f1; border-left-color: #3498db; }
.sidebar .nav-sidebar > li > a .fa { width: 20px; text-align: center; margin-right: 8px; }
.sidebar .nav-sidebar > li.active > a { background-color: #34495e; color: #fff; border-left-color: #3498db; font-weight: bold; }

/* 主内容区 */
.main { padding: 20px 30px; min-height: calc(100vh - 50px); }
.page-header { margin-top: 0; padding-bottom: 15px; border-bottom: 2px solid #3498db; color: #2c3e50; }
.page-header .fa { color: #3498db; margin-right: 8px; }

/* 统计卡片 */
.stat-card { background: #fff; border-radius: 6px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.1); border-left: 4px solid #3498db; transition: transform .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,.15); }
.stat-card.green { border-left-color: #2ecc71; }
.stat-card.orange { border-left-color: #f39c12; }
.stat-card.red { border-left-color: #e74c3c; }
.stat-card.purple { border-left-color: #9b59b6; }
.stat-card .stat-icon { float: right; font-size: 48px; opacity: .15; }
.stat-card .stat-value { font-size: 28px; font-weight: bold; color: #2c3e50; }
.stat-card .stat-label { color: #95a5a6; font-size: 13px; margin-top: 5px; }

/* 表格增强 */
.table thead th { background: #f8f9fa; border-bottom: 2px solid #dee2e6; font-weight: 600; color: #495057; }
.table tbody tr:hover { background-color: #f5f7fa; }
.table .btn-group-sm > .btn { padding: 2px 8px; font-size: 12px; }

/* 状态标签 */
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.status-badge.pending { background: #fff3cd; color: #856404; }
.status-badge.processing { background: #cce5ff; color: #004085; }
.status-badge.success { background: #d4edda; color: #155724; }
.status-badge.danger { background: #f8d7da; color: #721c24; }
.status-badge.info { background: #d1ecf1; color: #0c5460; }

/* 登录页 */
.login-page { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { background: #fff; border-radius: 10px; padding: 40px; width: 400px; box-shadow: 0 15px 35px rgba(0,0,0,.2); }
.login-box h3 { text-align: center; color: #333; margin-bottom: 30px; }
.login-box .form-control { height: 42px; border-radius: 6px; }
.login-box .btn-login { width: 100%; height: 42px; border-radius: 6px; font-size: 16px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; color: #fff; }
.login-box .btn-login:hover { opacity: .9; }

/* 面板增强 */
.panel { box-shadow: 0 1px 3px rgba(0,0,0,.08); border: 1px solid #e8e8e8; }
.panel-heading { font-weight: 600; }
.panel-primary > .panel-heading { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-color: #667eea; }

/* 面包屑 */
.breadcrumb { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); }

/* 标签页 */
.nav-tabs > li.active > a { border-bottom-color: #3498db; color: #3498db; font-weight: 600; }

/* 搜索栏 */
.search-bar { background: #fff; padding: 15px 20px; border-radius: 6px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* 操作按钮组 */
.action-bar { margin-bottom: 15px; }
.action-bar .btn { margin-right: 5px; }

/* 详情页 */
.detail-table th { width: 120px; background: #f8f9fa; text-align: right; padding-right: 15px; }
.detail-table td { padding-left: 15px; }

/* 图表容器 */
.chart-container { background: #fff; padding: 20px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 20px; }

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar { position: relative; top: 0; width: 100%; min-height: auto; }
    .main { margin-left: 0 !important; padding: 15px; }
    .stat-card .stat-value { font-size: 22px; }
}
