/* CSS重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'SimHei', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 auto;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: orange;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

header h1 {
    font-size: 2.2em;
    font-weight: 300;
    margin: 0;
}

header h1 i {
    margin-right: 12px;
    color: #3498db;
}

.header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 页脚样式 */
.footer {
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 1rem;
    text-align: center;
    font-size: 12px;
    width: 100%;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.footer-content {
    display: flex;
    color: orange;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    flex-wrap: wrap;
}

.footer a, .footer b {
    color: gray;
    text-decoration: none;
}

.footer b:hover {
    color: red;
    text-decoration: underline;
}

/* 滚动条样式 */
.table-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 表格样式优化 */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#craneTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

/* 表头居中样式 */
#craneTable thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    padding: 12px 8px;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* 表格内容居中 */
#craneTable tbody td {
    text-align: center;
    vertical-align: middle;
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

#craneTable tbody tr:hover td {
    background-color: #f8f9fa;
}

/* 搜索栏样式 */
.search-bar {
    padding: 1.2rem 2.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.search-bar input, .search-bar select {
    padding: 10px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
    background: white;
    font-family: inherit;
}

.search-bar input:focus, .search-bar select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* 复选框样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    cursor: pointer;
}

.checkbox-label .custom-checkbox {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid #95a5a6;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label:hover .custom-checkbox {
    border-color: #3498db;
    transform: scale(1.05);
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    background-color: #3498db;
    border-color: #3498db;
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 表格容器 */
.table-container {
    flex: 1;
    padding: 1rem 2.5rem;
    overflow: auto;
    min-height: 0;
    width: 100%;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 1200px;
}

th, td {
    padding: 12px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #e1e5e9;
    text-align: left;
}

th {
    background: #34495e;
    color: white;
    font-weight: 600;
    height: 40px;
    position: sticky;
    top: 0;
    z-index: 10;
}

td {
    background: #fafbfc;
}

/* 特定列居中 */
td:nth-child(1),
td:nth-child(6),
td:nth-child(7), 
td:nth-child(8),
td:nth-child(10),
td:nth-child(12) {
    text-align: center;
}

/* 操作列按钮样式 */
.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
}

.edit-btn, .delete-btn, .preview-btn, .download-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.edit-btn {
    background: #28a745;
    color: white;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.edit-btn:hover {
    background: #218838;
}

.delete-btn:hover {
    background: #c82333;
}

/* PDF预览和下载按钮样式 */
.preview-btn {
    background-color: #2196F3;
    color: white;
}

.preview-btn:hover {
    background-color: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.4);
}

.download-btn {
    background-color: #FF9800;
    color: white;
}

.download-btn:hover {
    background-color: #F57C00;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.4);
}

/* 适配小屏幕 */
@media (max-width: 768px) {
    .edit-btn, .delete-btn, .preview-btn, .download-btn {
        padding: 4px 8px;
        font-size: 11px;
        gap: 2px;
    }
}
/* 列宽设置 */
th:nth-child(1), td:nth-child(1) { width: 3.5%; }
th:nth-child(2), td:nth-child(2) { width: 8%; }
th:nth-child(3), td:nth-child(3) { width: 8%; }
th:nth-child(4), td:nth-child(4) { width: 6.5%; }
th:nth-child(5), td:nth-child(5) { width: 13%; }
th:nth-child(6), td:nth-child(6) { width: 4%; }
th:nth-child(7), td:nth-child(7) { width: 4%; }
th:nth-child(8), td:nth-child(8) { width: 5%; }
th:nth-child(9), td:nth-child(9) { width: 15.5%; }
th:nth-child(10), td:nth-child(10) { width: 4%; }
th:nth-child(11), td:nth-child(11) { width: 15.5%; }
th:nth-child(12), td:nth-child(12) { width: 8%; }

/* 斑马纹效果 */
tbody tr:nth-child(even) td {
    background-color: #f8f9fa;
}

/* 悬停效果 */
tbody tr:hover td {
    background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
    color: #2c3e50;
}

/* 悬浮标签 */
.detail-tag {
    display: none;
    position: fixed;
    background: rgba(52, 73, 94, 0.95);
    color: white;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 2px solid #ffd700;
    pointer-events: none;
    left: 20px;
}

.detail-tag div {
    margin: 4px 0;
    line-height: 1.4;
}

.detail-tag .orange-label {
    color: #ffa500 !important;
    font-weight: bold;
}

.detail-tag .white-data {
    color: white !important;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

/* 下载按钮样式 */
.action-buttons .btn-danger {
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-buttons .btn-danger:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

.action-buttons .btn-danger:active {
    background: #a53125;
    transform: translateY(0);
}

/* 分页样式 */
.pagination {
    padding: 1rem 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #e1e5e9;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background: #3498db;
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pageInfo {
    font-weight: 600;
    color: #6c757d;
}

/* 筛选组样式 */
.filter-group {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 15px;
}

.filter-group:first-child {
    margin-left: 0;
}

.filter-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    white-space: nowrap;
    margin-right: 5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    html, body {
        overflow: auto;
    }
    
    .container {
        min-height: auto;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .search-bar {
        flex-direction: column;
        gap: 10px;
        padding: 1rem;
    }
    
    .search-bar input, .search-bar select {
        width: 100%;
        min-width: auto;
    }
    
    .table-container {
        padding: 0.5rem 1rem;
        overflow-x: auto;
    }
    
    th, td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
        padding: 1rem;
    }
    
    .filter-group {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .search-bar {
        padding: 0.8rem;
    }
    
    .table-container {
        padding: 0.5rem;
    }
    
    th, td {
        padding: 6px 4px;
        font-size: 11px;
    }
    
    .btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}


/* 添加到现有的CSS文件中 */
/* 管理员模态框容器样式 */
#adminModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

#adminModal .modal-dialog {
    max-width: 900px;
    margin: 2% auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

#adminModal .modal-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: none;
}

/* 模态框头部 */
#adminModal .modal-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#adminModal .modal-title {
    font-size: 1.5em;
    font-weight: 300;
    color: orange;
    margin: 0;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
}

#adminModal .btn-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#adminModal .btn-close:hover {
    opacity: 1;
    color: #ffd700;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 模态框主体 */
#adminModal .modal-body {
    padding: 30px;
    background: #f8f9fa;
    max-height: 70vh;
    overflow-y: auto;
}

/* 模态框底部 */
#adminModal .modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* 按钮样式 */
#adminModal .btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
}

#adminModal .btn-secondary {
    background: #95a5a6;
    color: white;
}

#adminModal .btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#adminModal .btn-primary {
    background: #3498db;
    color: white;
}

#adminModal .btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

#adminModal .btn:active {
    transform: translateY(0);
}

/* 模态框表单布局优化 - 您已有的部分 */
/* 压缩行间距 */
.form-row {
    display: flex;
    gap: 12px; /* 减少间距 */
    margin-bottom: 15px; /* 压缩行间距 */
    align-items: flex-start;
}

/* 数字类型输入框 - 红色边框 */
input[type="number"].form-control,
input[type="number"].form-control:focus {
    border-color: #e74c3c; /* 红色 */
}

input[type="number"].form-control:focus {
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3); /* 红色阴影 */
}

/* 字符串类型输入框 - 橙色边框 */
input[type="text"].form-control,
input[type="text"].form-control:focus {
    border-color: #f39c12; /* 橙色 */
}

input[type="text"].form-control:focus {
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.3); /* 橙色阴影 */
}
/* 选择框保持原有颜色 */
select.form-control,
select.form-control:focus {
    border-color: #3498db; /* 蓝色 */
}

select.form-control:focus {
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}
/* 标签颜色也相应调整 */
.form-label[for*="Width"],
.form-label[for*="Height"],
.form-label[for*="maxHeight"],
.form-label[for*="towerHeadHeight"] {
    color: #e74c3c; /* 数字类型标签用红色 */
    font-weight: 700;
}

.form-label[for*="manufacturer"],
.form-label[for*="modelSeries"],
.form-label[for*="versionNumber"],
.form-label[for*="boomLength"],
.form-label[for*="freeHeight"],
.form-label[for*="attachmentHeight"] {
    color: #f39c12; /* 字符串类型标签用橙色 */
    font-weight: 700;
}

/* 过渡动画优化 */
.form-control {
    transition: all 0.2s ease; /* 加快过渡速度 */
}

/* 响应式设计调整 */
@media (max-width: 768px) {
    .form-row {
        gap: 10px; /* 移动端进一步压缩间距 */
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .form-row {
        gap: 8px;
        margin-bottom: 10px;
    }
}

/* 三列均分布局 */
.form-col-3 {
    flex: 1;
    min-width: 0; /* 防止flex项目溢出 */
}

/* 两列均分布局 */
.form-col-2 {
    flex: 1;
    min-width: 0;
}

.form-group {
    margin-bottom: 0; /* 移除默认margin，由form-row控制间距 */
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* 选择框样式 */
.form-control select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px 12px;
    padding-right: 40px;
}

/* 塔帽高度禁用状态样式 */
.form-control:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* 动画效果 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 滚动条样式 */
#adminModal .modal-body::-webkit-scrollbar {
    width: 6px;
}

#adminModal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#adminModal .modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#adminModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #adminModal .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    #adminModal .modal-body {
        padding: 20px 15px;
        max-height: 80vh;
    }
    
    #adminModal .modal-header {
        padding: 15px 20px;
    }
    
    #adminModal .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    #adminModal .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    #adminModal .btn:last-child {
        margin-bottom: 0;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-col-3,
    .form-col-2 {
        flex: none;
        width: 100%;
    }
    
    .form-label {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    #adminModal .modal-body {
        padding: 15px 10px;
    }
    
    #adminModal .modal-header {
        padding: 12px 15px;
    }
    
    #adminModal .modal-title {
        font-size: 1.3em;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .form-row {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    #adminModal .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* 表单验证样式 */
.form-control:invalid {
    border-color: #e74c3c;
}

.form-control:valid {
    border-color: #27ae60;
}

/* 加载状态 */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 错误提示样式 */
.form-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-control:invalid + .form-error {
    display: block;
}

/* 确保模态框在顶层 */
.modal-open {
    overflow: hidden;
}

.modal-open #adminModal {
    display: block;
}



/* 数据库预览区域样式 */
.database-preview {
    max-height: 300px;
    overflow-y: auto;
}

.database-preview table {
    font-size: 12px;
    margin-bottom: 0;
}

.database-preview .table th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
}

/* 模态框滚动优化 */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .database-preview {
        max-height: 200px;
    }
}


/* 数据库预览区域样式 */
#databaseInfoSection {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
    background-color: #f8f9fa;
}

.database-preview {
    max-height: 200px;
    overflow-y: auto;
}

.database-preview table {
    font-size: 12px;
    margin-bottom: 0;
}

.database-preview .table th {
    background-color: #e9ecef;
    position: sticky;
    top: 0;
}

/* 确保模态框正确显示 */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
}

.modal.show {
    display: block;
}


/* 连接状态指示器 */
.connection-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 10000;
    color: white;
    transition: all 0.3s ease;
}

.connection-indicator.online {
    background-color: #27ae60;
}

.connection-indicator.offline {
    background-color: #e74c3c;
}

/* 数据库预览区域 */
.database-preview {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    background-color: #f8f9fa;
}

.database-preview table {
    font-size: 12px;
    margin-bottom: 0;
}

.database-preview .table th {
    background-color: #e9ecef;
    position: sticky;
    top: 0;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 50px;
    right: 10px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.notification-content {
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
    font-weight: 600;
}

.notification-success { background-color: #27ae60; }
.notification-error { background-color: #e74c3c; }
.notification-warning { background-color: #f39c12; }
.notification-info { background-color: #3498db; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .connection-indicator {
        top: 5px;
        right: 5px;
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .database-preview {
        max-height: 200px;
    }
}

