/* 
   Notification System CSS 
   Moved from MainLayout.razor.css to be global and avoid conflicts
*/

#notification-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999999; /* Highest priority */
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

/* Replicating the exact style user liked from MainLayout.razor.css */
.zain-notification-toast {
    pointer-events: auto;
    background-color: white;
    border-right: 5px solid #0d6efd; /* Changed to Right for RTL consistency */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 15px;
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Colors matching the original design */
.zain-notification-toast.warning {
    border-right-color: #ffc107;
}

.zain-notification-toast.error,
.zain-notification-toast.danger {
    border-right-color: #dc3545;
}

.zain-notification-toast.success {
    border-right-color: #198754;
}

/* Inner Layout */
.zain-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #333;
}

.zain-notification-body {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.zain-notification-close {
    cursor: pointer;
    background: none;
    border: none;
    color: #999;
    padding: 0;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.zain-notification-close:hover {
    color: #333;
}

.zain-notification-icon {
    margin-left: 8px; /* Space between icon and text */
}

/* Helpers for icons colors - Scoped to toast only */
.zain-notification-toast .text-warning { color: #ffc107 !important; }
.zain-notification-toast .text-danger { color: #dc3545 !important; }
.zain-notification-toast .text-success { color: #198754 !important; }
.zain-notification-toast .text-primary { color: #0d6efd !important; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    #notification-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }
    
    .zain-notification-toast {
        width: 100%;
    }
}
