/* ===== TOAST NOTIFICATIONS STYLING ===== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(0, 0, 0, 0.15);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-sm);
    min-width: 300px;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

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

.toast.hide {
    transform: translateX(100%);
    opacity: 0;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* Toast Types */
.toast.success::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.toast.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.toast.error::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.toast.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.toast.warning::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.toast.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.toast.info::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.toast.info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Toast Content */
.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xs);
}

.toast-title {
    font-weight: 600;
    font-size: var(--font-size-base);
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.toast-icon {
    font-size: var(--font-size-lg);
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: var(--font-size-lg);
    line-height: 1;
}

.toast-close:hover {
    color: var(--gray-600);
    background: rgba(0, 0, 0, 0.05);
}

.toast-body {
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

/* Toast Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* RTL Support */
[dir="rtl"] .toast-container {
    right: auto;
    left: 20px;
}

[dir="rtl"] .toast {
    transform: translateX(-100%);
}

[dir="rtl"] .toast.show {
    transform: translateX(0);
}

[dir="rtl"] .toast.hide {
    transform: translateX(-100%);
}

[dir="rtl"] .toast-close {
    margin-right: auto;
    margin-left: 0;
}
