/* 多模态AI知识库及智能体应用系统样式 */

/* 侧边栏样式 */
#sidebar {
    min-height: 100vh;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    color: #adb5bd;
    margin-bottom: 5px;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    color: #fff;
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #0d6efd;
}

.sidebar .nav-link i {
    margin-right: 8px;
}

.system-title {
    padding: 10px 0;
}

/* 内容区域 */
.container-fluid {
    padding: 0;
}

main {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

/* 卡片样式 */
.card {
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* 表格样式 */
.table thead th {
    border-top: none;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* 按钮样式 */
.btn-group-sm > .btn,
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.76563rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* 表单样式 */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-range::-webkit-slider-thumb {
    background-color: #0d6efd;
}

.form-range::-moz-range-thumb {
    background-color: #0d6efd;
}

.form-range::-ms-thumb {
    background-color: #0d6efd;
}

/* 图表容器 */
.chart-container {
    position: relative;
}

/* 进度条 */
.progress {
    height: 10px;
    border-radius: 5px;
}

/* 徽章 */
.badge {
    font-weight: 500;
}

/* 搜索结果样式 */
.search-result-item {
    transition: all 0.3s ease;
}

.search-result-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        z-index: 100;
        padding-top: 1rem;
        width: 100%;
        height: auto;
    }
    
    main {
        margin-top: 60px;
    }
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* 特殊颜色 */
.bg-gradient-primary {
    background: linear-gradient(180deg, #4e73df 10%, #2e59d9 100%);
    color: #fff;
}

.bg-gradient-success {
    background: linear-gradient(180deg, #1cc88a 10%, #13855c 100%);
    color: #fff;
}

.bg-gradient-info {
    background: linear-gradient(180deg, #36b9cc 10%, #258391 100%);
    color: #fff;
}

.bg-gradient-warning {
    background: linear-gradient(180deg, #f6c23e 10%, #dda20a 100%);
    color: #fff;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
} 