
/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

/* Apply safe-area padding ONLY in standalone PWA mode */
@media (display-mode: standalone) {
    .toast-container {
        padding-top: env(safe-area-inset-top);
        padding-right: env(safe-area-inset-right);
    }
}

/* Toast Base */
.toast {
    display: flex !important;
    align-items: center;
    padding: 16px 20px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    animation: slideIn 0.3s ease-out;
    min-width: 300px;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

    .toast.hiding {
        animation: slideOut 0.3s ease-out forwards;
    }

/* Toast Icon */
.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 12px;
}


/* Toast Message */
.toast-message {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

/* Toast Close Button */
.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

    .toast-close:hover {
        opacity: 1;
    }

/* Success Toast */
.toast.success {
    background-color: #008E6D;
    color: #ffffff;
}

    .toast.success .toast-icon {
        background-color: rgba(255, 255, 255, 0.2);
    }

        .toast.success .toast-icon svg {
            fill: #ffffff;
        }


/* Error Toast */
.toast.error {
    background-color: #F65275;
    color: #ffffff;
}

    .toast.error .toast-icon {
        background-color: rgba(255, 255, 255, 0.2);
    }

        .toast.error .toast-icon svg {
            fill: #ffffff;
        }


/* Warning Toast (Optional) */
.toast.warning {
    background-color: #FFA726;
    color: #ffffff;
}

    .toast.warning .toast-icon {
        background-color: rgba(255, 255, 255, 0.2);
    }

        .toast.warning .toast-icon svg {
            fill: #ffffff;
        }

/* Info Toast (Optional) */
.toast.info {
    background-color: #42A5F5;
    color: #ffffff;
}

    .toast.info .toast-icon {
        background-color: rgba(255, 255, 255, 0.2);
    }

        .toast.info .toast-icon svg {
            fill: #ffffff;
        }


/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

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

    .toast {
        min-width: auto;
        max-width: none;
    }
}
