.flash-toast-container {
    position: fixed;
    right: 24px;
    top: 48px;
    z-index: 2000;
}

.flash-toast {
    align-items: center;
    border: 0;
    border-radius: 7px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .18);
    color: #fff;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    margin-bottom: 10px;
    min-height: 48px;
    min-width: 328px;
    padding: 12px 14px;
}

.flash-toast-success { background: #16a34a; }
.flash-toast-danger,
.flash-toast-error { background: #dc2626; }
.flash-toast-warning { background: #f0ad4e; }
.flash-toast-info { background: #17a2b8; }
.flash-toast-secondary { background: #6c757d; }

.flash-toast__icon {
    align-items: center;
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 18px;
    font-size: 11px;
    font-weight: 900;
    height: 18px;
    justify-content: center;
    line-height: 1;
    width: 18px;
}

.flash-toast__message {
    flex: 1 1 auto;
    line-height: 1.35;
    min-width: 0;
    white-space: pre-line;
}

.flash-toast__close {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, .95);
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
}

body.theme-dark .flash-toast-success,
body.dark-mode .flash-toast-success {
    background: linear-gradient(135deg, #34d399 0%, #16a34a 48%, #15803d 100%);
    border: 1px solid rgba(134, 239, 172, .32);
    box-shadow: 0 12px 26px rgba(5, 150, 105, .22), 0 5px 12px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .14);
}

body.theme-dark .flash-toast-danger,
body.theme-dark .flash-toast-error,
body.dark-mode .flash-toast-danger,
body.dark-mode .flash-toast-error {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 48%, #7f1d1d 100%);
    border: 1px solid rgba(252, 165, 165, .36);
    box-shadow: 0 12px 26px rgba(127, 29, 29, .28), 0 5px 12px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .14);
}

body.theme-dark .flash-toast-warning,
body.dark-mode .flash-toast-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 48%, #92400e 100%);
    border: 1px solid rgba(253, 230, 138, .38);
    box-shadow: 0 12px 26px rgba(146, 64, 14, .26), 0 5px 12px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .14);
}

body.theme-dark .flash-toast-info,
body.dark-mode .flash-toast-info {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 48%, #075985 100%);
    border: 1px solid rgba(186, 230, 253, .34);
    box-shadow: 0 12px 26px rgba(3, 105, 161, .24), 0 5px 12px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .14);
}

@media (max-width: 576px) {
    .flash-toast-container {
        left: 12px;
        right: 12px;
        top: 56px;
    }

    .flash-toast {
        min-width: 0;
        width: 100%;
    }
}
