/* FCM Toast Notification Styling */

/* Container Positioning */
#toastr-container {
    position: fixed !important;
    top: auto !important;
    right: 12px !important;
    bottom: 12px !important;
    left: auto !important;
    z-index: 999999 !important;
}

#toastr-container > div {
    margin: 0 0 6px !important;
}

/* Toast Colors - Primary Theme */
.toastr-success {
    background-color: #1B84FF !important; /* Primary Color */
}

.toastr-error {
    background-color: #1B84FF !important; /* Primary Color */
}

.toastr-info {
    background-color: #1B84FF !important; /* Primary Color */
}

.toastr-warning {
    background-color: #1B84FF !important; /* Primary Color */
}

/* Toast Styling Enhancement */
#toastr-container > div {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(27, 132, 255, 0.25) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 500 !important;
}

/* Toast Title */
#toastr-container .toast-title {
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-bottom: 4px !important;
}

/* Toast Message */
#toastr-container .toast-message {
    font-size: 13px !important;
    line-height: 1.4 !important;
    opacity: 0.95 !important;
}

/* Close Button */
#toastr-container .toast-close-button {
    color: #ffffff !important;
    opacity: 0.8 !important;
    font-size: 16px !important;
}

#toastr-container .toast-close-button:hover {
    opacity: 1 !important;
}

/* Progress Bar */
#toastr-container .toast-progress {
    background-color: rgba(255, 255, 255, 0.3) !important;
    height: 3px !important;
}

/* Hover Effect */
#toastr-container > div:hover {
    box-shadow: 0 6px 16px rgba(27, 132, 255, 0.35) !important;
    transform: translateY(-1px) !important;
    transition: all 0.2s ease !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    #toastr-container {
        right: 8px !important;
        bottom: 8px !important;
        left: 8px !important;
    }
    
    #toastr-container > div {
        width: auto !important;
        max-width: none !important;
        margin: 0 0 8px !important;
    }
}

@media (max-width: 480px) {
    #toastr-container {
        right: 4px !important;
        bottom: 4px !important;
        left: 4px !important;
    }
    
    #toastr-container > div {
        padding: 12px 12px 12px 40px !important;
        font-size: 12px !important;
    }
    
    #toastr-container .toast-title {
        font-size: 13px !important;
    }
    
    #toastr-container .toast-message {
        font-size: 12px !important;
    }
}

/* Animation Enhancement */
@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;
    }
}

#toastr-container > div {
    animation: slideInRight 0.3s ease-out !important;
}

#toastr-container > div.toast-closing {
    animation: slideOutRight 0.3s ease-in !important;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    #toastr-container > div {
        box-shadow: 0 4px 12px rgba(27, 132, 255, 0.3) !important;
    }
}
