/* Professional Toast Notification Styles - Enhanced Visibility */

.toast-notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    pointer-events: none;
}

.toast-notification {
    min-width: 380px;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 
                0 8px 24px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    pointer-events: all;
    border: 2px solid;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    opacity: 0;
    transform: translateX(500px) scale(0.9);
}

.toast-notification.toast-show {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-notification.toast-hide {
    animation: slideOutRight 0.3s ease forwards;
}

.toast-notification:hover {
    transform: translateX(-8px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 
                0 10px 30px rgba(0, 0, 0, 0.3);
}

.toast-success {
    border-color: #28a745;
    background: linear-gradient(135deg, 
                rgba(209, 250, 229, 0.95) 0%, 
                rgba(167, 243, 208, 0.95) 100%);
    box-shadow: 0 20px 60px rgba(34, 197, 94, 0.3), 
                0 8px 24px rgba(34, 197, 94, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.toast-error {
    border-color: #dc3545;
    background: linear-gradient(135deg, 
                rgba(254, 226, 226, 0.95) 0%, 
                rgba(252, 165, 165, 0.95) 100%);
    box-shadow: 0 20px 60px rgba(220, 53, 69, 0.3), 
                0 8px 24px rgba(220, 53, 69, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.toast-warning {
    border-color: #f59e0b;
    background: linear-gradient(135deg, 
                rgba(254, 243, 199, 0.95) 0%, 
                rgba(253, 224, 71, 0.95) 100%);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.3), 
                0 8px 24px rgba(245, 158, 11, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.toast-info {
    border-color: #3b82f6;
    background: linear-gradient(135deg, 
                rgba(219, 234, 254, 0.95) 0%, 
                rgba(147, 197, 253, 0.95) 100%);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3), 
                0 8px 24px rgba(59, 130, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.toast-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #000000;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.toast-success .toast-title {
    color: #166534;
}

.toast-error .toast-title {
    color: #991b1b;
}

.toast-warning .toast-title {
    color: #92400e;
}

.toast-info .toast-title {
    color: #1e40af;
}

.toast-message {
    font-size: 15px;
    line-height: 1.6;
    color: #1f2937;
    font-weight: 500;
    word-wrap: break-word;
}

.toast-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(500px) scale(0.8) rotateY(20deg);
    }
    50% {
        transform: translateX(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
    }
}

@keyframes slideOutRight {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(500px) scale(0.8);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .toast-notification-container {
        top: 15px;
        right: 10px;
        left: 10px;
    }

    .toast-notification {
        min-width: auto;
        max-width: 100%;
        padding: 18px 20px;
    }

    .toast-icon {
        font-size: 32px;
    }

    .toast-title {
        font-size: 16px;
    }

    .toast-message {
        font-size: 14px;
    }
}

/* Add subtle animation loop for visibility */
@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 
                    0 8px 24px rgba(0, 0, 0, 0.25);
    }
    50% {
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45), 
                    0 12px 32px rgba(0, 0, 0, 0.35);
    }
}

.toast-notification.toast-show {
    animation: slideInRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               pulse-border 2s ease-in-out infinite 0.6s;
}
