/**
 * SVG Toast Notification Styles
 * Clean, modern toast notifications
 * Version: 1.0.0
 */

/* Toast container - fixed position at top-right */
#svg-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    max-width: 400px;
    pointer-events: none;
}

/* Individual toast */
.svg-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border-left: 4px solid #ccc;
}

/* Show animation */
.svg-toast-show {
    opacity: 1;
    transform: translateX(0);
}

/* Hide animation */
.svg-toast-hide {
    opacity: 0;
    transform: translateX(400px);
}

/* Toast icon */
.svg-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%;
    color: white;
}

/* Toast message */
.svg-toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* Close button */
.svg-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.svg-toast-close:hover {
    color: #333;
}

/* Success toast - green */
.svg-toast-success {
    border-left-color: #27ae60;
}

.svg-toast-success .svg-toast-icon {
    background-color: #27ae60;
}

/* Error toast - red */
.svg-toast-error {
    border-left-color: #e74c3c;
}

.svg-toast-error .svg-toast-icon {
    background-color: #e74c3c;
}

/* Warning toast - orange */
.svg-toast-warning {
    border-left-color: #f39c12;
}

.svg-toast-warning .svg-toast-icon {
    background-color: #f39c12;
}

/* Info toast - blue */
.svg-toast-info {
    border-left-color: #3498db;
}

.svg-toast-info .svg-toast-icon {
    background-color: #3498db;
}

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

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

/* Accessibility - respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .svg-toast {
        transition: opacity 0.2s;
        transform: none;
    }

    .svg-toast-show {
        transform: none;
    }

    .svg-toast-hide {
        transform: none;
    }
}
