/*
 * 临时邮箱自定义样式扩展 (基于 Bootstrap 5)
 */

/* 邮件表格的行指针 */
.inbox-table tbody tr {
    cursor: pointer;
}

/* 邮件详情弹窗自定义 Overlay (配合原生 JS 的 display 控制) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1055; /* 大于 Bootstrap 的默认组件 z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

/* 调整 Toast 提示位置与动画 (兼容原有 app.js 逻辑) */
.toast {
    position: fixed;
    top: 70px;
    right: 20px;
    background: #212529;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 3000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    display: block !important;
}

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

.toast.error { background: #dc3545; }
.toast.success { background: #198754; }

/* 覆盖 app.js 的 Tab 按钮选中样式（匹配全新pills风格） */
.tab-btn {
    color: #6c757d;
    transition: all 0.2s;
}
.tab-btn:hover {
    color: #495057;
    background: rgba(0,0,0,0.03);
}
.tab-btn.active {
    color: #fff !important;
    background-color: #198754 !important;
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.3);
}

/* 自定义前缀输入框聚焦效果 */
.prefix-input-area .input-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25) !important;
    border-radius: 0.375rem;
}

