/* 小老虎 IoT 网关 - 额外样式 */

/* 导航栏激活态 */
.nav-link.active {
    background-color: rgba(59, 130, 246, 0.3);
    border-right: 3px solid #3b82f6;
}

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Toast 动画 */
#toast {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 截断文本省略号 */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
