/* Modal Preloader Styles */
.modal-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-spinner {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #22397E; /* Use your primary color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-spinner p {
    margin-top: 1rem;
    font-size: 1.4rem;
    font-weight: 500;
}

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

/* Fade transition for modal content */
.site-modal-content,
.modal-content,
.project-detail-container {
    transition: opacity 0.3s ease;
}

.content-transition {
    opacity: 0;
}