/* Navigation Loading States */

.navigation-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
    font-size: 16px;
}

.navigation-loader-content {
    text-align: center;
}

.navigation-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #10a37f;
    border-radius: 50%;
    animation: navigation-spin 1s linear infinite;
    margin: 0 auto 20px;
}

.navigation-text {
    color: #cccccc;
    font-size: 16px;
    font-weight: 500;
}

/* Element-specific loading overlay */
.element-loader {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
    font-size: 14px;
    border-radius: 4px;
}

.element-loader .navigation-spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
    margin-right: 8px;
}

/* Button loading states */
.button-loading {
    position: relative;
    pointer-events: none;
}

.button-loading .navigation-spinner {
    width: 12px;
    height: 12px;
    border-width: 1px;
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
}

/* Copy success feedback */
.copy-success svg {
    fill: #10a37f !important;
    transition: fill 0.3s ease;
}

.copy-success div {
    color: #10a37f !important;
    transition: color 0.3s ease;
}

/* Loading animation */
@keyframes navigation-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}