/* ══════════════════════════════════════════════════════════════
   Premium Toast — Colorful & Bold
   Overrides toastr defaults. Loaded after vendor.css.
══════════════════════════════════════════════════════════════ */

/* Container — sits above sidebar & modals */
#toast-container.toast-top-right {
    top: 24px !important;
    right: 24px !important;
    z-index: 99999 !important;
}

/* ── Base toast shell ── */
#toast-container > div {
    padding: 15px 46px 15px 74px !important;
    border-radius: 16px !important;
    border: none !important;
    min-height: 64px !important;
    max-width: 370px !important;
    width: 370px !important;
    color: #fff !important;
    line-height: 1.5 !important;
    position: relative !important;
    overflow: hidden !important;
    opacity: 1 !important;
    margin-bottom: 12px !important;
    background-image: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

#toast-container > div:hover {
    transform: translateY(-3px) !important;
}

/* ── Per-type gradient backgrounds & coloured shadows ── */
#toast-container > .toast-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    box-shadow: 0 14px 40px rgba(5, 150, 105, 0.55), 0 4px 14px rgba(0,0,0,0.15) !important;
}
#toast-container > .toast-error {
    background: linear-gradient(135deg, #dc2626 0%, #f87171 100%) !important;
    box-shadow: 0 14px 40px rgba(220, 38, 38, 0.55), 0 4px 14px rgba(0,0,0,0.15) !important;
}
#toast-container > .toast-warning {
    background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%) !important;
    box-shadow: 0 14px 40px rgba(217, 119, 6, 0.55), 0 4px 14px rgba(0,0,0,0.15) !important;
}
#toast-container > .toast-info {
    background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%) !important;
    box-shadow: 0 14px 40px rgba(29, 78, 216, 0.55), 0 4px 14px rgba(0,0,0,0.15) !important;
}

/* ── Icon circle (::before) ── */
#toast-container > div::before {
    content: '' !important;
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.22) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
    display: block !important;
    float: none !important;
}

#toast-container > .toast-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") !important;
}
#toast-container > .toast-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6M9 9l6 6'/%3E%3C/svg%3E") !important;
}
#toast-container > .toast-warning::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 22h16a2 2 0 0 0 1.73-4Z'/%3E%3Cpath d='M12 9v4'/%3E%3Ccircle cx='12' cy='17' r='.5' fill='%23fff'/%3E%3C/svg%3E") !important;
}
#toast-container > .toast-info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") !important;
}

/* ── Sheen sweep (::after) ── */
#toast-container > div::after {
    content: '' !important;
    position: absolute !important;
    top: -60% !important;
    right: -5% !important;
    width: 90px !important;
    height: 220% !important;
    background: linear-gradient(100deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%) !important;
    transform: skewX(-15deg) !important;
    pointer-events: none !important;
    display: block !important;
}

/* ── Title — used when both title+message are passed ── */
.toast-title {
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: #fff !important;
    margin-bottom: 3px !important;
    line-height: 1.35 !important;
}

/* ── Message — PRIMARY text (most toasts only have this) ── */
.toast-message {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    line-height: 1.45 !important;
}

/* When both title + message exist, de-emphasise message */
.toast-title + .toast-message {
    font-size: 0.84rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

/* ── Progress bar ── */
.toast-progress {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 4px !important;
    border-radius: 0 0 18px 18px !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
}

/* ── Close button ── */
.toast-close-button {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    float: none !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    text-shadow: none !important;
    opacity: 1 !important;
    line-height: 1 !important;
    transition: color 0.15s !important;
}
.toast-close-button:hover,
.toast-close-button:focus {
    color: #fff !important;
    opacity: 1 !important;
}
