
/* Toast Notification System */
.toast-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #14213D 0%, #1a2a4d 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 99999;
    min-width: 320px;
    max-width: 450px;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 5px solid #FCA311;
    backdrop-filter: blur(10px);
}

/* Success Toast */
.toast-notification.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #1e4620 0%, #28a745 100%);
}

/* Error Toast */
.toast-notification.error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #4a1a1f 0%, #dc3545 100%);
}

/* Warning Toast */
.toast-notification.warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #4a3b1a 0%, #ffc107 100%);
}

/* Info Toast */
.toast-notification.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #1a3a4a 0%, #17a2b8 100%);
}

/* Icon styling */
.toast-notification .toast-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.toast-notification.success .toast-icon {
    color: #28a745;
}

.toast-notification.error .toast-icon {
    color: #dc3545;
}

.toast-notification.warning .toast-icon {
    color: #ffc107;
}

.toast-notification.info .toast-icon {
    color: #17a2b8;
}

.toast-notification .toast-content {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
}

.toast-notification .toast-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-notification .toast-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Hiding animation */
.toast-notification.hiding {
    animation: slideOutRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 0 0 0 12px;
    animation: progressBar 5s linear forwards;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(500px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Multiple toasts stacking */
.toast-notification:nth-child(2) {
    top: 180px;
}

.toast-notification:nth-child(3) {
    top: 260px;
}

.toast-notification:nth-child(4) {
    top: 340px;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        top: 80px;
    }

    .toast-notification:nth-child(2) {
        top: 160px;
    }

    .toast-notification:nth-child(3) {
        top: 240px;
    }
}
