/* 🎨 自定义通知系统样式 */

/* 通知容器 */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

/* 通知项 */
.notification {
    min-width: 300px;
    max-width: 450px;
    margin-bottom: 15px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* 进入动画 */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 退出动画 */
@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

/* 进度条 */
.notification::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progress 3s linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* 图标容器 */
.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* 内容 */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-message {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
    word-wrap: break-word;
}

/* 关闭按钮 */
.notification-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
}

/* 成功样式 */
.notification.success {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: white;
}

/* 错误样式 */
.notification.error {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: white;
}

/* 警告样式 */
.notification.warning {
    background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%);
    color: white;
}

/* 信息样式 */
.notification.info {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
}

/* 响应式 */
@media (max-width: 768px) {
    .notification-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }

    .notification {
        min-width: auto;
        max-width: 100%;
        margin-bottom: 10px;
    }
}

/* 确认对话框 */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.confirm-dialog {
    background: white;
    border-radius: 16px;
    padding: 24px;
    min-width: 320px;
    max-width: 450px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-dialog-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border-radius: 50%;
}

.confirm-dialog.warning .confirm-dialog-icon {
    background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%);
    color: white;
}

.confirm-dialog.error .confirm-dialog-icon {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: white;
}

.confirm-dialog.info .confirm-dialog-icon {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
}

.confirm-dialog-title {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    color: #262626;
}

.confirm-dialog-message {
    font-size: 14px;
    text-align: center;
    color: #595959;
    line-height: 1.6;
    margin-bottom: 24px;
}

.confirm-dialog-buttons {
    display: flex;
    gap: 12px;
}

.confirm-dialog-button {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-dialog-button.primary {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: white;
}

.confirm-dialog-button.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.confirm-dialog-button.danger {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: white;
}

.confirm-dialog-button.danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.confirm-dialog-button.secondary {
    background: #f0f0f0;
    color: #262626;
}

.confirm-dialog-button.secondary:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .confirm-dialog {
        margin: 0 20px;
        min-width: auto;
        width: calc(100% - 40px);
    }

    .confirm-dialog-buttons {
        flex-direction: column-reverse;
    }

    .confirm-dialog-button {
        width: 100%;
    }
}


