/* Native Toast Notification Styles */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ws-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    animation: slideIn 0.3s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ws-toast.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.ws-toast.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.ws-toast.toast-warning {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.ws-toast.toast-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.toast-icon {
    flex-shrink: 0;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.toast-success .toast-icon::before {
    content: "✓";
}

.toast-error .toast-icon::before {
    content: "✕";
}

.toast-warning .toast-icon::before {
    content: "!";
}

.toast-info .toast-icon::before {
    content: "ⓘ";
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.toast-message {
    font-size: 13px;
    opacity: 0.95;
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
    font-size: 18px;
    line-height: 1;
}

.toast-close:hover {
    opacity: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.4);
    animation: progress 5s linear forwards;
}

@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;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.ws-toast.removing {
    animation: slideOut 0.3s ease-in forwards;
}

/* Responsive design */
@media (max-width: 640px) {
    .toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }

    .ws-toast {
        min-width: unset;
        max-width: unset;
    }
}
