/* Universal Loading Transitions - RENÉ Medical System */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(136, 201, 205, 0.2);
    border-radius: 50%;
    border-top-color: rgba(136, 201, 205, 0.8);
    animation: loadingSpin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.loading-text {
    color: rgba(136, 201, 205, 0.8);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 15px;
}

@keyframes loadingSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading transitions for forms */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Loading transitions for buttons */
.btn-loading {
    opacity: 0.8;
    pointer-events: none;
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: loadingSpin 1s linear infinite;
}