/* Simple loading animations */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Fade animations */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 300ms ease-in;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 300ms ease-in;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-image {
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    margin-bottom: 1em;
}

/* Progress bar */
.progress-container {
    width: 100%;
    height: 3px;
    background: #f0f0f0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}

.progress-bar {
    height: 100%;
    background: var(--sil-blue);
    width: 0%;
    transition: width 0.3s ease;
}