/* Currency Selector Button */
.currency-selector #currencyToggle {
    color: inherit;
    text-decoration: none;
    border: none;
    background: none;
    display: flex;
    align-items: center;
}

.currency-selector #currencyToggle:hover {
    color: #0d6efd;
    text-decoration: none;
}

#currencyChevron {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

/* Currency Panel */
.currency-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-100%) !important;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1050;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

.currency-panel.show {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.currency-panel-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.currency-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f3f4;
}

.currency-panel-header h5 {
    color: #2d374b;
    margin: 0;
}

.currency-panel-body {
    margin-bottom: 20px;
}

.currency-grid, .language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.currency-btn, .language-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 50px;
}

.currency-btn:hover:not(:disabled), .language-btn:hover:not(:disabled) {
    border-color: #0d6efd;
    background-color: #f8f9fa;
    color: #0d6efd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.currency-btn.active, .language-btn.active {
    border-color: #0d6efd;
    background-color: #0d6efd;
    color: white;
}

.currency-btn:disabled, .language-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.currency-code, .language-name {
    font-size: 14px;
    font-weight: 600;
}

.currency-panel-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #f1f3f4;
}

/* Currency Backdrop */
.currency-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1040;
}

.currency-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .currency-panel-content {
        padding: 15px;
    }

    .currency-grid, .language-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .currency-btn, .language-btn {
        padding: 10px 12px;
        min-height: 45px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .currency-grid, .language-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .currency-btn, .language-btn {
        padding: 8px 10px;
        min-height: 40px;
        font-size: 12px;
    }
}