/**
 * Tedarikçi Başvuru - Temel Stiller
 * Input wrapper'lar, form elemanları ve genel stiller
 */

/* Input wrapper stilleri */
.input-wrapper {
    position: relative;
    cursor: text;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
    z-index: 4;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Date wrapper için ikon boyutunu büyüt */
.date-wrapper .input-icon {
    font-size: 18px;
}

/* Input hover ve focus efektleri */
.input-wrapper:hover .input-icon {
    color: #007bff !important;
    transform: translateY(-50%) scale(1.1);
}

.input-wrapper input:focus ~ .input-icon,
.input-wrapper textarea:focus ~ .input-icon,
.input-wrapper select:focus ~ .input-icon {
    color: #0056b3 !important;
}

.input-wrapper input:valid ~ .input-icon,
.input-wrapper textarea:valid ~ .input-icon,
.input-wrapper select:valid ~ .input-icon {
    color: #28a745 !important;
}

/* Input alanları için padding */
.input-wrapper input,
.input-wrapper textarea,
.input-wrapper select {
    padding-left: 50px !important;
}

/* Select için özel dropdown arrow pozisyonu */
.input-wrapper select {
    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 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.input-wrapper select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Textarea için özel ayarlar */
.input-wrapper .textarea-control {
    min-height: 100px;
    resize: vertical;
    padding-top: 16px;
}

.input-wrapper .textarea-control ~ .input-icon {
    top: 24px;
    transform: translateY(0);
}

/* Date input için özel ayarlar */
.date-wrapper .date-input {
    cursor: pointer !important;
    position: relative;
    z-index: 2;
}

.date-wrapper .date-input::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
    z-index: 3;
}

/* Section Headers */
.section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 25px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
}

/* Dynamic Fields */
.dynamic-section {
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    background: #f8f9fa;
}

.dynamic-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
}

.btn-remove-dynamic {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.btn-add-dynamic {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Checkbox Groups */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #3498db;
}

/* Form Row */
.register-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.register-form .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Small text (açıklama metinleri) */
.form-group small.text-muted {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Mobil uyumluluk için */
@media (max-width: 768px) {
    .register-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .register-form .form-row .form-group {
        margin-bottom: 24px;
    }
}
