/* Notification Popup Styles */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: rgba(0, 0, 0, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    font-family: 'InfraRegular', monospace;
}

.notification-popup.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-popup.error {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.notification-popup.info,
.notification-popup.information {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
}

.notification-popup.warning {
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(245, 158, 11, 0.12);
}

.notification-popup-content {
    padding: 16px;
}

.notification-popup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.notification-icon {
    margin: 0;
    padding-top: 3px;

}

.error-icon {
    margin: 0;
}

.notification-type {
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.notification-popup-message {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    font-size: 14px;
}

.notification-main-item {
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.95);
}

.notification-sub-item {
    margin-left: 16px;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    line-height: 1.4;
}

.notification-sub-item::before {
    content: "• ";
    color: rgba(255, 255, 255, 0.6);
    margin-right: 4px;
}

.notification-popup-message code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.notification-popup-message strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.notification-popup-message em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

.notification-popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-view-all {
    color: #60a5fa;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.notification-view-all:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
}

.notification-show-more {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'InfraRegular', monospace;
}

.notification-show-more:hover {
    background: rgba(34, 197, 94, 0.3);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.5);
}

/* Expandable notification styles */
.notification-expandable {
    width: 100%;
}

.notification-title {
    font-weight: 500;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

.notification-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.notification-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.notification-toggle.expanded {
    background: rgba(255, 255, 255, 0.2);
}

.notification-details {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-detail-item {
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

/* Multiple notifications stacking */
.notification-popup:nth-child(n+2) {
    top: calc(20px + (120px * var(--notification-index, 1)));
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .notification-popup {
        width: calc(100vw - 20px);
        top: 10px;
    }
    
    .notification-popup:nth-child(n+2) {
        top: calc(10px + (110px * var(--notification-index, 1)));
    }
    
    .notification-popup-content {
        padding: 12px;
    }
    
    .notification-popup-message {
        font-size: 13px;
    }
}

/* Animation for removing notifications */
.notification-popup.removing {
    opacity: 0;
    transform: translateX(100%);
}
