/* Basit Döviz Çevirici Stili */
.simple-converter {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: visible; /* dropdown taşmasını gösterebilmek için hidden -> visible */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.converter-header {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.converter-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Miktar Girişi */
.amount-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amount-input-group label {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.amount-input-wrapper {
    position: relative;
}

.amount-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.2s;
}

.amount-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Para Birimi Seçicileri */
.currency-selectors {
    display: flex;
    gap: 16px;
    align-items: center;
}

.currency-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.currency-group label {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.currency-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    background-color: white;
    appearance: none;
    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='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    transition: all 0.2s;
}

.currency-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Özel Select Dropdown Stilleri */
.custom-select-container {
    position: relative;
    width: 100%;
    overflow: visible; /* dropdown taşmasını kesmeyelim */
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* diğer öğelerin üstünde kalsın */
    display: none;
    margin-top: 4px;
}

/* Yukarı açılan durum */
.custom-select-dropdown.drop-up {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 4px;
}
/* Arama kutusu stilleri */
.custom-select-search {
    padding: 8px;
    position: sticky;
    top: 0;
    background-color: white;
    border-bottom: 1px solid #e2e8f0;
    z-index: 2;
}

.custom-select-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.custom-select-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.custom-select-options {
    max-height: 240px;
    overflow-y: auto;
}

.custom-select-no-result {
    padding: 12px 16px;
    color: #94a3b8;
    font-style: italic;
    text-align: center;
}

.custom-select-item {
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-select-item:hover {
    background-color: #f8fafc;
}

.custom-select-item.selected {
    background-color: #f1f5f9;
    font-weight: bold;
}

/* Scrollbar stilini özelleştir */
.custom-select-dropdown::-webkit-scrollbar {
    width: 8px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Select menüsünün yüksekliğini sınırla */
.currency-select option {
    padding: 8px;
}

/* Select dropdown yükseklik sınırlaması için */
select.currency-select {
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Chrome ve Safari için */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    select.currency-select {
        height: 48px;
    }
    
    select.currency-select option {
        max-height: 200px;
    }
}

/* Firefox için */
@-moz-document url-prefix() {
    select.currency-select {
        height: 48px;
        overflow-y: auto;
    }
    
    select.currency-select optgroup,
    select.currency-select option {
        max-height: 200px;
    }
}

/* Tarayıcıya özel stil ekleme */
html.js select.currency-select {
    max-height: 48px;
}

.swap-button {
    width: 40px;
    height: 40px;
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #6366f1;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 24px;
}

.swap-button:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #4f46e5;
}

.swap-button:active {
    transform: scale(0.95);
}

/* Sonuç Alanı */
.result-area {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 8px;
    padding: 16px;
    color: white;
    margin-top: auto;
}

.result-amount {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.result-rate {
    font-size: 14px;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .converter-header {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .converter-body {
        padding: 16px;
        gap: 16px;
    }
    
    .currency-selectors {
        flex-direction: column;
        gap: 12px;
    }
    
    .swap-button {
        margin: 0 auto;
    }
    
    .result-amount {
        font-size: 20px;
    }
}