/* 订单通知系统样式 */

/* 通知容器 - 固定定位 */
.order-notify-container {
    position: fixed;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    max-height: 80vh;
    overflow-y: auto;
    pointer-events: none;
}

.order-notify-container > * {
    pointer-events: auto;
}

/* 位置变体 */
.notify-pos-top-right {
    top: 60px;
    right: 15px;
}
.notify-pos-top-left {
    top: 60px;
    left: 15px;
}
.notify-pos-bottom-right {
    bottom: 15px;
    right: 15px;
    flex-direction: column-reverse;
}
.notify-pos-bottom-left {
    bottom: 15px;
    left: 15px;
    flex-direction: column-reverse;
}
.notify-pos-right-edge {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

/* 单条通知卡片 */
.order-notify-card {
    width: 340px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: notifySlideIn 0.3s ease-out;
    border-left: 4px solid #5FB878;
}

.order-notify-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.order-notify-card.notify-withdraw {
    border-left-color: #FF5722;
}

.order-notify-card.notify-recharge {
    border-left-color: #5FB878;
}

/* 通知卡片标题栏 */
.order-notify-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 6px;
    font-weight: bold;
    font-size: 14px;
}

.order-notify-header .notify-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-notify-header .notify-title-icon {
    font-size: 14px;
}

.order-notify-card.notify-withdraw .notify-title-icon {
    color: #FF5722;
}

.order-notify-card.notify-recharge .notify-title-icon {
    color: #5FB878;
}

.order-notify-header .notify-time {
    font-size: 11px;
    color: #999;
    font-weight: normal;
}

/* 通知卡片内容 */
.order-notify-body {
    padding: 4px 14px 12px;
    font-size: 13px;
    line-height: 1.8;
    color: #333;
}

.order-notify-body .notify-row {
    display: flex;
    justify-content: space-between;
}

.order-notify-body .notify-label {
    color: #888;
    flex-shrink: 0;
}

.order-notify-body .notify-value {
    color: #333;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

.order-notify-body .notify-amount {
    color: #FF5722;
    font-size: 15px;
    font-weight: bold;
}

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

.notify-pos-top-left .order-notify-card,
.notify-pos-bottom-left .order-notify-card {
    animation-name: notifySlideInLeft;
}

@keyframes notifySlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notify-pos-right-edge .order-notify-card {
    animation-name: notifySlideInRight;
}

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

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

.order-notify-card.notify-fading {
    animation: notifyFadeOut 0.3s ease-in forwards;
}

/* WebSocket 连接状态图标 */
#wsConnStatus {
    transition: color 0.3s;
}

/* 设置面板样式 */
.order-notify-settings {
    padding: 20px;
}

.order-notify-settings .setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-notify-settings .setting-row:last-child {
    border-bottom: none;
}

.order-notify-settings .setting-label {
    font-size: 14px;
    color: #333;
    min-width: 120px;
}

.order-notify-settings .setting-control {
    flex: 1;
    max-width: 220px;
}

.order-notify-settings .sound-url-row {
    flex-wrap: wrap;
}

.order-notify-settings .sound-url-row .setting-control {
    max-width: 100%;
    width: 100%;
    margin-top: 6px;
    display: flex;
    gap: 8px;
}

.order-notify-settings .sound-url-row .setting-control input {
    flex: 1;
}

.order-notify-settings .setting-footer {
    text-align: center;
    padding-top: 15px;
}
