/*!
 * Toastify js 1.12.0
 * https://github.com/apvarun/toastify-js
 * @license MIT licensed
 *
 * Copyright (C) 2018 Varun A P
 *
 * Restyled for LeveragePoint — modern, flat, accessible toasts.
 * The surface stays a neutral white with dark text (strong contrast on any
 * background); the toast *type* is signalled by a coloured left accent and
 * icon rather than a low-contrast coloured fill. Trigger mechanics in
 * resources/js/Plugins/Admin/notify.js are unchanged — appearance only.
 */

.toastify {
    padding: 14px 16px;
    color: #244034;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 12px 32px rgba(36, 64, 52, 0.14);
    background: #ffffff;
    position: fixed;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    border: 1px solid rgba(36, 64, 52, 0.10);
    border-left: 4px solid #244034;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    max-width: 400px;
    z-index: 2147483647;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.toastify > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toastify svg {
    flex-shrink: 0;
}

.toastify.on {
    opacity: 1;
}

.toast-close {
    background: transparent;
    border: 0;
    color: rgba(36, 64, 52, 0.45);
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1em;
    line-height: 1;
    opacity: 1;
    padding: 0 0 0 12px;
    transition: color 0.15s ease;
}

.toast-close:hover {
    color: #244034;
}

.toastify-right {
    right: 15px;
}

.toastify-left {
    left: 15px;
}

.toastify-top {
    top: -150px;
}

.toastify-bottom {
    bottom: -150px;
}

.toastify-rounded {
    border-radius: 14px;
}

.toastify-avatar {
    width: 1.5em;
    height: 1.5em;
    margin: -7px 5px;
    border-radius: 8px;
}

.toastify-center {
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    max-width: fit-content;
    max-width: -moz-fit-content;
}

/* ---- Type accents: coloured left border + icon; surface stays white ---- */
.toastify-success {
    border-left-color: #00BF58;
}

.toastify-success svg {
    stroke: #00BF58;
    color: #00BF58;
}

.toastify-danger {
    border-left-color: #dc3545;
}

.toastify-danger svg {
    stroke: #dc3545;
    color: #dc3545;
}

.toastify-warning {
    border-left-color: #f59e0b;
}

.toastify-warning svg {
    stroke: #f59e0b;
    color: #f59e0b;
}

.toastify-info {
    border-left-color: #3b82f6;
}

.toastify-info svg {
    stroke: #3b82f6;
    color: #3b82f6;
}

@media only screen and (max-width: 480px) {

    .toastify {
        max-width: calc(100% - 30px);
    }

    .toastify-right,
    .toastify-left {
        margin-left: auto;
        margin-right: auto;
        left: 15px;
        right: 15px;
        max-width: calc(100% - 30px);
    }
}
