/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: #28a745;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    max-width: 400px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    animation: slideIn 0.3s ease forwards;
}

.toast.toast--success {
    background: #28a745;
}

.toast.toast--error {
    background: #dc3545;
}

.toast.toast--warning {
    background: #ffc107;
    color: #212529;
}

.toast.toast--info {
    background: #17a2b8;
}

.toast__content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.toast__message {
    flex: 1;
    white-space: pre-line;
}

.toast__title {
    font-weight: 600;
    margin-bottom: 4px;
}

.toast__close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.toast__close:hover {
    opacity: 1;
}

.toast__close svg {
    width: 16px;
    height: 16px;
}

.toast.toast--show {
    transform: translateX(0);
    opacity: 1;
}

.toast.toast--hide {
    transform: translateX(100%);
    opacity: 0;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

    .toast {
        max-width: none;
        margin-bottom: 8px;
    }
}