﻿.loading-overlay {
    position: fixed;
    /* Use same background as body to prevent orange color */
    background: #eef2f6;
    /* Ensure it covers safe areas on mobile - use inset to cover entire viewport */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Extend into safe areas to prevent orange bars */
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s;
    opacity: 0;
    pointer-events: none;
}
.loading-overlay.show {
    opacity: 1;
    pointer-events: all;
}
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.loading-spinner .spinner {
    width: 54px;
    height: 54px;
    border: 6px solid #ffe3e0;
    border-top: 6px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}
.loading-spinner .loading-text {
    color: #e74c3c;
    font-weight: 600;
    font-size: 1.12em;
    letter-spacing: 0.5px;
}


.alert-toast {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 11000;
    min-width: 260px;
    max-width: 340px;
    background: #fff9f8;
    color: #e74c3c;
    border: 1.5px solid #ffe3e0;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(231,76,60,0.10);
    padding: 18px 28px 18px 18px;
    font-size: 1.08em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(-20px);
}
.alert-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.alert-toast .toast-icon {
    font-size: 1.4em;
    color: #e74c3c;
}
@media (max-width: 600px) {
    .alert-toast {
        right: 8px;
        top: 8px;
        max-width: 95vw;
        padding: 12px 16px 12px 12px;
        font-size: 1em;
    }
}
.alert-toast.success {
    background: #f6fff8;
    color: #27ae60;
    border-color: #b6f5d8;
}
.alert-toast.success .toast-icon {
    color: #27ae60;
}
.alert-toast.error {
    background: #fff9f8;
    color: #e74c3c;
    border-color: #ffe3e0;
}
.alert-toast.error .toast-icon {
    color: #e74c3c;
}