/* ================================
   TOASTR — DARK THEME ONLY
================================ */

.toast-title {
    font-weight: 700;
    color: #fff;
}

.toast-message {
    word-wrap: break-word;
    color: #ddd;
}

    .toast-message a,
    .toast-message label {
        color: #7dd3fc;
    }

        .toast-message a:hover {
            color: #38bdf8;
            text-decoration: underline;
        }

/* Close button */

.toast-close-button {
    position: relative;
    right: -.3em;
    top: -.3em;
    float: right;
    font-size: 20px;
    font-weight: 700;
    color: #aaa;
    text-shadow: none;
    opacity: .8;
    line-height: 1;
}

    .toast-close-button:hover,
    .toast-close-button:focus {
        color: #fff;
        cursor: pointer;
        opacity: 1;
    }

/* RTL */

.rtl .toast-close-button {
    left: -.3em;
    float: left;
    right: .3em;
}

/* Container */

#toast-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
}

    #toast-container * {
        box-sizing: border-box;
    }

    #toast-container > div {
        pointer-events: auto;
        overflow: hidden;
        margin: 0 0 10px;
        padding: 16px 18px 16px 52px;
        width: 320px;
        border-radius: 8px;
        background-color: #0f172a;
        background-position: 16px center;
        background-repeat: no-repeat;
        box-shadow: 0 10px 25px rgba(0,0,0,.7);
        border: 1px solid rgba(255,255,255,.08);
        color: #fff;
        opacity: .95;
    }

        /* Hover glow */

        #toast-container > div:hover {
            box-shadow: 0 15px 35px rgba(0,0,0,.9);
            transform: translateY(-2px);
        }

/* Positions */

.toast-top-right {
    top: 14px;
    right: 14px;
}

.toast-top-left {
    top: 14px;
    left: 14px;
}

.toast-bottom-right {
    bottom: 14px;
    right: 14px;
}

.toast-bottom-left {
    bottom: 14px;
    left: 14px;
}

.toast-top-center,
.toast-bottom-center,
.toast-top-full-width,
.toast-bottom-full-width {
    width: 100%;
}

/* ===== TYPES ===== */

.toast {
    background-color: #020617;
}

.toast-success {
    background-color: #052e16;
    border-left: 5px solid #22c55e;
}

.toast-error {
    background-color: #3f0d0d;
    border-left: 5px solid #ef4444;
}

.toast-info {
    background-color: #082f49;
    border-left: 5px solid #38bdf8;
}

.toast-warning {
    background-color: #422006;
    border-left: 5px solid #facc15;
}

/* Progress bar */

.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg,#22c55e,#38bdf8);
    opacity: .7;
}

/* Responsive */

@media (max-width:480px) {
    #toast-container > div {
        width: 92%;
        padding: 14px 14px 14px 50px;
    }
}


/* ================================
   WHITE ICONS — DARK MODE
================================ */

#toast-container > div {
    background-size: 22px 22px;
}

/* INFO */

#toast-container > .toast-info {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M11 17h2v-6h-2zm0-8h2V7h-2zm1-7C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z'/%3E%3C/svg%3E");
}

/* SUCCESS */

#toast-container > .toast-success {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2l-3.5-3.5-1.4 1.4L9 19 20.3 7.7l-1.4-1.4z'/%3E%3C/svg%3E");
}

/* ERROR */

#toast-container > .toast-error {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 13.6L15.6 17 12 13.4 8.4 17 7 15.6 10.6 12 7 8.4 8.4 7 12 10.6 15.6 7 17 8.4 13.4 12z'/%3E%3C/svg%3E");
}

/* WARNING */

#toast-container > .toast-warning {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2zm0-4h-2v-4h2z'/%3E%3C/svg%3E");
}
