/* Table Section Container */
.table-section {
    padding: 10px 20px 30px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bulk-import-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.btn-bulk-import {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, #ffc1d6, #ff9dc4);
    color: #7a2f51;
    border: 1px solid #f48fb1;
    box-shadow: 0 2px 8px rgba(244, 143, 177, 0.35);
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-bulk-import:active {
    transform: translateY(1px);
}

.table-container {
    width: 100%;
    max-width: 1100px; /* 缩窄表格宽度 1400 -> 1100 */
    overflow-x: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Table Styles */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    min-width: 900px; /* 相应调整最小宽度 */
}

/* Header Styles */
.custom-table thead th {
    background: linear-gradient(45deg, #17a2b8, #9b42f5); /* 青紫渐变 */
    color: #ffffff;
    padding: 12px 5px; /* 减小内边距 */
    font-weight: 600;
    text-align: center;
    font-size: 0.8rem; /* 表头字号变小 */
    white-space: nowrap;
    border: none;
}

.custom-table thead th:first-child {
    border-top-left-radius: 10px;
}

.custom-table thead th:last-child {
    border-top-right-radius: 10px;
}

/* Header Badges */
.badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 1px 4px; /* Badge 更紧凑 */
    font-size: 0.65rem; /* Badge 字体更小 */
    margin-left: 3px;
    vertical-align: middle;
}

/* Body Styles */
.custom-table tbody td {
    padding: 10px 5px; /* 减小单元格内边距 */
    border-bottom: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

/* Input Styles */
.table-input {
    width: 100%;
    padding: 6px 8px; /* 减小输入框内边距 */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.75rem; /* 单元格内文字字号变小 */
    outline: none;
    transition: border-color 0.3s;
    color: #333;
}

.table-input:focus {
    border-color: #9b42f5; /* 聚焦颜色调整为紫色 */
}

/* Remove Number Input Spinners */
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* Button Styles */
.btn {
    padding: 6px 12px; /* 按钮也稍微紧凑一点 */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem; /* 按钮文字变小 */
    transition: all 0.3s;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Preview & Download Buttons (Default Gray/Disabled) */
.btn-secondary {
    background-color: #e0e0e0;
    color: #888;
    cursor: not-allowed;
    min-width: 50px; /* 稍微减小最小宽度 */
}

.btn-secondary.active {
    background-color: #6c757d;
    color: #fff;
    cursor: pointer;
}

/* Delete Button */
.btn-delete {
    background-color: #dc3545;
    color: white;
    width: 24px; /* 缩小删除按钮 */
    height: 24px;
    padding: 0;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
}

.btn-delete:hover {
    background-color: #c82333;
}

.btn-delete:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

/* Add Button (Outside Table) */
.btn-add-row {
    width: 32px; /* 再次缩小添加按钮 40px -> 32px */
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #17a2b8, #9b42f5); /* 青紫渐变 */
    color: white;
    font-size: 1.2rem; /* 字体缩小 */
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: 0; /* 移除按钮顶部间距 */
}

.btn-add-row:hover {
    transform: translateY(-2px) rotate(1deg);
}

/* Specific Column Widths - 稍微调整宽度分配，让其更紧凑 */
.col-domain { width: 14%; }
.col-name { width: 14%; }
.col-count { width: 8%; }
.col-desc { width: 18%; }
.col-lang { width: 10%; }
.col-link { width: 14%; }
.col-action { width: 60px; }
