/**
 * 通知消息组件 + 确认弹窗组件样式
 */

/* ==================== 通知消息样式 ==================== */

/* 通知容器 */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

/* 通知项 */
.notification {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    animation: notificationSlideIn 0.3s ease;
    border-left: 4px solid #5FB8A6;
}

/* 不同类型 */
.notification.success {
    border-left-color: #5FB8A6;
}

.notification.error {
    border-left-color: #e74c3c;
}

.notification.warning {
    border-left-color: #f5a623;
}

/* 动画 */
@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes notificationSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.notification.removing {
    animation: notificationSlideOut 0.3s ease forwards;
}

/* 图标 */
.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: rgba(95, 184, 166, 0.1);
    color: #5FB8A6;
}

.notification.error .notification-icon {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.notification.warning .notification-icon {
    background: rgba(245, 166, 35, 0.1);
    color: #f5a623;
}

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

.notification-title {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* 关闭按钮 */
.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    flex-shrink: 0;
}

.notification-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* ==================== 确认弹窗样式 ==================== */

/* 遮罩层 */
.confirm-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.confirm-modal-overlay.active {
    display: flex;
}

/* 弹窗容器 */
.confirm-modal-container {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: confirmModalSlideIn 0.3s ease;
}

@keyframes confirmModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 头部 */
.confirm-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confirm-modal-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.confirm-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.confirm-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* 内容区 */
.confirm-modal-body {
    padding: 30px 25px;
    text-align: center;
}

.confirm-modal-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.confirm-modal-message {
    font-size: 16px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.confirm-modal-desc {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* 底部按钮 */
.confirm-modal-footer {
    padding: 15px 25px 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.confirm-btn-cancel,
.confirm-btn-confirm {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.confirm-btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.confirm-btn-cancel:hover {
    background: #eee;
}

.confirm-btn-confirm {
    color: white;
}

/* 按钮类型样式 */
.confirm-btn-warning {
    background: #f5a623;
}

.confirm-btn-warning:hover {
    background: #e09400;
}

.confirm-btn-danger {
    background: #e74c3c;
}

.confirm-btn-danger:hover {
    background: #c0392b;
}

.confirm-btn-info {
    background: #3498db;
}

.confirm-btn-info:hover {
    background: #2980b9;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .notification-container {
        left: 10px;
        right: 10px;
        top: 10px;
        max-width: none;
    }

    .notification {
        min-width: auto;
        width: 100%;
        padding: 12px 15px;
        gap: 10px;
    }

    .notification-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .notification-title {
        font-size: 13px;
    }

    .confirm-modal-container {
        width: 92%;
        max-width: none;
    }

    .confirm-modal-header {
        padding: 15px 20px;
    }

    .confirm-modal-body {
        padding: 20px 20px;
    }

    .confirm-modal-icon {
        font-size: 40px;
    }

    .confirm-modal-message {
        font-size: 15px;
    }

    .confirm-modal-footer {
        padding: 10px 20px 20px;
        flex-direction: column-reverse;
        gap: 8px;
    }

    .confirm-btn-cancel,
    .confirm-btn-confirm {
        width: 100%;
        padding: 12px 24px;
    }
}
