/* Custom Modern Glassmorphic Toast Notifications */
#modern-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.modern-toast {
    pointer-events: auto;
    width: 360px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 10px 40px rgba(31, 38, 135, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
}

.modern-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.modern-toast.hide {
    transform: translateY(-20px) scale(0.92);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.3s ease;
}

/* Toast types and glows */
.modern-toast.success {
    border-left: 5px solid #00c853;
    box-shadow: 0 10px 30px rgba(0, 200, 83, 0.08), 0 1px 2px rgba(0, 200, 83, 0.03);
}

.modern-toast.error {
    border-left: 5px solid #ff1744;
    box-shadow: 0 10px 30px rgba(255, 23, 68, 0.08), 0 1px 2px rgba(255, 23, 68, 0.03);
}

.modern-toast.warning {
    border-left: 5px solid #ff9100;
    box-shadow: 0 10px 30px rgba(255, 145, 0, 0.08), 0 1px 2px rgba(255, 145, 0, 0.03);
}

.modern-toast.info {
    border-left: 5px solid #2979ff;
    box-shadow: 0 10px 30px rgba(41, 121, 255, 0.08), 0 1px 2px rgba(41, 121, 255, 0.03);
}

/* Icons styling */
.modern-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.success .modern-toast-icon {
    background-color: rgba(0, 200, 83, 0.1);
    color: #00c853;
}

.error .modern-toast-icon {
    background-color: rgba(255, 23, 68, 0.1);
    color: #ff1744;
}

.warning .modern-toast-icon {
    background-color: rgba(255, 145, 0, 0.1);
    color: #ff9100;
}

.info .modern-toast-icon {
    background-color: rgba(41, 121, 255, 0.1);
    color: #2979ff;
}

/* Toast content */
.modern-toast-body {
    flex-grow: 1;
}

.modern-toast-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.success .modern-toast-title { color: #00c853; }
.error .modern-toast-title { color: #ff1744; }
.warning .modern-toast-title { color: #ff9100; }
.info .modern-toast-title { color: #2979ff; }

.modern-toast-message {
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
    font-weight: 500;
}

/* Progress timer bar */
.modern-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.03);
}

.modern-toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transition: width 4s linear;
}

.success .modern-toast-progress-bar { background: linear-gradient(90deg, #00c853, #b9f6ca); }
.error .modern-toast-progress-bar { background: linear-gradient(90deg, #ff1744, #ff80ab); }
.warning .modern-toast-progress-bar { background: linear-gradient(90deg, #ff9100, #ffe082); }
.info .modern-toast-progress-bar { background: linear-gradient(90deg, #2979ff, #82b1ff); }
