/* Input ve Form Elemanları Görünürlük Düzeltmesi */
/* Bu dosya tüm input alanlarının görünür olmasını sağlar */

/* Tüm input, textarea ve select elemanları için - EN YÜKSEK ÖNCELİK */
input,
textarea,
select,
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"] {
    color: #2c3e50 !important;
    -webkit-text-fill-color: #2c3e50 !important;
    opacity: 1 !important;
}

/* Focus durumunda */
input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    color: #2c3e50 !important;
    -webkit-text-fill-color: #2c3e50 !important;
}

/* Placeholder rengi */
input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: #adb5bd !important;
    opacity: 1 !important;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #adb5bd !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #adb5bd !important;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #adb5bd !important;
}

/* Autofill durumunda (Chrome, Safari) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #2c3e50 !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s;
    color: #2c3e50 !important;
}

/* Disabled durumunda */
input:disabled,
textarea:disabled,
select:disabled,
.form-control:disabled {
    color: #6c757d !important;
    -webkit-text-fill-color: #6c757d !important;
    opacity: 0.6;
}

/* Readonly durumunda */
input[readonly],
textarea[readonly],
.form-control[readonly] {
    color: #495057 !important;
    -webkit-text-fill-color: #495057 !important;
}

/* Select option'ları için */
select option {
    color: #2c3e50 !important;
    background-color: #ffffff !important;
}

/* Textarea için özel */
textarea {
    min-height: 100px;
    resize: vertical;
}

/* WhatsApp widget input için */
.whatsapp-input {
    color: #2c3e50 !important;
    -webkit-text-fill-color: #2c3e50 !important;
}

.whatsapp-input::placeholder {
    color: #adb5bd !important;
}

.whatsapp-input:-webkit-autofill {
    -webkit-text-fill-color: #2c3e50 !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
}

/* Admin panel için */
.adminx input,
.adminx textarea,
.adminx select {
    color: #2c3e50 !important;
    -webkit-text-fill-color: #2c3e50 !important;
}

/* Dark mode desteği (varsa) */
@media (prefers-color-scheme: dark) {
    input,
    textarea,
    select,
    .form-control {
        color: #f8f9fa !important;
        -webkit-text-fill-color: #f8f9fa !important;
    }
    
    input::placeholder,
    textarea::placeholder {
        color: #6c757d !important;
    }
}
