/* Blazored Toast Fallback Styles */
.blazored-toast-container {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
}

.blazored-toast-top-right {
    top: 72px;
    right: 20px;
}

.blazored-toast-top-left {
    top: 72px;
    left: 20px;
}

.blazored-toast-top-center {
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
}

.blazored-toast-bottom-right {
    bottom: 20px;
    right: 20px;
}

.blazored-toast-bottom-left {
    bottom: 20px;
    left: 20px;
}

.blazored-toast-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.blazored-toast {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    min-width: 320px;
    max-width: 500px;
    animation: blazored-toast-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.blazored-toast.success-toast,
.blazored-toast-success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.blazored-toast.info-toast,
.blazored-toast-info {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.blazored-toast.warning-toast,
.blazored-toast-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.blazored-toast.error-toast,
.blazored-toast-error {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.blazored-toast-icon {
    margin-right: 12px;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.blazored-toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.blazored-toast-message {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
}

.blazored-toast-close-button {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    margin-left: 12px;
    cursor: pointer;
    opacity: 0.6;
    flex-shrink: 0;
    border-radius: 4px;
    transition: opacity 0.2s, background-color 0.2s;
}

.blazored-toast-close-button:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
}

@keyframes blazored-toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.blazored-toast-removing {
    animation: blazored-toast-slide-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes blazored-toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Progress bar */
.blazored-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.2);
    animation: blazored-toast-progress linear;
}

@keyframes blazored-toast-progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Success progress */
.blazored-toast.success-toast .blazored-toast-progress {
    background-color: #28a745;
}

/* Info progress */
.blazored-toast.info-toast .blazored-toast-progress {
    background-color: #17a2b8;
}

/* Warning progress */
.blazored-toast.warning-toast .blazored-toast-progress {
    background-color: #ffc107;
}

/* Error progress */
.blazored-toast.error-toast .blazored-toast-progress {
    background-color: #dc3545;
}

/* Responsive design */
@media (max-width: 480px) {
    .blazored-toast {
        min-width: 280px;
        max-width: calc(100vw - 40px);
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .blazored-toast-top-right,
    .blazored-toast-top-left,
    .blazored-toast-bottom-right,
    .blazored-toast-bottom-left {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}
