/* Syncfusion Toast Notification Styles with Theme Support */
/* This file provides consistent, accessible toast styling across the application */

/* Toast notification styles - Light theme (Fluent2) */
.toast-error {
    background-color: #ffebee !important;  /* Very light red background */
    color: #b71c1c !important;              /* Dark red text for contrast */
    border-left: 6px solid #d32f2f !important;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4) !important;
}

.toast-warning {
    background-color: #fff3e0 !important;  /* Very light orange background */
    color: #e65100 !important;              /* Dark orange text for contrast */
    border-left: 6px solid #f57c00 !important;
    box-shadow: 0 4px 12px rgba(245, 124, 0, 0.4) !important;
}

.toast-success {
    background-color: #e8f5e9 !important;  /* Very light green background */
    color: #2e7d32 !important;              /* Dark green text for contrast */
    border-left: 6px solid #388e3c !important;
    box-shadow: 0 4px 12px rgba(56, 142, 60, 0.4) !important;
}

.toast-info {
    background-color: #e3f2fd !important;  /* Very light blue background */
    color: #1565c0 !important;              /* Dark blue text for contrast */
    border-left: 6px solid #1976d2 !important;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4) !important;
}

/* Dark theme (Fluent2-dark) overrides - using body[data-theme="dark"] */
body[data-theme="dark"] .toast-error {
    background-color: #4a0e0e !important;  /* Dark red background */
    color: #ffcdd2 !important;              /* Light red text for contrast */
    border-left: 6px solid #ef5350 !important;
}

body[data-theme="dark"] .toast-warning {
    background-color: #4a2c0e !important;  /* Dark orange background */
    color: #ffe0b2 !important;              /* Light orange text for contrast */
    border-left: 6px solid #ff9800 !important;
}

body[data-theme="dark"] .toast-success {
    background-color: #1b4d20 !important;  /* Dark green background */
    color: #c8e6c9 !important;              /* Light green text for contrast */
    border-left: 6px solid #66bb6a !important;
}

body[data-theme="dark"] .toast-info {
    background-color: #0d3458 !important;  /* Dark blue background */
    color: #bbdefb !important;              /* Light blue text for contrast */
    border-left: 6px solid #42a5f5 !important;
}

/* Ensure title stands out */
.e-toast .e-toast-title {
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    font-size: 15px !important;
}

/* Light theme title colors */
.toast-error .e-toast-title {
    color: #c62828 !important;
}

.toast-warning .e-toast-title {
    color: #ef6c00 !important;
}

.toast-success .e-toast-title {
    color: #388e3c !important;
}

.toast-info .e-toast-title {
    color: #1976d2 !important;
}

/* Dark theme title colors */
body[data-theme="dark"] .toast-error .e-toast-title {
    color: #ff8a80 !important;
}

body[data-theme="dark"] .toast-warning .e-toast-title {
    color: #ffcc80 !important;
}

body[data-theme="dark"] .toast-success .e-toast-title {
    color: #a5d6a7 !important;
}

body[data-theme="dark"] .toast-info .e-toast-title {
    color: #90caf9 !important;
}

/* Toast content styling for better readability */
.e-toast .e-toast-message {
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* High contrast mode support for accessibility */
@media (prefers-contrast: high) {
    .toast-error,
    .toast-warning,
    .toast-success,
    .toast-info {
        border: 3px solid currentColor !important;
        font-weight: 600 !important;
    }
}

/* Forced colors mode (Windows High Contrast) */
@media (forced-colors: active) {
    .toast-error,
    .toast-warning,
    .toast-success,
    .toast-info {
        border: 3px solid CanvasText !important;
        background-color: Canvas !important;
        color: CanvasText !important;
    }

    .toast-error .e-toast-title,
    .toast-warning .e-toast-title,
    .toast-success .e-toast-title,
    .toast-info .e-toast-title {
        color: CanvasText !important;
    }
}
