/* 通知容器 */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 320px;
    max-width: calc(100vw - 40px);
    pointer-events: none;
}

/* 通知样式基础 */
.toast-notification {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    overflow: hidden;
    pointer-events: auto;
    border-left: 4px solid #1890ff;
    display: flex;
    flex-direction: column;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* 通知标题和内容布局 */
.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 5px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

.toast-body {
    padding: 5px 0 0 0;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.65);
    overflow-wrap: break-word;
}

/* 通知类型样式 */
.toast-notification.success {
    border-left-color: #52c41a;
}

.toast-notification.warning {
    border-left-color: #faad14;
}

.toast-notification.error {
    border-left-color: #f5222d;
}

.toast-notification.info {
    border-left-color: #1890ff;
}

/* 通知标题颜色 */
.toast-notification.success .toast-header {
    color: #52c41a;
}

.toast-notification.warning .toast-header {
    color: #faad14;
}

.toast-notification.error .toast-header {
    color: #f5222d;
}

.toast-notification.info .toast-header {
    color: #1890ff;
}

/* 添加关闭按钮 */
.toast-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.45);
    padding: 0 6px;
    margin-left: 8px;
    line-height: 1;
}

.toast-close:hover {
    color: rgba(0, 0, 0, 0.85);
}

/* 响应式调整 */
@media (max-width: 576px) {
    .notification-container {
        width: 280px;
        top: 10px;
        right: 10px;
    }
    
    .toast-notification {
        padding: 10px;
    }
    
    .toast-header {
        font-size: 13px;
    }
    
    .toast-body {
        font-size: 12px;
    }
}

/* 兼容旧版 toast 样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s;
    font-size: 14px;
    border-left: 4px solid #1890ff;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    border-left-color: #52c41a;
}

.toast.error {
    border-left-color: #f5222d;
}

.toast.info {
    border-left-color: #1890ff;
}

.toast.warning {
    border-left-color: #faad14;
}

/* 上下文提示词按钮样式 */
#contextPromptBtn.has-prompt {
    background-color: #e6f7ff;
    border-color: #1890ff;
    color: #1890ff;
} 