/* ========================================================
   MODERN TOAST NOTIFICATION COMPONENT
   ======================================================== */
.modern-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 440px;
    width: calc(100% - 32px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 576px) {
    .modern-toast-container {
        top: 14px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}

.modern-toast {
    position: relative;
    pointer-events: auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 15px 16px 15px 14px;
    box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.12), 0 6px 12px -3px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.95);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    overflow: hidden;
    transform: translateX(115%);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease;
    cursor: default;
    user-select: none;
}

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

.modern-toast.hide {
    transform: translateX(115%);
    opacity: 0;
}

.modern-toast-icon-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-toast-icon-wrap svg {
    width: 20px;
    height: 20px;
}

/* Success */
.modern-toast.toast-success {
    border-color: rgba(16, 185, 129, 0.3);
}
.modern-toast.toast-success .modern-toast-icon-wrap {
    background: #ecfdf5;
    color: #059669;
}
.modern-toast.toast-success .modern-toast-progress-bar {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* Error */
.modern-toast.toast-error {
    border-color: rgba(239, 68, 68, 0.3);
}
.modern-toast.toast-error .modern-toast-icon-wrap {
    background: #fef2f2;
    color: #dc2626;
}
.modern-toast.toast-error .modern-toast-progress-bar {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* Warning */
.modern-toast.toast-warning {
    border-color: rgba(245, 158, 11, 0.3);
}
.modern-toast.toast-warning .modern-toast-icon-wrap {
    background: #fffbeb;
    color: #d97706;
}
.modern-toast.toast-warning .modern-toast-progress-bar {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* Info */
.modern-toast.toast-info {
    border-color: rgba(2, 132, 199, 0.3);
}
.modern-toast.toast-info .modern-toast-icon-wrap {
    background: #f0f9ff;
    color: #0284c7;
}
.modern-toast.toast-info .modern-toast-progress-bar {
    background: linear-gradient(90deg, #38bdf8, #0284c7);
}

.modern-toast-content {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.modern-toast-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 3px;
}

.modern-toast-message {
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
    word-break: break-word;
}

.modern-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
    padding: 0;
    margin: -3px -3px 0 0;
    line-height: 1;
}

.modern-toast-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.modern-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(226, 232, 240, 0.5);
}

.modern-toast-progress-bar {
    height: 100%;
    width: 100%;
    transition: width 0.05s linear;
}