/* Loading states for select elements */
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: rgba(241, 243, 244, 0.05);
}

select.loading {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23f1f3f4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10 3v3m6 2l-2 2M10 17v-3m-6-2l2-2m8-6l-2 2m2 8l-2-2M3 10h3m11 0h-3'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
    animation: spin 1s linear infinite;
}

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

/* Success state */
select.loaded {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(0, 81, 99, 0.1);
}

/* Error state */
select.error {
    border-color: var(--error);
    background-color: rgba(255, 0, 0, 0.05);
}

/* Status indicator */
.fetch-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateX(100%);
}

.fetch-status.show {
    transform: translateX(0);
}

.fetch-status.loading {
    background: rgba(0, 81, 99, 0.9);
    color: white;
}

.fetch-status.success {
    background: rgba(0, 128, 0, 0.9);
    color: white;
}

.fetch-status.error {
    background: rgba(255, 0, 0, 0.9);
    color: white;
}