/* 仪表板自定义样式 */

/* 渐变背景 */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 卡片悬停效果 */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

/* 统计卡片样式 */
.stats-card {
    border-radius: 15px;
    overflow: hidden;
}

.stats-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* 进度条动画 */
.progress-bar {
    transition: width 1s ease-in-out;
}

/* 趋势图样式 */
.trend-bar {
    transition: all 0.3s ease;
    cursor: pointer;
}

.trend-bar:hover {
    opacity: 1 !important;
    transform: scaleY(1.1);
}

/* 列表项悬停效果 */
.list-group-item {
    transition: background-color 0.2s ease;
}

.list-group-item:hover {
    background-color: rgba(0,0,0,0.02);
}

/* 快速操作按钮 */
.quick-action-btn {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 徽章样式 */
.badge {
    font-size: 0.75em;
    padding: 0.4em 0.6em;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-body .row.g-0 > div {
        border-bottom: 1px solid #dee2e6;
        border-right: none !important;
    }
    
    .card-body .row.g-0 > div:last-child {
        border-bottom: none;
    }
}

/* 数字动画效果 */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.h4, .h5 {
    animation: countUp 0.6s ease-out;
}

/* 图标颜色调整 */
.text-primary { color: #667eea !important; }
.text-success { color: #28a745 !important; }
.text-info { color: #17a2b8 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }

/* 背景透明度调整 */
.bg-opacity-10 {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

/* 卡片头部样式 */
.card-header.bg-light {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef;
}

/* 阴影效果 */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* 侧边栏样式优化 */
.sidebar {
    min-height: 100vh;
}

.sidebar .nav-link {
    color: #495057;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 2px 8px;
    padding: 8px 12px;
}

.sidebar .nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.sidebar .nav-link.active {
    background-color: #007bff;
    color: white;
}

.sidebar .nav-link.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* 用户信息卡片样式 */
.user-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    margin-left: 8px;
    margin-right: 8px;
}

.points-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 500;
}

/* 侧边栏标题样式 */
.sidebar-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 退出登录按钮特殊样式 */
.sidebar .nav-link.text-danger {
    font-weight: 500;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.sidebar .nav-link.text-danger:hover {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

/* 渠道选择下拉框透明背景 */
.form-control, .form-select {
    background-color: transparent !important;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    background-color: transparent !important;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 确保下拉选项在打开时有可读的背景 */
.form-select option {
    background-color: #ffffff;
    color: #212529;
}