/* 小红书私信推送数据展示程序 - 自定义样式 */

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f7fa;
}

/* 表格样式 */
table {
    font-size: 14px;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: center;
}

table td {
    text-align: center;
    vertical-align: middle;
}

/* 卡片样式 */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* 按钮样式 */
.btn {
    border-radius: 4px;
    font-weight: 500;
}

/* 搜索框样式 */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .table-responsive {
        font-size: 12px;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* 消息内容截断样式 */
.message-content {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
}

.message-content:hover {
    text-decoration: underline;
}

/* 状态标签样式 */
.status-badge {
    padding: 0.25em 0.5em;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-unread {
    background-color: #ffc107;
    color: #000;
}

.status-read {
    background-color: #198754;
    color: #fff;
}

/* 类型标签样式 */
.type-badge {
    padding: 0.25em 0.5em;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.type-text {
    background-color: #0d6efd;
    color: #fff;
}

.type-image {
    background-color: #6f42c1;
    color: #fff;
}

.type-video {
    background-color: #dc3545;
    color: #fff;
}

.type-voice {
    background-color: #20c997;
    color: #fff;
}

.type-other {
    background-color: #6c757d;
    color: #fff;
}

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

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.page-link {
    color: #0d6efd;
}

.page-link:hover {
    color: #0a58ca;
}

/* 图表容器样式 */
canvas {
    max-height: 300px;
}

/* 统计卡片样式 */
.stat-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
