/* Özel stiller için index.css */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Dosya yükleme alanı için hover efekti */
#file-upload:focus + label,
label:hover {
    outline: none;
}

/* Drag and drop efekti */
#drop-zone.dragover,
#drop-zone:hover {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
}

/* Drop zone sticky pozisyon */
#drop-zone {
    width: 100%;
    max-width: 100%;
}

/* Radio button seçili durum */
input[type="radio"]:checked + div {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* PDF Önizleme */
#pdf-preview {
    width: 100%;
    height: 100%;
    border: none;
}

/* Progress bar animasyonu */
#progress-bar {
    transition: width 0.3s ease;
}

#savings-bar {
    transition: width 0.5s ease;
}

/* Sonuç kartları animasyonu */
#result-section {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: fadeIn 0.5s ease-in;
}

/* Google Translate Düzenlemeleri */
#google_translate_element {
    display: none !important;
}

.goog-te-banner-frame {
    display: none !important;
}

.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Özel Dil Seçici Stilleri */
.custom-lang-dropdown {
    position: relative;
    display: inline-block;
    text-align: left;
}

.custom-lang-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: auto; /* Genişlik içeriğe göre */
    min-width: 140px;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb; /* Daha hafif border */
    padding: 0.5rem 0.75rem;
    background-color: white;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-lang-button:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.custom-lang-menu {
    position: absolute;
    top: 100%; /* Aşağı doğru açılması için */
    right: 0; /* Sağa yaslı */
    margin-top: 0.5rem;
    width: 14rem;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: white;
    border: 1px solid #e5e7eb;
    display: none;
    max-height: 20rem; /* Scrollable */
    overflow-y: auto;
    z-index: 50;
}

.custom-lang-menu.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.custom-lang-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.1s;
}

.custom-lang-item:hover {
    background-color: #f3f4f6;
    color: #111827;
}

/* Scrollbar özelleştirme */
.custom-lang-menu::-webkit-scrollbar {
    width: 6px;
}

.custom-lang-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-lang-menu::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.custom-lang-menu::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.goog-te-gadget {
    font-family: inherit !important;
    font-size: 14px !important;
    color: #4b5563 !important;
}

.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.goog-te-gadget-icon {
    display: none !important;
}

/* Hover efektleri */
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
}

/* Responsive düzenlemeler */
@media (max-width: 1024px) {
    .grid-cols-1.lg\\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav .flex {
        width: 100%;
        justify-content: center;
    }
    
    #pdf-preview {
        height: 400px;
    }
}

