/* ==============================================
   PASTGO MODERN NOTIFICATION SYSTEM - UNIVERSAL STYLES
   Consistent notification design across all pages
   ============================================== */

/* Notification Container */
.notification-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999999;
    max-width: 420px;
    pointer-events: none;
}

.notification-container * {
    pointer-events: auto;
}

/* Notification Base */
.notification {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border-left: 5px solid;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    opacity: 0;
    transform: translateX(120%);
    animation: slideInNotification 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    position: relative;
    overflow: hidden;
    min-height: 70px;
    backdrop-filter: blur(20px);
}

/* Shimmer Effect */
.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes slideInNotification {
    0% {
        opacity: 0;
        transform: translateX(120%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Success Notification */
.notification.success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
    border: 2px solid #86efac;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3), 0 0 0 1px rgba(16, 185, 129, 0.1);
    animation: slideInNotification 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, successGlow 2s ease-in-out;
}

.notification.success .notification-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.notification.success .notification-title {
    color: #047857;
    font-weight: 700;
    font-size: 16px;
}

.notification.success .notification-message {
    color: #065f46;
    font-weight: 500;
    font-size: 14px;
}

@keyframes successGlow {

    0%,
    100% {
        box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3), 0 0 0 1px rgba(16, 185, 129, 0.1);
    }

    50% {
        box-shadow: 0 20px 80px rgba(16, 185, 129, 0.5), 0 0 30px rgba(16, 185, 129, 0.3), 0 0 0 1px rgba(16, 185, 129, 0.2);
    }
}

/* Error Notification */
.notification.error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 3px solid #f87171;
    box-shadow: 0 20px 80px rgba(239, 68, 68, 0.5), 0 0 50px rgba(239, 68, 68, 0.4), 0 0 0 1px rgba(239, 68, 68, 0.2);
    animation: slideInNotification 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, errorPulse 1s ease-in-out 3;
}

.notification.error .notification-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.6);
    animation: iconShake 0.5s ease-in-out 2;
}

.notification.error .notification-title {
    color: #dc2626;
    font-weight: 700;
    font-size: 16px;
}

.notification.error .notification-message {
    color: #7f1d1d;
    font-weight: 600;
    font-size: 14px;
}

@keyframes errorPulse {

    0%,
    100% {
        box-shadow: 0 20px 80px rgba(239, 68, 68, 0.5), 0 0 50px rgba(239, 68, 68, 0.4), 0 0 0 1px rgba(239, 68, 68, 0.2);
    }

    50% {
        box-shadow: 0 20px 100px rgba(239, 68, 68, 0.7), 0 0 70px rgba(239, 68, 68, 0.6), 0 0 0 1px rgba(239, 68, 68, 0.3);
    }
}

@keyframes iconShake {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(-5px) rotate(-5deg);
    }

    75% {
        transform: translateX(5px) rotate(5deg);
    }
}

/* Warning Notification */
.notification.warning {
    border-left-color: #fbbf24;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 3px solid #fcd34d;
    box-shadow: 0 20px 80px rgba(251, 191, 36, 0.6), 0 0 40px rgba(251, 191, 36, 0.4), 0 0 0 1px rgba(251, 191, 36, 0.3);
    animation: slideInNotification 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, warningPulse 1.5s ease-in-out infinite;
}

.notification.warning .notification-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.7);
    animation: iconBounce 2s ease-in-out infinite;
}

.notification.warning .notification-title {
    color: #92400e;
    font-weight: 700;
    font-size: 16px;
}

.notification.warning .notification-message {
    color: #78350f;
    font-weight: 700;
    font-size: 15px;
}

@keyframes warningPulse {

    0%,
    100% {
        box-shadow: 0 20px 80px rgba(251, 191, 36, 0.6), 0 0 40px rgba(251, 191, 36, 0.4), 0 0 0 1px rgba(251, 191, 36, 0.3);
    }

    50% {
        box-shadow: 0 20px 100px rgba(251, 191, 36, 0.8), 0 0 60px rgba(251, 191, 36, 0.6), 0 0 0 1px rgba(251, 191, 36, 0.4);
    }
}

@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Info Notification */
.notification.info {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border: 2px solid #93c5fd;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.1);
}

.notification.info .notification-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.notification.info .notification-title {
    color: #1e40af;
    font-weight: 700;
    font-size: 16px;
}

.notification.info .notification-message {
    color: #1e3a8a;
    font-weight: 500;
    font-size: 14px;
}

/* Notification Icon */
.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.notification-icon i {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.notification-message {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.95;
}

/* Close Button */
.notification-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    z-index: 2;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        padding: 16px 20px;
        margin-bottom: 12px;
    }

    .notification-title {
        font-size: 14px;
    }

    .notification-message {
        font-size: 12px;
    }
}