/**
 * Modern Non-Blocking Toast Notification Styles
 *
 * @company   Zaintech Technologies
 * @website   https://www.zaintech.pk
 * @whatsapp  https://z-t.biz/whatsapp
 * @telegram  https://z-t.biz/telegram
 * @copyright Copyright (c) 2026 Zaintech Technologies. All rights reserved.
 */

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: calc(100% - 40px);
    pointer-events: none;
}

.is-embedded-iframe .toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    bottom: auto;
}

.toast-notification {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-surface-elevated, #334155);
    color: var(--text-primary, #ffffff);
    border: 1px solid var(--border-color, #475569);
    border-radius: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    font-family: inherit;
    font-size: 0.88rem;
    line-height: 1.45;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.toast-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast-notification.toast-closing {
    transform: translateY(10px) scale(0.95);
    opacity: 0;
}

.toast-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
    margin-top: 2px;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 2px;
    color: var(--text-primary, #ffffff);
}

.toast-message {
    color: var(--text-secondary, #cbd5e1);
    word-break: break-word;
}

.toast-close-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    padding: 2px;
    margin-left: 4px;
    font-size: 1.1rem;
    line-height: 1;
    transition: color 0.15s ease;
}

.toast-close-btn:hover {
    color: var(--text-primary, #ffffff);
}

/* Toast Status Variants */
.toast-success {
    border-left: 4px solid #10b981;
}
.toast-success .toast-icon {
    color: #10b981;
}

.toast-info {
    border-left: 4px solid var(--accent, #38bdf8);
}
.toast-info .toast-icon {
    color: var(--accent, #38bdf8);
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}
.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-error {
    border-left: 4px solid #ef4444;
}
.toast-error .toast-icon {
    color: #ef4444;
}
