/**
 * Modern toast skin for notific8 (BS3 admin / default / blank / visitor).
 * Soft card + accent bar; keeps existing notific8() call sites working.
 */

.notific8-container {
    z-index: 10050 !important;
    pointer-events: none;
}

.notific8-container.top {
    top: 12px;
}

.notific8-container.bottom {
    bottom: 12px;
}

.notific8-container.top.right,
.notific8-container.bottom.right {
    right: 12px;
}

.notific8-container.top.left,
.notific8-container.bottom.left {
    left: 12px;
}

.notific8-notification.family-legacy,
.notific8-notification.legacy,
.notific8-notification.ocho {
    pointer-events: auto;
    box-sizing: border-box;
    width: 320px !important;
    min-height: 0 !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    padding: 14px 42px 14px 16px !important;
    border: none !important;
    border-left: 4px solid #0d6efd !important;
    /* Square start (accent bar); soft radius only on the trailing edge */
    border-radius: 0 12px 12px 0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.06) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    color: #1f2937 !important;
    background-color: #ffffff !important;
    transition: transform 0.22s ease, opacity 0.22s ease, margin 0.22s ease !important;
}

.left .notific8-notification.family-legacy,
.left .notific8-notification.legacy,
.left .notific8-notification.ocho {
    margin-left: -340px !important;
    float: left;
    clear: left;
    border-left: none !important;
    border-right: 4px solid #0d6efd !important;
    border-radius: 12px 0 0 12px !important;
}

.left .notific8-notification.family-legacy.open,
.left .notific8-notification.legacy.open,
.left .notific8-notification.ocho.open {
    margin-left: 0 !important;
}

.top .notific8-notification.family-legacy,
.top .notific8-notification.legacy,
.top .notific8-notification.ocho {
    margin-top: 10px !important;
}

.bottom .notific8-notification.family-legacy,
.bottom .notific8-notification.legacy,
.bottom .notific8-notification.ocho {
    margin-bottom: 10px !important;
}

.right .notific8-notification.family-legacy,
.right .notific8-notification.legacy,
.right .notific8-notification.ocho {
    margin-right: -340px !important;
    float: right;
    clear: right;
}

.right .notific8-notification.family-legacy.open,
.right .notific8-notification.legacy.open,
.right .notific8-notification.ocho.open {
    margin-right: 0 !important;
}

.notific8-notification.family-legacy .notific8-heading,
.notific8-notification.legacy .notific8-heading,
.notific8-notification.ocho .notific8-heading {
    margin: 0 0 4px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: inherit !important;
}

.notific8-notification.family-legacy .notific8-message,
.notific8-notification.legacy .notific8-message,
.notific8-notification.ocho .notific8-message {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: inherit !important;
}

.notific8-notification.family-legacy .notific8-message .glyphicon,
.notific8-notification.legacy .notific8-message .glyphicon,
.notific8-notification.ocho .notific8-message .glyphicon,
.notific8-notification.family-legacy .notific8-message .fa,
.notific8-notification.legacy .notific8-message .fa,
.notific8-notification.ocho .notific8-message .fa,
.notific8-notification.family-legacy .notific8-message .fa-solid,
.notific8-notification.legacy .notific8-message .fa-solid,
.notific8-notification.ocho .notific8-message .fa-solid {
    margin-right: 6px;
    vertical-align: -1px;
}

.notific8-notification.family-legacy .notific8-close,
.notific8-notification.legacy .notific8-close,
.notific8-notification.ocho .notific8-close {
    display: block !important;
    top: 50% !important;
    right: 10px !important;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0 !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #6b7280 !important;
    font-size: 20px !important;
    line-height: 26px !important;
    text-align: center;
    opacity: 0.7;
}

.notific8-notification.family-legacy .notific8-close:hover,
.notific8-notification.legacy .notific8-close:hover,
.notific8-notification.ocho .notific8-close:hover {
    opacity: 1;
    background: rgba(15, 23, 42, 0.06) !important;
    color: #111827 !important;
}

.notific8-notification.family-legacy .notific8-close.sticky,
.notific8-notification.legacy .notific8-close.sticky,
.notific8-notification.ocho .notific8-close.sticky {
    top: 8px !important;
    right: 8px !important;
    transform: none;
    width: auto;
    height: auto;
    padding: 4px 8px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* —— Color variants (soft fill + accent bar) —— */
.notific8-notification.family-legacy.lime,
.notific8-notification.legacy.lime,
.notific8-notification.ocho.lime {
    color: #166534 !important;
    background-color: #ecfdf5 !important;
    border-left-color: #22c55e !important;
}

.left .notific8-notification.family-legacy.lime,
.left .notific8-notification.legacy.lime,
.left .notific8-notification.ocho.lime {
    border-right-color: #22c55e !important;
}

.notific8-notification.family-legacy.ruby,
.notific8-notification.legacy.ruby,
.notific8-notification.ocho.ruby {
    color: #991b1b !important;
    background-color: #fef2f2 !important;
    border-left-color: #ef4444 !important;
}

.left .notific8-notification.family-legacy.ruby,
.left .notific8-notification.legacy.ruby,
.left .notific8-notification.ocho.ruby {
    border-right-color: #ef4444 !important;
}

.notific8-notification.family-legacy.teal,
.notific8-notification.legacy.teal,
.notific8-notification.ocho.teal {
    color: #0f172a !important;
    background-color: #ffffff !important;
    border-left-color: #0d6efd !important;
}

.left .notific8-notification.family-legacy.teal,
.left .notific8-notification.legacy.teal,
.left .notific8-notification.ocho.teal {
    border-right-color: #0d6efd !important;
}

.notific8-notification.family-legacy.tangerine,
.notific8-notification.legacy.tangerine,
.notific8-notification.ocho.tangerine {
    color: #92400e !important;
    background-color: #fffbeb !important;
    border-left-color: #f59e0b !important;
}

.left .notific8-notification.family-legacy.tangerine,
.left .notific8-notification.legacy.tangerine,
.left .notific8-notification.ocho.tangerine {
    border-right-color: #f59e0b !important;
}

.notific8-notification.family-legacy.lemon,
.notific8-notification.legacy.lemon,
.notific8-notification.ocho.lemon {
    color: #854d0e !important;
    background-color: #fefce8 !important;
    border-left-color: #eab308 !important;
}

.left .notific8-notification.family-legacy.lemon,
.left .notific8-notification.legacy.lemon,
.left .notific8-notification.ocho.lemon {
    border-right-color: #eab308 !important;
}

.notific8-notification.family-legacy.amethyst,
.notific8-notification.legacy.amethyst,
.notific8-notification.ocho.amethyst {
    color: #5b21b6 !important;
    background-color: #f5f3ff !important;
    border-left-color: #8b5cf6 !important;
}

.left .notific8-notification.family-legacy.amethyst,
.left .notific8-notification.legacy.amethyst,
.left .notific8-notification.ocho.amethyst {
    border-right-color: #8b5cf6 !important;
}

.notific8-notification.family-legacy.ebony,
.notific8-notification.legacy.ebony,
.notific8-notification.ocho.ebony {
    color: #f9fafb !important;
    background-color: #111827 !important;
    border-left-color: #9ca3af !important;
}

.left .notific8-notification.family-legacy.ebony,
.left .notific8-notification.legacy.ebony,
.left .notific8-notification.ocho.ebony {
    border-right-color: #9ca3af !important;
}

.notific8-notification.family-legacy.ebony .notific8-close,
.notific8-notification.legacy.ebony .notific8-close,
.notific8-notification.ocho.ebony .notific8-close {
    color: #d1d5db !important;
}

.notific8-notification.family-legacy.smoke,
.notific8-notification.legacy.smoke,
.notific8-notification.ocho.smoke {
    color: #374151 !important;
    background-color: #f9fafb !important;
    border-left-color: #9ca3af !important;
}

.left .notific8-notification.family-legacy.smoke,
.left .notific8-notification.legacy.smoke,
.left .notific8-notification.ocho.smoke {
    border-right-color: #9ca3af !important;
}

@media (max-width: 480px) {
    .notific8-container.top.right,
    .notific8-container.bottom.right,
    .notific8-container.top.left,
    .notific8-container.bottom.left {
        left: 10px;
        right: 10px;
    }

    .notific8-notification.family-legacy,
    .notific8-notification.legacy,
    .notific8-notification.ocho {
        width: calc(100vw - 20px) !important;
        max-width: 100%;
    }

    .right .notific8-notification.family-legacy,
    .right .notific8-notification.legacy,
    .right .notific8-notification.ocho,
    .left .notific8-notification.family-legacy,
    .left .notific8-notification.legacy,
    .left .notific8-notification.ocho {
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none;
    }
}
