/* ============================================
   TOAST NOTIFICATION SYSTEM
   ============================================ */

.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    pointer-events: all;
    min-width: 320px;
    max-width: 500px;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.hiding {
    animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toast-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
}

.toast.success .toast-icon {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(56, 142, 60, 0.2));
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.toast.error .toast-icon {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(211, 47, 47, 0.2));
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ff4444;
}

.toast.info .toast-icon {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(25, 118, 210, 0.2));
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #2196F3;
}

.toast.warning .toast-icon {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(245, 124, 0, 0.2));
    border: 1px solid rgba(255, 152, 0, 0.3);
    color: #FF9800;
}

.toast-message {
    flex: 1;
}

.toast-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.toast-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5));
    animation: toastProgress 3s linear forwards;
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .toast {
        min-width: 280px;
        max-width: calc(100vw - 32px);
        padding: 20px 24px;
    }

    .toast-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

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

    .toast-text {
        font-size: 13px;
    }
}