/* Items 顶部视图切换按钮 */

.toggle-btn {
    background-color: #111827;
    color: #9ca3af;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 10px;
}

.toggle-btn:hover {
    background-color: #1f2937;
    color: #e5e7eb;
}

.toggle-btn.active {
    background-color: #3b82f6;
    color: #ffffff;
}

/* 开关样式（规则启用/禁用） */

.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 16px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #4b5563;
    transition: 0.2s;
    border-radius: 999px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: #e5e7eb;
    transition: 0.2s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #3b82f6;
}

.switch input:checked + .slider:before {
    transform: translateX(14px);
}
