/* 模拟数据行样式 */
.mock-data-row {
    background-color: rgba(200, 230, 255, 0.15);
}

.mock-data-row:hover {
    background-color: rgba(200, 230, 255, 0.25);
}

.mock-data-row td {
    border-left: 2px solid #64B5F6;
}

/* 空数据和加载状态样式 */
.empty-data, .loading-cell, .error-data {
    padding: 40px !important;
    text-align: center;
}

.empty-data-icon, .loading-spinner, .error-icon {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
}

.empty-data-text, .loading-text, .error-message {
    font-size: 16px;
    color: #444;
    margin-bottom: 8px;
}

.empty-data-subtext, .error-details {
    font-size: 14px;
    color: #888;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.pagination-info {
    font-size: 14px;
    color: #777;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.pagination-btn:hover:not([disabled]) {
    border-color: #2196F3;
    color: #2196F3;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-indicator {
    font-size: 14px;
    padding: 0 10px;
    color: #444;
}

/* 交易来源指示器 */
.source-api {
    color: #4CAF50;
    font-weight: bold;
}

.source-log {
    color: #2196F3;
    font-weight: bold;
}

.source-mock {
    color: #9E9E9E;
    font-style: italic;
}

.source-database {
    color: #FF9800;
    font-weight: bold;
}

.source-merged {
    color: #673AB7;
    font-weight: bold;
}

/* 加载动画 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(33, 150, 243, 0.3);
    border-radius: 50%;
    border-top-color: #2196F3;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {transform: rotate(360deg);}
}

/* Toast容器 */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toast样式 */
.toast {
    min-width: 250px;
    max-width: 350px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out;
    border-left: 4px solid #333;
}

.toast.show {
    transform: translateX(0);
}

.toast.hide {
    transform: translateX(120%);
}

.toast-icon {
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
    margin-left: 12px;
}

.toast-close:hover {
    color: #333;
}

/* Toast类型样式 */
.toast-success {
    border-left-color: #4CAF50;
}

.toast-success .toast-icon {
    color: #4CAF50;
}

.toast-error {
    border-left-color: #F44336;
}

.toast-error .toast-icon {
    color: #F44336;
}

.toast-warning {
    border-left-color: #FF9800;
}

.toast-warning .toast-icon {
    color: #FF9800;
}

.toast-info {
    border-left-color: #2196F3;
}

.toast-info .toast-icon {
    color: #2196F3;
}

/* 按钮加载状态 */
.btn.loading {
    opacity: 0.8;
    cursor: wait;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
    vertical-align: -0.125em;
    margin-right: 5px;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
} 