/* 主色调 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    background-color: #f5f5f5;
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: bold;
}

/* 卡片样式 */
.card {
    border-radius: 0.5rem;
    border: none;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    font-weight: 600;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* 按钮样式 */
.btn {
    border-radius: 0.25rem;
}

/* 进度条样式 */
.progress {
    height: 1.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    text-align: left;
    padding-left: 10px;
    font-weight: 600;
}

/* 列表组样式 */
.list-group-item {
    border-left: none;
    border-right: none;
}

/* 小屏幕响应式 */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* 表格样式 */
.table {
    font-size: 0.95rem;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* 表单元素样式 */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 徽章样式 */
.badge {
    font-weight: 500;
}

/* 数据分析页面的图表容器 */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
}

/* 自定义动画 */
.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* 患者详情页标签页样式 */
.nav-tabs .nav-link {
    color: var(--dark-color);
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* AI助手聊天界面样式 */
.chat-container {
    height: 400px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    max-width: 80%;
}

.chat-message-user {
    background-color: #e9ecef;
    margin-left: auto;
}

.chat-message-ai {
    background-color: #d1e7ff;
} 