/**
 * 自定义样式补充
 */

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 表格行悬停过渡 */
table tbody tr {
    transition: background-color 0.15s ease;
}

/* 按钮点击效果 */
button:active:not(:disabled) {
    transform: scale(0.97);
}

/* 侧边栏链接过渡 */
aside nav a {
    transition: all 0.2s ease;
}

/* Toast 动画 */
#toast {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 输入框焦点光环 */
input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* 加载动画 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* 响应式表格 */
@media (max-width: 768px) {
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
}
