/* Toast Notification System */
.toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.toast {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    padding: 16px 20px !important;
    margin-bottom: 10px !important;
    min-width: 300px !important;
    max-width: 400px !important;
    display: flex !important;
    align-items: center !important;
    pointer-events: auto !important;
    animation: slideIn 0.3s ease-out !important;
    position: relative !important;
    overflow: hidden !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

/* Flex gap alternative for better browser support */
.toast > * + * {
    margin-left: 12px !important;
}

.toast::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 4px !important;
}

.toast.success::before {
    background-color: #10b981 !important;
}

.toast.error::before {
    background-color: #ef4444 !important;
}

.toast.warning::before {
    background-color: #f59e0b !important;
}

.toast.info::before {
    background-color: #3b82f6 !important;
}

.toast-icon {
    flex-shrink: 0 !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

.toast.success .toast-icon {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

.toast.error .toast-icon {
    background-color: #ef4444 !important;
    color: #ffffff !important;
}

.toast.warning .toast-icon {
    background-color: #f59e0b !important;
    color: #ffffff !important;
}

.toast.info .toast-icon {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

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

.toast-title {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #1f2937 !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.toast-message {
    font-size: 13px !important;
    color: #6b7280 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: normal !important;
    text-align: left !important;
}

.toast-close {
    flex-shrink: 0 !important;
    background: none !important;
    border: none !important;
    color: #9ca3af !important;
    cursor: pointer !important;
    padding: 4px !important;
    line-height: 1 !important;
    font-size: 20px !important;
    transition: color 0.2s !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.toast-close:hover {
    color: #4b5563 !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 4px !important;
}

.toast.removing {
    animation: slideOut 0.3s ease-out forwards !important;
}

@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 responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
    }

    .toast {
        min-width: auto !important;
        max-width: 100% !important;
    }

    @keyframes slideIn {
        from {
            transform: translateY(-100px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes slideOut {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100px);
            opacity: 0;
        }
    }
}
