﻿#loading {
    position: fixed;
    z-index: 50000;
    background-image: url('/images/loader.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.9); /* Adjusted opacity for better mobile performance */
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    transform: translateZ(0); /* Enable hardware acceleration */
}

.dark #loading {
    background-color: #020617;
}

#loading.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    min-width: 300px;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

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

.toast.error {
    background-color: #ef4444;
    color: white;
}

.toast.opacity-0 {
    opacity: 0;
}
