/* Small Corner Notification Popup */
.notification-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: -webkit-linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Safari/Chrome */
    background: -moz-linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Firefox */
    border-radius: 15px;
    padding: 20px;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateX(400px);
    -webkit-transform: translateX(400px); /* Safari/Chrome */
    -moz-transform: translateX(400px); /* Firefox */
    -ms-transform: translateX(400px); /* IE 9 */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -webkit-transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -moz-transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification-popup.show {
    transform: translateX(0);
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    opacity: 1;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    line-height: 1;
    font-weight: bold;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
}

.notification-content {
    display: flex;
    display: -webkit-flex;
    display: -moz-flex;
    gap: 15px;
    align-items: flex-start;
    -webkit-align-items: flex-start;
}

/* Fallback for browsers that don't support gap */
.notification-content > * + * {
    margin-left: 15px;
}

.notification-icon {
    font-size: 40px;
    animation: bounce 1s ease infinite;
    -webkit-animation: bounce 1s ease infinite;
    -moz-animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@-webkit-keyframes bounce {
    0%, 100% {
        -webkit-transform: translateY(0);
    }
    50% {
        -webkit-transform: translateY(-5px);
    }
}

@-moz-keyframes bounce {
    0%, 100% {
        -moz-transform: translateY(0);
    }
    50% {
        -moz-transform: translateY(-5px);
    }
}

.notification-text {
    flex: 1;
    -webkit-flex: 1;
    color: white;
}

.notification-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #ffd700;
}

.notification-text p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.iso-badge {
    color: #ffd700;
    font-weight: bold;
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-popup {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 15px;
    }
    
    .notification-icon {
        font-size: 35px;
    }
    
    .notification-text strong {
        font-size: 1rem;
    }
    
    .notification-text p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .notification-popup {
        padding: 12px;
    }
    
    .notification-content {
        gap: 10px;
    }
    
    .notification-content > * + * {
        margin-left: 10px;
    }
    
    .notification-icon {
        font-size: 30px;
    }
    
    .notification-text strong {
        font-size: 0.95rem;
    }
    
    .notification-text p {
        font-size: 0.8rem;
    }
    
    .iso-badge {
        font-size: 0.9rem;
    }
}

/* IE 10+ specific fixes */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .notification-content {
        display: block;
    }
    
    .notification-icon {
        display: inline-block;
        vertical-align: top;
        margin-right: 15px;
    }
    
    .notification-text {
        display: inline-block;
        vertical-align: top;
        width: calc(100% - 60px);
    }
}
