/* Currency Selector Component Styles - Subtle, Monochrome Design */

.currency-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.currency-select {
    appearance: none;
    /* Subtle monochrome styling for dark theme */
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.375rem;
    padding: 0.375rem 2rem 0.375rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.15s ease;
    /* Subtle monochrome dropdown arrow */
    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='rgba(255,255,255,0.3)' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.375rem center;
    background-repeat: no-repeat;
    background-size: 1em 1em;
    min-width: auto;
    width: auto;
}

.currency-select:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
}

.currency-select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

/* Locked state */
.currency-select-locked {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary, #6b7280);
    background-color: var(--bg-muted, #f9fafb);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.currency-select-locked:hover {
    background-color: var(--bg-secondary, #f3f4f6);
    border-color: var(--primary-color, #3b82f6);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Dark theme is now the default - removed media query */


.lock-icon {
    font-size: 0.875rem;
    opacity: 0.6;
    margin-left: -0.25rem;
}

/* Loading indicator */
.htmx-indicator {
    display: none;
    margin-left: 0.5rem;
}

.htmx-request .htmx-indicator {
    display: inline-flex;
    align-items: center;
}

.loading-spinner {
    font-size: 0.75rem;
    color: var(--primary-color, #3b82f6);
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .currency-select {
        font-size: 0.7rem;
        padding: 0.325rem 1.75rem 0.325rem 0.5rem;
    }
}

/* Currency dropdown options */
.currency-select option {
    background-color: rgba(20, 20, 25, 0.98);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
}