/* 记录管理组件样式 */

/* 底部清除按钮栏 */
#record-manager-bar {
    display: flex;
    justify-content: center;
    padding: 24px 0;
    margin-top: 16px;
    border-top: 1px solid var(--bs-border-color);
}

.record-manager-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 清除弹窗 */
.record-clear-dialog {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-clear-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

.record-clear-panel {
    position: relative;
    background: var(--bs-body-bg);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    width: 340px;
    max-width: 90vw;
    overflow: hidden;
    animation: recordPanelIn 0.2s ease;
}

@keyframes recordPanelIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.record-clear-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--bs-border-color);
}

.record-clear-header h5 {
    margin: 0;
    font-size: 1rem;
    color: var(--bs-body-color);
}

.record-clear-close {
    background: none;
    border: none;
    color: var(--bs-secondary-color);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.15s;
}

.record-clear-close:hover {
    background: var(--bs-secondary-bg);
}

.record-clear-body {
    padding: 14px 18px;
}

.record-clear-option {
    padding: 8px 0;
}

.record-clear-option + .record-clear-option {
    border-top: 1px solid var(--bs-border-color-translucent);
}

.record-clear-option label {
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--bs-body-color);
    width: 100%;
}

.record-clear-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.record-clear-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--bs-border-color);
}

/* 分类长按菜单 */
.category-clear-menu {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    min-width: 220px;
    overflow: hidden;
    animation: menuIn 0.12s ease;
}

@keyframes menuIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.category-clear-item {
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--bs-body-color);
    cursor: pointer;
    transition: background 0.12s;
    white-space: nowrap;
}

.category-clear-item:hover {
    background: var(--bs-tertiary-bg);
}

.category-clear-item + .category-clear-item {
    border-top: 1px solid var(--bs-border-color-translucent);
}

/* Toast 提示（与现有 toast 统一） */
.nav-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bs-dark);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 5000;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
    white-space: nowrap;
}

.nav-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 分类项长按视觉反馈 */
.category-item.pressing {
    background: var(--bs-primary-bg-subtle) !important;
    transition: background 0.3s;
}
