/* 自定义样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}

.h2,
h2 {
    font-size: 20px;
}

.h5,
h5 {
    font-size: 16px;
    margin: 3px 0;
}

.navbar-brand {
    font-weight: bold;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.table tbody tr:hover td {
    background-color: rgba(214, 245, 161, 0.1) !important;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn {
    font-size: 12px;
}

.modal-lg {
    max-width: 800px;
}

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

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

.text-muted {
    color: #6c757d !important;
}

.badge {
    font-size: 0.75em;
}

nav {
    padding-top: 1em;
}

.pagination {
    margin-bottom: 0;
    font-size: 12px;
}

.pagination a {
    font-size: 12px;
}

/* 响应式表格 */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.125rem 0.25rem;
        font-size: 0.75rem;
    }
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 成功/错误消息 */
.alert {
    border-radius: 0.375rem;
}

/* 表单验证 */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* 表格行选择 */
.table tbody tr.selected {
    background-color: #e3f2fd !important;
    border-left: 3px solid #007bff;
}

/* 选中行的hover效果 */
.table tbody tr.selected:hover {
    background-color: #bbdefb !important;
}

/* 模态框动画 */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* 只读字段样式 */
.form-control[readonly] {
    background-color: #f8f9fa !important;
}

/* 只读字段通用样式 */
.readonly-field {
    background-color: #f8f9fa !important;
}

/* 输入框字体大小 */
.form-control,
.form-select {
    font-size: 12px;
}

/* 编辑窗口布局优化 */
.modal-body .row {
    margin-bottom: 1rem;
}

.modal-body hr {
    margin: 1.5rem 0;
    border-color: #dee2e6;
}

/* 排序功能样式 */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable:hover {
    background-color: #f8f9fa;
}

.sort-indicator {
    margin-left: 5px;
    font-size: 0.8em;
    color: #6c757d;
}

.sort-indicator.asc::after {
    content: "▲";
    color: #007bff;
}

.sort-indicator.desc::after {
    content: "▼";
    color: #007bff;
}

.sort-indicator::after {
    content: "⇅";
    color: #6c757d;
}

/* 分页信息样式 */
.pagination-info {
    font-size: 0.9em;
    color: #6c757d;
    padding-top: 1em;
}

.enum-summary {
    font-size: 0.9em;
    color: #6c757d;
    padding-top: 1em;
}