/* Popup Notifications Styles */

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

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

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; } /* Increased from 100% to 120% */
    to { transform: translateX(0); opacity: 1; }
}

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

@keyframes slideInBottom {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOutBottom {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(50px); opacity: 0; }
}

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

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

/* Animation Classes */
.popup-animate-in {
    animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.popup-animate-out {
    animation: slideOutRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Apply different animations based on screen size */
@media (max-width: 767px) {
    .popup-animate-in {
        animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    .popup-animate-out {
        animation: scaleOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

/* Popup Styling */
#popupNotification {
    z-index: 9999;
}

#popupPreview {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Dark theme styling for popup content */
#popupNotification div[style*="line-height: 1.6"],
#popupPreview div[style*="line-height: 1.6"] {
    color: #e0e0e0;
}

#popupNotification a,
#popupPreview a {
    color: #c0a080 !important;
    text-decoration: underline;
}

#popupNotification strong,
#popupPreview strong {
    font-weight: 700;
    color: #fff;
}

#popupNotification em,
#popupPreview em {
    font-style: italic;
    color: #ddd;
}

#popupNotification ul,
#popupPreview ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

#popupNotification li,
#popupPreview li {
    margin-bottom: 0.25rem;
}

#popupNotification img,
#popupPreview img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    margin: 0.75rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#popupNotification .close-popup,
#popupPreview .close-preview {
    cursor: pointer;
    transition: all 0.2s ease;
}

#popupNotification button.close-popup,
#popupPreview button.close-preview {
    background-color: #8b7355;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#popupNotification button.close-popup:hover,
#popupPreview button.close-preview:hover {
    background-color: #a08563;
}

/* Desktop-specific styles */
@media (min-width: 768px) {
    #popupNotification {
        max-width: 400px;
        width: 100%;
    }
    
    #popupNotification > div {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) !important;
    }
}
