/* 自定义样式 */

/* 全局样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 导航栏 */
.navbar-brand {
    font-weight: 600;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

/* 文件列表项 */
.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,.125);
    transition: background-color 0.2s;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Modifier 表单样式 */
.modifier-form {
    border-left: 4px solid #0d6efd;
}

.modifier-title {
    color: #0d6efd;
}

/* Data 字段样式 */
.data-field-item {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #dee2e6;
}

/* JSON 预览样式 */
pre {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .row.g-3 > [class*="col-"] {
        margin-bottom: 0.5rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 表单控件焦点样式 */
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 加载动画 */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 自定义复选框样式 */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* 代码块样式 */
.hljs {
    background: transparent !important;
    padding: 0 !important;
}

/* 文件列表项选中状态 */
.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* 警告和提示样式 */
.alert-info {
    background-color: #e7f1ff;
    border-color: #cfe2ff;
    color: #084298;
}