.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 21, 30, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-message {
    margin-top: 15px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Better styling for placeholder content */
.placeholder-content {
    background: linear-gradient(90deg, #1c2632 0%, #263241 50%, #1c2632 100%);
    background-size: 200% 100%;
    animation: placeholder-wave 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
}

@keyframes placeholder-wave {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: -200% 0%;
    }
}

/* Better match card styling during loading */
.match-card-loading {
    position: relative;
    opacity: 0.8;
}

.match-card-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 21, 30, 0.2);
    z-index: 1;
}

/* Improved styling for individual loading elements */
.loading-team-name {
    height: 16px;
    width: 120px;
    margin-bottom: 5px;
}

.loading-match-time {
    height: 14px;
    width: 80px;
}

.loading-odds-value {
    height: 24px;
    width: 50px;
    border-radius: 4px;
    display: inline-block;
    margin: 0 5px;
}

/* Fade transition for loading state */
.fade-loading-enter-active,
.fade-loading-leave-active {
    transition: opacity 0.3s;
}
.fade-loading-enter,
.fade-loading-leave-to {
    opacity: 0;
}

/* Progress bar at the top of the page */
.loading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #0d6efd;
    z-index: 10000;
    transition: width 0.3s ease-out;
}
