/* === Modernized Toastr Styles === */

/* Base toast container */
#toast-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#toast-container > div {
    position: relative;
    pointer-events: auto;
    margin: 0 0 12px;
    padding: 16px 20px 16px 56px;
    width: 320px;
    border-radius: 12px;
    color: #fff;
    background-position: 16px center;
    background-repeat: no-repeat;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#toast-container > div:hover {
    transform: translateY(-2px);
    opacity: 1;
}

/* Close button */
.toast-close-button {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffffcc;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.toast-close-button:hover {
    color: #ffffff;
    opacity: 0.9;
    cursor: pointer;
}

/* Title & message */
.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 15px;
}

.toast-message {
    font-size: 14px;
    line-height: 1.4;
}

/* Toast variants with modern colors */
.toast-success {
    background-color: #16a34a !important; /* Emerald Green */
}

.toast-error {
    background-color: #dc2626 !important; /* Red-600 */
}

.toast-info {
    background-color: #2563eb !important; /* Blue-600 */
}

.toast-warning {
    background-color: #d97706 !important; /* Amber-600 */
}

/* Progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 12px 12px;
    background: rgba(255, 255, 255, 0.8);
    animation: progress-bar 4s linear forwards;
}

@keyframes progress-bar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    #toast-container > div {
        width: 90%;
        padding: 14px 16px 14px 48px;
        border-radius: 10px;
    }
}
