﻿/* Container to position overlay */
.hydration-guard-container {
    position: relative;
    display: inline-block;
}

/* Overlay covers the content */
.hydration-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Spinner animation */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0078d4;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loading text */
.loading-text {
    font-size: 0.9em;
    color: #333;
}

/* Disable interactions before hydration */
.hydration-loading * {
    pointer-events: none;
    opacity: 0.5;
}

/* Enable interactions after hydration */
.hydration-ready * {
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
}
